This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi John, John Tipper wrote, > Hi All, > > I'm trying to create a toolchain for x86_64 linux on a 64 bit Mac running OSX 10.9.5 and using crosstool-ng-1.22.0. I have tried building using a number of the samples ("x86_64-w64-mingw32,x86_64-pc-linux-gnu" and "x86_64-unknown-linux-gnu") but I am running into build errors, as shown below. I am not building the gold linker, nor am I attempting to link statically, and I am building on a case-sensitive file system. The build.log and config are shown after the error listing. > > It looks as though the build environment is perhaps looking for OSX header files (within /usr/include) when installing/building the kernel headers, rather than Linux ones, but I don't know what to do to fix this. > > Can anyone please offer advice for what I need to do to build successfully? This has also been posted on stack overflow (http://stackoverflow.com/questions/39140110/crosstools-ng-compiling-toolchain-for-x86-64-linux-on-osx-error-when-installi), so feel free to answer there if you'd prefer. > > [INFO ] Installing kernel headers > [EXTRA] Installing kernel headers > [ERROR] /usr/include/bits/types.h:43:25: error: typedef redefinition with different types ('long' vs 'long long') > [ERROR] /usr/include/bits/types.h:44:27: error: typedef redefinition with different types ('unsigned long' vs 'unsigned long long') > [ERROR] /Volumes/CaseSensitiveLinux/ct-ng/.build/src/linux-3.12.50/arch/x86/tools/relocs.h:15:10: fatal error: 'endian.h' file not found > [ERROR] make[3]: *** [arch/x86/tools/relocs_32.o] Error 1 I think MacOS X support is incomplete. For x86_64 toolchain creation you require to provide some endian.h. In OpenADK I use: http://cgit.openadk.org/cgi/cgit/openadk.git/tree/adk/include Which is included via HOST_EXTRACFLAGS: http://cgit.openadk.org/cgi/cgit/openadk.git/tree/mk/kernel-vars.mk best regards Waldemar -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |