BYTE_ORDER not defined building gcc for ARM

Moran, Chris chris.moran at
Tue Aug 26 23:48:52 UTC 2008

I am sure I have seen the answer to this before, but I can't find it in the mail archives.

I am trying to build 4.8.1 arm toolchain on FreeBSD.  binutils built fine, but when I try to build gcc from gcc-core-4.2.2 with gcc-core-4.2.2-rtems4.8-20071127.diff applied.

Newlib is newlib-1.15.0 with newlib-1.15-rtems4.8-20071221.diff applied

My config line was 

../gcc-4.2.2/configure --target=arm-rtems --with-gnu-as --with-gnu-ld --with-newlib --verbose --enable-threads --enable-languages="c" --prefix=/usr/local/RTEMS

During the make all phase, we get:

In file included from ../../../../../../gcc-4.2.2/newlib/libc/libc/search/hash.c:57
../../../../../../gcc-4.2.2/newlib/libc/libc/search/hash.h:44:2: #error BYTE_ORDER not defined by sys/param.h

Suggestions?  Is there a later patch I need to be using?


Important Note
This email (including any attachments) contains information which is confidential and may be subject to legal privilege.  If you are not the intended recipient you must not use, distribute or copy this email.  If you have received this email in error please notify the sender immediately and delete this email.

Any views expressed in this email are not necessarily the views of Emergent Technology.

Please consider the environment before you print this email

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list