This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG 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] |
Check the output, the cross compiler chooses correnct cross as... I think you can try: 1 Add a "-S" to CFLAGS to produce the assembly code, and double check it. 2 What about writing an hello assembly code including instruction "movl", using alphaev67-unknown-linux-gnu-as try to compile. And what will happen ? Regards, Jacky 2013/1/18 Mahshid Sedghi <mahshid.sedghy@gmail.com>: > Thanks for looking into this Jan-Benedict. Below is a more detailed > make trail. My source file is named " thread_pool.cpp". In order to > cross compile for alpha, I replaced CXX in the makefile with new gcc > (as appears in the trail): > > > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc > -g -v -c thread_pool.cpp -o thread_pool.o -I../include > Using built-in specs. > Target: alphaev67-unknown-linux-gnu > Configured with: /opt/crosstool/targets/src/gcc-4.3.2/configure > --build=x86_64-build_unknown-linux-gnu > --host=x86_64-build_unknown-linux-gnu > --target=alphaev67-unknown-linux-gnu > --prefix=/opt/crosstool/alphaev67-unknown-linux-gnu > --with-sysroot=/opt/crosstool/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root > --enable-languages=c,c++,fortran --disable-multilib --with-cpu=ev67 > --with-tune=ev67 --with-gmp=/opt/crosstool/alphaev67-unknown-linux-gnu > --with-mpfr=/opt/crosstool/alphaev67-unknown-linux-gnu > --with-pkgversion=crosstool-NG-1.2.0+svn_trunk@1208 > --enable-__cxa_atexit > --with-local-prefix=/opt/crosstool/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root > --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 > --enable-long-long --enable-target-optspace > Thread model: posix > gcc version 4.3.2 (crosstool-NG-1.2.0+svn_trunk@1208) > COLLECT_GCC_OPTIONS='-g' '-v' '-c' '-o' 'thread_pool.o' '-I../include' > '-mcpu=ev67' '-mtune=ev67' > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../libexec/gcc/alphaev67-unknown-linux-gnu/4.3.2/cc1plus > -quiet -v -I../include -iprefix > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/ > -isysroot /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../alphaev67-unknown-linux-gnu/sys-root > thread_pool.cpp -quiet -dumpbase thread_pool.cpp -mcpu=ev67 > -mtune=ev67 -auxbase-strip thread_pool.o -g -version -o > /tmp/ccwgA8KD.s > ignoring duplicate directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/../../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include/c++/4.3.2" > ignoring duplicate directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/../../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include/c++/4.3.2/alphaev67-unknown-linux-gnu" > ignoring duplicate directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/../../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include/c++/4.3.2/backward" > ignoring nonexistent directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../alphaev67-unknown-linux-gnu/sys-root/opt/crosstool/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root/include" > ignoring duplicate directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/../../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/include" > ignoring duplicate directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/../../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/include-fixed" > ignoring duplicate directory > "/i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/../../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include" > #include "..." search starts here: > #include <...> search starts here: > ../include > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include/c++/4.3.2 > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include/c++/4.3.2/alphaev67-unknown-linux-gnu > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include/c++/4.3.2/backward > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/include > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/include-fixed > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/include > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../alphaev67-unknown-linux-gnu/sys-root/usr/include > End of search list. > GNU C++ (crosstool-NG-1.2.0+svn_trunk@1208) version 4.3.2 > (alphaev67-unknown-linux-gnu) > compiled by GNU C version 4.2.4 (Ubuntu 4.2.4-1ubuntu3), GMP > version 4.2.2, MPFR version 2.3.1. > GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 > Compiler executable checksum: 4e35720dcba0a9cbc05e62a531a9d4b9 > COLLECT_GCC_OPTIONS='-g' '-v' '-c' '-o' 'thread_pool.o' '-I../include' > '-mcpu=ev67' '-mtune=ev67' > /i3c/hpcl/mis5413/gem5/gem5/alphaev67-unknown-linux-gnu/bin/../lib/gcc/alphaev67-unknown-linux-gnu/4.3.2/../../../../alphaev67-unknown-linux-gnu/bin/as > -no-mdebug -o thread_pool.o /tmp/ccwgA8KD.s > /tmp/ccwgA8KD.s: Assembler messages: > /tmp/ccwgA8KD.s:38: Error: unknown opcode `movl' > /tmp/ccwgA8KD.s:39: Error: syntax error > make[1]: *** [thread_pool.o] Error 1 > > > Thanks for the help. > Mahshid > > > > On Thu, Jan 17, 2013 at 3:58 AM, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote: >> On Wed, 2013-01-16 19:20:22 -0500, Mahshid Sedghi <mahshid.sedghy@gmail.com> wrote: >>> Hi all, >>> >>> I am using an Alpha cross compiler by gem5 website built using >>> crosstool, and this is the version: gcc-4.3.2, glibc-2.6.1 >>> (NPTL,x86/64). >>> I was able to compile simple codes using it successfully, but when I >>> try to compile my larger applications, I am getting assembly errors as >>> below: >>> >>> /tmp/ccuZ74Tx.s: Assembler messages: >>> /tmp/ccuZ74Tx.s:38: Error: unknown opcode `movl' >>> /tmp/ccuZ74Tx.s:39: Error: syntax error >>> >>> Do you have any idea what the problem is and how it can be fixed? >> >> Please show a longer dump of the make trail, including eg. all the >> command line options used. You'd probably add a "-v" to CFLAGS. My >> guess is that somewhere, the cross-targeted compiler chooses to run a >> i686 assembler or something like that. >> >> MfG, JBG >> >> -- >> Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481 >> Signature of: God put me on earth to accomplish a certain number of >> the second : things. Right now I am so far behind I will never die. >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.10 (GNU/Linux) >> >> iEYEARECAAYFAlD3vR0ACgkQHb1edYOZ4buntwCeL1IAUxrHTF1bp++IV9bZvjYZ >> avMAn1R7JmwKZj5RrtvNmvOpREt+s49x >> =Kj4a >> -----END PGP SIGNATURE----- >> > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > -- 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] |