mips toolchain on macos
Guylhem Aznar
crossgcc@guylhem.net
Tue Aug 16 22:16:00 GMT 2011
And the very same crosstools-ng version, with the very same .config
and kernel tarball doesn't work on OSX Snow Leopard
(...)
[INFO ] =================================================================
[INFO ] Installing kernel headers
[INFO ] Installing kernel headers: done in 14.00s (at 07:39)
[INFO ] =================================================================
[INFO ] Installing C library headers
[ERROR] make[1]: *** [install_headers] Error 1
[ERROR]
[ERROR] >> Build failed in step 'Installing C library headers'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions]
[ERROR] >> called from:
do_libc_start_files[scripts/build/libc/uClibc.sh@117]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@584]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'share/doc/ct-ng-hg_unknown@20110816.164443/B -
Known issues.txt'
[ERROR]
[ERROR] Build failed in step 'Installing C library headers'
[ERROR]
Apparently it could be due to a "find" problem resulting in a non
existing syscalls.h, since in build.log I see:
[DEBUG] ==> Executing: 'make' 'V=2' 'CROSS='
'PREFIX=/Volumes/Crosstools/Fritzbox/mips-osx-linux-uclibc/sysroot/'
'LOCALE_DATA_FILENAME=uClibc-locale-030818.tgz' 'install_headers'
[ALL ] gcc extra/scripts/unifdef.c -o extra/scripts/unifdef -O2 -Wall
[ALL ] install -d
/Volumes/Crosstools/Fritzbox/mips-osx-linux-uclibc/sysroot//usr/include
[ALL ] top_builddir=./ ./extra/scripts/install_headers.sh
include /Volumes/Crosstools/Fritzbox/mips-osx-linux-uclibc/sysroot//usr/include[ALL
] usage: find [-H | -L | -P] [-EXdsx] [-f path] path ...
[expression]
[ALL ] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
[ALL ] printf '#ifndef _LIBC_INTERNAL_Hn#define _LIBC_INTERNAL_H
1n#endifn' >
/Volumes/Crosstools/Fritzbox/mips-osx-linux-uclibc/sysroot//usr/include/libc-internal.h[ALL
] echo '/* Dont use _syscall#() macros; use the syscall() function
*/' >
/Volumes/Crosstools/Fritzbox/mips-osx-linux-uclibc/sysroot//usr/include/bits/syscalls.h
[ALL ] /bin/sh:
/Volumes/Crosstools/Fritzbox/mips-osx-linux-uclibc/sysroot//usr/include/bits/syscalls.h:
No such file or directory
[ERROR] make[1]: *** [install_headers] Error 1
So I edited ./.build/mips-osx-linux-uclibc/build/build-libc-headers/extra/scripts/install_headers.sh,
where I see :
find ! -name '.' -a ! -path '*/.*'
This does not work on OSX. Looking for a fix now.
BTW : ./ct-ng RESTART=libc_start_files does not work
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list