From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Cross-compiling U-Boot on Mac OS X -- can't find crc32.c?
Date: Sat, 2 May 2009 02:10:15 +0200 [thread overview]
Message-ID: <20090502001015.GA25959@game.jcrosoft.org> (raw)
In-Reply-To: <ed82fe3e0905011630q3fbc2054h481eaba3ca09590f@mail.gmail.com>
On 18:30 Fri 01 May , Timur Tabi wrote:
> 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
IIRC this is fix on the Mainline
> 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.
next prev parent reply other threads:[~2009-05-02 0:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-01 23:30 [U-Boot] Cross-compiling U-Boot on Mac OS X -- can't find crc32.c? Timur Tabi
2009-05-02 0:10 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-05-04 13:27 ` Timur Tabi
2009-05-05 0:47 ` Mike Frysinger
2009-05-05 15:33 ` Timur Tabi
2009-05-20 1:38 ` Timur Tabi
2009-05-20 5:31 ` Wolfgang Denk
2009-05-20 14:33 ` Timur Tabi
2009-05-20 14:41 ` Jerry Van Baren
2009-05-20 14:52 ` Timur Tabi
2009-05-30 0:23 ` Mike Frysinger
2009-05-02 5:49 ` Wolfgang Denk
2009-05-02 23:02 ` Timur Tabi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090502001015.GA25959@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox