Cross-compiling U-Boot on Mac OS X -- can't find crc32.c?
I'm trying to cross-compile U-Boot on a Mac OS X system, which is BSD-like. I have a toolchain already created - I've been able to compile the Linux kernel with no problems. I figured U-Boot would be easier, but instead it's doing a lot of weird stuff.
So when I run "make", I get this:
$ make ARCH=ppc for dir in tools examples api_examples ; do make -C $dir _depend ; done make[1]: Nothing to be done for `_depend'. make[1]: Circular hello_world.c <- hello_world.c dependency dropped. make[1]: Circular sched.c <- sched.c dependency dropped. make[1]: Circular stubs.c <- stubs.c dependency dropped. make[1]: Circular ppc_longjmp.S <- ppc_longjmp.S dependency dropped. make[1]: Circular ppc_setjmp.S <- ppc_setjmp.S dependency dropped. make[1]: Nothing to be done for `_depend'. make[1]: Nothing to be done for `_depend'. make -C tools all cc -Wall -pedantic -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include2 -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include -I /Volumes/Goliath/Users/timur/dev/u-boot.git/libfdt -I /Volumes/Goliath/Users/timur/dev/u-boot.git/tools -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o crc32.c powerpc-apple-darwin9-gcc-4.0.1: crc32.c: No such file or directory powerpc-apple-darwin9-gcc-4.0.1: no input files make[1]: *** [crc32.o] Error 1 make: *** [tools] Error 2
crc32.c is in lib_generic/, but the current directory is tools/, so I'm not surprised it doesn't compile. Has anyone tried this before? What am I missing?
Signature · 2 lines
Timur Tabi Linux kernel developer@Freescale
Quoted 31 lines · Timur Tabi
I'm trying to cross-compile U-Boot on a Mac OS X system, which is BSD-like. I have a toolchain already created - I've been able to compile the Linux kernel with no problems. I figured U-Boot would be easier, but instead it's doing a lot of weird stuff.
So when I run "make", I get this:
$ make ARCH=ppc for dir in tools examples api_examples ; do make -C $dir _depend ; done make[1]: Nothing to be done for `_depend'. make[1]: Circular hello_world.c <- hello_world.c dependency dropped. make[1]: Circular sched.c <- sched.c dependency dropped. make[1]: Circular stubs.c <- stubs.c dependency dropped. make[1]: Circular ppc_longjmp.S <- ppc_longjmp.S dependency dropped. make[1]: Circular ppc_setjmp.S <- ppc_setjmp.S dependency dropped. make[1]: Nothing to be done for `_depend'. make[1]: Nothing to be done for `_depend'. make -C tools all cc -Wall -pedantic -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include2 -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include -I /Volumes/Goliath/Users/timur/dev/u-boot.git/libfdt -I /Volumes/Goliath/Users/timur/dev/u-boot.git/tools -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o crc32.c powerpc-apple-darwin9-gcc-4.0.1: crc32.c: No such file or directory powerpc-apple-darwin9-gcc-4.0.1: no input files make[1]: *** [crc32.o] Error 1 make: *** [tools] Error 2
Quoted 1 line
crc32.cis in lib_generic/, but the current directory istools/, so
IIRC this is fix on the Mainline
Quoted 2 lines
I'm not surprised it doesn't compile. Has anyone tried this before? What am I missing?
to compile on Mac OS you will have to move to the laster Mainline , fix the lib_ftd endian.h and byteswap.h does not exist on MAC OS X IIRC and fix the _depend Makefile target
I've start to fix it but never find time to finish (some patch are already mainline)
Best Regards,
J.
Quoted 1 line · Jean-Christophe PLAGNIOL-VILLARD
to compile on Mac OS you will have to move to the laster Mainline ,
What is that?
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 4 lines · On Monday 04 May 2009 09:27:11 Timur Tabi wrote:
Quoted 1 line · Jean-Christophe
to compile on Mac OS you will have to move to the laster Mainline ,
What is that?
the latest git source tree, not the latest release
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090504/bc449b9d/attachment.pgp
Quoted 7 lines · Mike Frysinger
Quoted 4 lines · On Monday 04 May 2009 09:27:11 Timur Tabi wrote:
Quoted 1 line · Jean-Christophe
to compile on Mac OS you will have to move to the laster Mainline ,
What is that?
the latest git source tree, not the latest release
That's what I've been using, and that's what's broken.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 5 lines · Jean-Christophe PLAGNIOL-VILLARD
to compile on Mac OS you will have to move to the laster Mainline , fix the
lib_ftdendian.handbyteswap.hdoes not exist on MAC OS X IIRC and fix the_dependMakefiletarget
I've start to fix it but never find time to finish (some patch are already mainline)
Well, I tried to fix it, but I can't figure it out. I just don't understand why it's so broken. The errors I get are so confusing, and I can't figure out what the Makefile is doing when it fails. So I give up.
Fortunately, I found a version of mkimage that builds just fine as-is, and that's all I care about for now. If anyone else is interested, you can find it here:
http://packages.debian.org/sid/uboot-mkimage
Just download the tarball and run 'make'.
Wolfgang, I think you seriously need to revamp your build process. The kernel is orders of magnitude more complex than U-Boot, and yet I can build it just fine on OS X.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Dear Timur Tabi,
Quoted 2 lines · In message <[email protected]> you…
Wolfgang, I think you seriously need to revamp your build process.
Hm... Do I? It works fine for me...
Quoted 2 lines
The kernel is orders of magnitude more complex than U-Boot, and yet I can build it just fine on OS X.
It's you who has OS X, and who has a problem. Only when Ah itchez, Ah scratchez.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Hacking's just another word for nothing left to kludge.
Quoted 2 lines · Wolfgang Denk
It's you who has OS X, and who has a problem. Only when Ah itchez, Ah scratchez.
Just so I'm clear on this, you're saying that you're not really concerned about how well U-Boot works for other people?
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 7 lines · Timur Tabi
Quoted 2 lines · Wolfgang Denk
It's you who has OS X, and who has a problem. Only when Ah itchez, Ah scratchez.
Just so I'm clear on this, you're saying that you're not really concerned about how well U-Boot works for other people?
No, people that aren't running OS X cannot debug problems that happen when running on OS X.
Quoted 4 lines · You
Well, I tried to fix it, but I can't figure it out. I just don't understand why it's so broken. The errors I get are so confusing, and I can't figure out what the
Makefileis doing when it fails. So I give up.
followed by:
Quoted 3 lines
Wolfgang, I think you seriously need to revamp your build process. The kernel is orders of magnitude more complex than U-Boot, and yet I can build it just fine on OS X.
That sounds like you want Wolfgang to fix a problem he doesn't have and cannot reproduce, since he isn't running OS X (to the best of my knowledge).
<http://xkcd.com/583/>
gvb
Quoted 2 lines · Jerry Van Baren
That sounds like you want Wolfgang to fix a problem he doesn't have and cannot reproduce, since he isn't running OS X (to the best of my knowledge).
No, what I really want is the build process to be simpler so that other people can fix problems with it. I don't even understand how it works when it *does* work.
A functioning build process on OS X will allow me to do more work on U-Boot, adding more features and fixing more bugs, than I normally would be able to do. But I can't fix every problem myself.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale
Quoted 8 lines · On Wednesday 20 May 2009 10:52:48 Timur Tabi wrote:
Quoted 3 lines · Jerry Van Baren
That sounds like you want Wolfgang to fix a problem he doesn't have and cannot reproduce, since he isn't running OS X (to the best of my knowledge).
No, what I really want is the build process to be simpler so that other people can fix problems with it. I don't even understand how it works when it *does* work.
again, that is your itch to scratch. people who are doing significant amount of work in u-boot have no problem with it as it exists now.
Quoted 3 lines
A functioning build process on OS X will allow me to do more work on U-Boot, adding more features and fixing more bugs, than I normally would be able to do. But I can't fix every problem myself.
this is open source. if you are unwilling or unable to do the work, i imagine there are plenty of people out there willing to take your money and do it for you.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090529/bfe6921b/attachment.pgp
Dear Timur Tabi,
Quoted 4 lines · In message <[email protected]> you…
I'm trying to cross-compile U-Boot on a Mac OS X system, which is BSD-like. I have a toolchain already created - I've been able to compile the Linux kernel with no problems. I figured U-Boot would be easier, but instead it's doing a lot of weird stuff.
...
Quoted 1 line
What am I missing?
Is this "make" a GNU make? Which version?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Virtue is a relative term. -- Spock, "Friday's Child", stardate 3499.1
Quoted 1 line · Wolfgang Denk
Is this "make" a GNU make? Which version?
GNU Make 3.81
I've searched the archives for this mailing list, and I see that this issue comes up every now and then, but never with any resolution. If I could just get mkimage compiled, that would be okay for now. But according to Jean-Chrisophe's email, it looks like this would be not be trivial to fix.
Signature · 2 lines
Timur Tabi Linux kernel developer at Freescale