EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022 
<== Date ==> <== Thread ==>

Subject: Re: Building RTEMS cross tools
From: "Konrad, Martin" <[email protected]>
To: "[email protected]" <[email protected]>, Benjamin Franksen <[email protected]>
Date: Mon, 28 Apr 2014 19:00:43 +0000
Hi Ben,
building the 4.10 branch of the Debian package repo [1] works for me on 
Debian Wheezy. Did you try to build the 4.10 branch as well? This issue 
might be limited to the 4.9 branch only.

But if I read [2] correctly, Michael builds both the 4.9 and 4.10 branch 
on Wheezy...

How do you run the build? Do you use git-buildpackage? Please double 
check that the Debian patches are applied correctly.

Best regards,

Martin

[1] https://github.com/epicsdeb/rtems-gcc-newlib/tree/master4.10
[2] http://epics.nsls2.bnl.gov/debian/wheezy.html

-- Martin Konrad
Control System Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]

On 04/28/2014 11:44 AM, Benjamin Franksen wrote:
> 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
>


-- 
Martin Konrad
Control System Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]


Navigate by Date:
Prev: Building RTEMS cross tools Benjamin Franksen
Next: Re: Building RTEMS cross tools Mike Westfall
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022 
Navigate by Thread:
Prev: Re: Building RTEMS cross tools Benjamin Franksen
Next: Re: [Merge] lp:~epics-core/epics-base/get-cpus into lp:epics-base Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022 
ANJ, 18 May 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·