This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error making cross compiler, gcc 4.4.0, FreeBSD 7.2
On 2009-05-05 10:51:12, Kai Ruottu wrote:
> <snip>
>> In file included from ../../../gcc-4.4.0/libgcc/../gcc/tsystem.h:44,
>> from ../../../gcc-4.4.0/libgcc/../gcc/libgcc2.c:29:
>> /root/gcc-4.4.0-obj/./gcc/include/stddef.h:59:24: error: sys/_types.h:
>> No such file or directory
>
> Where you have installed the target headers for FreeBSD 7.2/x86_64 ?
*AHEM*
You're absolutely right...
>> Configuration:
>>
>> $ ./configure \
>> --target=x86_64-unknown-freebsd7.2 \
>> --prefix=/usr/local/cross \
>> --enable-languages="c,ada" \
>> --disable-nls \
>> --with-system-zlib \
>> --with-libiconv-prefix=/usr/local \
>> --program-suffix="-4.4.0"
>
> The binutils, libraries and headers for the target are expected in the
> traditional places the previous options for 'xgcc' are showing... If
> the target stuff is not there, who then must be sued?
I must! I must!
Yes, for some unknown reason, it didn't occur to me that extra headers
would be needed (same OS, different arch).
Thanks!
xw