2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Building RTEMS cross tools |
From: | Mike Westfall <[email protected]> |
To: | Benjamin Franksen <[email protected]> |
Cc: | [email protected] |
Date: | Thu, 1 May 2014 12:59:29 -0600 |
Hi
it would be lovely if the experts who have done stuff like that before
could help me with this one, even though this is not strictly speaking,
an EPICS matter.
My goal is to build the RTEMS cross tools from source under ubuntu. I
tried the manual procedure as described in [1], as well as the debian
source package from [2]. I tried building on 32bit Ubuntu precise, and
64bit ubuntu saucy and (lately) 64bit trusty.
The build always fails at the same point, output displayed below. Note
that in this case I built with nix (therefore the strange path names),
but it makes no difference if I do all the steps manually (/tmp/nix-
build-gcc-powerpc-rtems4.9.drv-1/ is the temporary directory with the
downloaded sources and the build-powerpc build directory).
[...]
building _fixunssfsi.o
/tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-powerpc/./gcc/xgcc -
B/tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-powerpc/./gcc/ -
nostdinc -B/tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-
powerpc/powerpc-rtems4.9/newlib/ -isystem /tmp/nix-build-gcc-powerpc-
rtems4.9.drv-1/build-powerpc/powerpc-rtems4.9/newlib/targ-include -
isystem /tmp/nix-build-gcc-powerpc-
rtems4.9.drv-1/gcc-4.3.2/newlib/libc/include -
B/nix/store/8wd0rdxqkrbz6hacwmfihg89wriz37kn-gcc-powerpc-
rtems4.9/powerpc-rtems4.9/bin/ -
B/nix/store/8wd0rdxqkrbz6hacwmfihg89wriz37kn-gcc-powerpc-
rtems4.9/powerpc-rtems4.9/lib/ -isystem
/nix/store/8wd0rdxqkrbz6hacwmfihg89wriz37kn-gcc-powerpc-
rtems4.9/powerpc-rtems4.9/include -isystem
/nix/store/8wd0rdxqkrbz6hacwmfihg89wriz37kn-gcc-powerpc-
rtems4.9/powerpc-rtems4.9/sys-include -O2 -g -g -O2 -mcpu=403 -
mrelocatable-lib -mno-eabi -mstrict-align -O2 -
I../../gcc-4.3.2/gcc/../newlib/libc/sys/rtems/include -O2 -g -g -O2 -
DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../gcc-4.3.2/libgcc
-I../../../../gcc-4.3.2/libgcc/. -I../../../../gcc-4.3.2/libgcc/../gcc -
I../../../../gcc-4.3.2/libgcc/../include -o _fixunssfsi.o -MT
_fixunssfsi.o -MD -MP -MF _fixunssfsi.dep -DL_fixunssfsi -c
../../../../gcc-4.3.2/libgcc/../gcc/libgcc2.c \
In file included from /tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-
powerpc/./gcc/include-fixed/syslimits.h:7,
from /tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-
powerpc/./gcc/include-fixed/limits.h:11,
from
../../../../gcc-4.3.2/libgcc/../gcc/libgcc2.c:1697:
/tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-powerpc/./gcc/include-
fixed/limits.h:122:61: error: no include path in which to search for
limits.h
make[4]: *** [_fixunssfsi.o] Error 1
make[4]: Leaving directory `/tmp/nix-build-gcc-powerpc-
rtems4.9.drv-1/build-powerpc/powerpc-rtems4.9/m403/libgcc'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/tmp/nix-build-gcc-powerpc-
rtems4.9.drv-1/build-powerpc/powerpc-rtems4.9/libgcc'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/tmp/nix-build-gcc-powerpc-
rtems4.9.drv-1/build-powerpc/powerpc-rtems4.9/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/tmp/nix-build-gcc-powerpc-
rtems4.9.drv-1/build-powerpc'
make: *** [all] Error 2
The offending line in /tmp/nix-build-gcc-powerpc-rtems4.9.drv-1/build-
powerpc/./gcc/include-fixed/limits.h reads:
#include_next <limits.h> /* recurse down to the real one */
I'd very much appreciate any kind of hints as to what can be done about
this.
[1] http://www.aps.anl.gov/epics/base/RTEMS/tutorial/node6.html
[2] http://epics.nsls2.bnl.gov/debian/
Cheers
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams