Package Details: cc65 2.19-1

Git Clone URL: https://aur.archlinux.org/cc65.git (read-only, click to copy)
Package Base: cc65
Description: C compiler for 6502 family microprocessors
Upstream URL: https://cc65.github.io/cc65/
Licenses: BSD
Submitter: None
Maintainer: chungy
Last Packager: chungy
Votes: 18
Popularity: 0.52
First Submitted: 2006-02-23 09:16 (UTC)
Last Updated: 2021-03-02 09:00 (UTC)

Dependencies (0)

Required by (7)

Sources (1)

Latest Comments

1 2 3 Next › Last »

gbin commented on 2021-03-06 16:50 (UTC)

I would force it to -j1 for now and report to upstream:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,12 +13,12 @@ b2sums=('c1c845417e38113c99a9ec8fbff1b90e292798582ac2b394e40419eff3eea62d838ea52
 build() {
   cd "$pkgname-$pkgver"

-  make PREFIX=/usr
+  make PREFIX=/usr -j1
 }

 package() {
   cd "$pkgname-$pkgver"

-  make DESTDIR="$pkgdir" PREFIX=/usr install
+  make DESTDIR="$pkgdir" PREFIX=/usr -j1 install
   install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/license"
 }

gbin commented on 2021-03-06 16:32 (UTC) (edited on 2021-03-06 16:47 (UTC) by gbin)

It doesn't build the first time, but the second time it does.

If you try from a clean build it will never succeed:

makepkg -C -s

[...]
atari - atr130.o
atari - atrmj8.o
atari - atrstd.o
atari - atrami.o
atari - atrjoy.o
atari - atrst.o
atari - atrtrk.o
atari - atrtt.o
atari - atrrdev.o
atari - atr10p2.o
../bin/ld65 -o ../target/atari/util/w2cas.com -t atari ../libwrk/atari/w2cas.o ../lib/atari.lib
make: *** [Makefile:7: all] Error 2
==> ERROR: A failure occurred in build()

Edit: Those Makefiles are seriously broken. They don't support make -jxx I had to remove the option from my /etc/Makepkg.conf

arch_jeff commented on 2020-03-18 21:04 (UTC)

Whenever I attempt to build cc65 the first build attempt always fails. Additional attempts after the first always succeed, I think. I'm not sure why this is. No edits are made to the PKGBUILD.

To reproduce this, you may need to spin up a fresh install of Arch in a VM. Just trizen -S cc65 (or whatever AUR helper you use yourself) and you'll see what I'm talking about.

jeremyvisser commented on 2019-03-25 03:56 (UTC)

Yay, the path bug has been fixed! Thanks!

jeremyvisser commented on 2019-02-25 07:30 (UTC)

There's a bug in this PKGBUILD which has actually been around for nearly three years, mentioned here: https://github.com/cc65/cc65/issues/316#issuecomment-269258948

The TL;DR is that PREFIX=/usr needs to be set for "make", not just "make install", and this makes the /etc/profile.d/cc65.sh completely unnecessary.

So, by changing line 17 in the PKGBUILD from:

make

To:

make PREFIX=/usr

And removing the cc65.sh file, that will make includes much more reliable.

<deleted-account> commented on 2018-06-13 18:55 (UTC)

I had to modify cc65.sh to export the path /usr/share/cc65 instead of /usr/lib/cc65 in order to get the compiler to find include files.

lutoma commented on 2017-09-10 03:24 (UTC) (edited on 2017-09-10 03:25 (UTC) by lutoma)

Thanks for the speedy reply (and for maintaining the PKGBUILD!), the update seems to indeed have fixed the issue. I originally tried using the cc65-git package, but compiling it failed because the prefix wasn't set somewhere. Didn't really have time to debug then. But I see you've also pushed a new version of that package, so I'll try building that one again too :) Edit: Yup, cc65-git works like a charm now too, so I've switched to the git version now

chungy commented on 2017-09-09 19:04 (UTC)

Thanks. This AUR is quite outdated, I was having cc65-git installed for a long time now, but I see that new releases have finally(!) happened. Simply updating might resolve the issue, I'll see :-)

lutoma commented on 2017-09-09 17:04 (UTC)

The '/usr/bin/grc' binary in this AUR conflicts with https://www.archlinux.org/packages/community/any/grc/

Dennis commented on 2014-11-23 21:52 (UTC)

@vah build worked for me from this: https://aur.archlinux.org/packages/cc/cc65/cc65.tar.gz extracted to: /var/aur/local/cc65/ then ran: makepkg -s in there.