This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"Error: bad register name %rbp" when building toolchain


I am trying to build a cross-compiler on linux for an x86 custom board using
crosstool-ng-1.2.2.
My build and host system is an AMD opteron linux 2.6.9 x86_64. I am trying
to build the crosscompiler for an Intel x86/386/686 multi-core cpu.

I am a complete newbie at this so please forgive anything seemingly
extraneous.

Here's the specs on the host compiler:
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)

I've added a file with my crosstool configuration (crosstool.ma.config).

Here's the error (with context):
[ALL  ]    make[2]: Entering directory
`/local/scratch/xtool.build/targets/i386-diagos.2.1-linux-gnu/build/build-cc-core-shared/gcc'
[ALL  ]    gcc -c   -pipe -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute    -DHAVE_CONFIG_H -I. -I.
-I/local/scratch/xtool.build/targets/src/gcc-4.2.4/gcc
-I/local/scratch/xtool.build/targets/src/gcc-4.2.4/gcc/.
-I/local/scratch/xtool.build/targets/src/gcc-4.2.4/gcc/../include
-I/local/scratch/xtool.build/targets/src/gcc-4.2.4/gcc/../libcpp/include 
-I/local/scratch/xtool.build/targets/src/gcc-4.2.4/gcc/../libdecnumber
-I../libdecnumber   
/local/scratch/xtool.build/targets/src/gcc-4.2.4/gcc/c-lang.c -o c-lang.o
[ALL  ]    {standard input}: Assembler messages:
[ALL  ]    {standard input}:1017: Error: bad register name `%rbp'
[ALL  ]    {standard input}:1019: Error: bad register name `%rsp'
[ALL  ]    make[2]: *** [c-lang.o] Error 1
[ALL  ]    make[2]: Leaving directory
`/local/scratch/xtool.build/targets/i386-diagos.2.1-linux-gnu/build/build-cc-core-shared/gcc'
[ALL  ]    make[1]: *** [all-gcc] Error 2
[ALL  ]    make[1]: Leaving directory
`/local/scratch/xtool.build/targets/i386-diagos.2.1-linux-gnu/build/build-cc-core-shared'
[ERROR]    Build failed in step 'Installing shared core C compiler'
[ERROR]    Error happened in
'/local/scratch/xtool.tmp/lib/ct-ng-1.2.2/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/local/scratch/xtool.tmp/lib/ct-ng-1.2.2/scripts/build/cc_gcc.sh' at line #
189 in function 'do_cc_core_shared'
[ERROR]          called from
'/local/scratch/xtool.tmp/lib/ct-ng-1.2.2/scripts/build/cc_gcc.sh' at line #
42 in function 'do_cc_core_pass_2'
[ERROR]          called from
'/local/scratch/xtool.tmp/lib/ct-ng-1.2.2/scripts/crosstool.sh' at line #
508in function 'main'
[ERROR]    Look at '/lo
http://www.nabble.com/file/p20001863/crosstool.ma.config crosstool.ma.config
cal/tools/diagos.2.1/x86_64/glibc-2.3.4-2.39/host/gcc-4.2.4-glibc-2.7/build.log'
for more info on this error.
[ERROR]  (elapsed: 13:02.95)


Thanks in advance for any insight here.


 
-- 
View this message in context: http://www.nabble.com/%22Error%3A-bad-register-name--rbp%22-when-building-toolchain-tp20001863p20001863.html
Sent from the Sourceware - crossgcc list mailing list archive at Nabble.com.


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]