ct-ng-1.8.0: problem building sstrip on MacOSX 10.6 host
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Wed Aug 4 20:46:00 GMT 2010
James, All,
On Wednesday 04 August 2010 20:40:39 James Dixson wrote:
> I am attempting to build the sample arm-davinci-linux-gnueabi toolchain
> on a MacOSX 10.6 host using ct-ng 1.8.0. I am running into a problem
> during the sstrip.c compile step.
> [ERROR] /Users/james/workspace/toolchain/targets/src/sstrip/sstrip.c:61:17:
> error: elf.h: No such file or directory
> [ERROR] /Users/james/workspace/toolchain/targets/src/sstrip/sstrip.c:62:20:
> error: endian.h: No such file or directory
> [ERROR] /Users/james/workspace/toolchain/targets/src/sstrip/sstrip.c:63:22:
> error: byteswap.h: No such file or directory
> [ERROR] /Users/james/workspace/toolchain/targets/src/sstrip/sstrip.c:314: error:
> expected declaration specifiers or '...' before 'Elf32_Ehdr'
sstrip needs a ELF-based host machine (as Khem pointed), as it runs on
the host, not on the target.
> The includes "elf.h", "endian.h" and "byteswap.h" are not present
> under 10.6 + Xcode. Furthermore at the point that sstrip.c is being compiled
> the missing includes are not yet present under TARGET/sys-root/usr/include.
It is not the target headers that are needed, but the host ones.
sstrip will not be compiled against anything from the sysroot.
> It seems that either I need to:
> 1) install another macport (or reference a some other header package)
> that might provide these headers for me on MacOSX 10.6
> 2) some other dependency/script/action needs to install these missing
> headers in TARGET/sys-root/usr/include before sstrip.c is built
> ... or maybe I have fumbled something else ?
Or maybe MacOS-X is not an ELF host, and lacks those headers? ;-)
Just disable sstrip, it's not really needed most of the time (and is broken
on a few archs, eg. PPC). I'm thinking about just removing it in the next
release.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list