EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: RTEMS building problems
From: Till Straumann <[email protected]>
To: Eric Williams <[email protected]>
Cc: [email protected]
Date: Tue, 13 May 2008 21:42:02 -0700
Eric Williams wrote:
I'm following Eric Norum's instructions on building the cross-compiler and libraries for RTEMS powerpc (http://www.aps.anl.gov/epics/base/RTEMS/tutorial/node6.html), and got the following messages during the Make:

make[2]: Entering directory `/usr/local/rtems/tools/build/gcc'
(SHLIB_LINK='' \
SHLIB_MULTILIB=''; \
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.2.3/gcc -I../../gcc-4.2.3/gcc/. -I../../gcc-4.2.3/gcc/../include -I../../gcc-4.2.3/gcc/../libcpp/include -I../../gcc-4.2.3/gcc/../libdecnumber -I../libdecnumber -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/rtems/rtems-4.9/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/local/rtems/rtems-4.9/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.2.3\" -DDEFAULT_TARGET_MACHINE=\"powerpc-rtems4.9\" -DSTANDARD_BINDIR_PREFIX=\"/usr/local/rtems/rtems-4.9/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
-I. -I. -I../../gcc-4.2.3/gcc -I../../gcc-4.2.3/gcc/. -I../../gcc-4.2.3/gcc/../include -I../../gcc-4.2.3/gcc/../libcpp/include -I../../gcc-4.2.3/gcc/../libdecnumber -I../libdecnumber ../../gcc-4.2.3/gcc/cp/g++spec.c)
/tmp/ccajeJCg.s: Assembler messages:
/tmp/ccajeJCg.s:11: Error: unknown pseudo-op: `.bss'
/tmp/ccajeJCg.s:134: Error: Unrecognized opcode: `pushq'
/tmp/ccajeJCg.s:136: Error: Unrecognized opcode: `pushq'
/tmp/ccajeJCg.s:139: Error: Unrecognized opcode: `movl'
/tmp/ccajeJCg.s:142: Error: Unrecognized opcode: `pushq'
/tmp/ccajeJCg.s:144: Error: Unrecognized opcode: `pushq'
/tmp/ccajeJCg.s:147: Error: Unrecognized opcode: `xorl'
/tmp/ccajeJCg.s:150: Error: Unrecognized opcode: `pushq'


etc., etc.

Any guesses what went wrong? Build environment is Linux 2.6.9-55.0.9.ELsmp (RedHat Enterprise WS rel. 4) x86_64 and gcc 3.4.5.
--
Eric Williams
ALS Controls, LBL
Could it be that you have a cross 'as' in your PATH?
What does 'which as' say?

When glancing over Eric's instruction I didn't see one detail:

after installing the 'binutils', in order to be able to build gcc
you do  need the cross-assembler etc. in your PATH but
as 'powerpc-rtems4.9-as', not 'as'. Hence you'd have to add

/usr/local/rtems/rtems-4.9/bin/

to your PATH. This directory should contain powerpc-rtems4.9-as & friends.
The cross-assembler is also available as

/usr/local/rtems/rtems-4.9/powerpc-rtems/bin/as

but you don't want that one to be picked up -- you would get
the error message you saw.

HTH
-- Till

PS: if that doesn't solve your problem please attach complete
'config.log' and 'make.log' -- you'd have to generate the latter
by make clean; make >& make.log. Complement that with
the output of

find /usr/local/rtems/rtems-4.9

and

printenv

(from the shell you use for the 'make')
Replies:
Re: RTEMS building problems Till Straumann
Re: RTEMS building problems Eric Norum
References:
RTEMS building problems Eric Williams

Navigate by Date:
Prev: RTEMS building problems Eric Williams
Next: Re: RTEMS building problems Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RTEMS building problems Eric Williams
Next: Re: RTEMS building problems Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·