[discuss] Problem building cross compiler for x86_64

Manish Katiyar mkatiyar@gmail.com
Mon Jan 23 11:07:00 GMT 2006


Hi,
    This can't get worse than this.........when I happily showed the
cross built compiler i was told that we can't use this since it is
build using crosstool and then we need to distribute our product also
under GPL which is not possible. :-( .
So now I have to built a biarch compiler which can support the switchs
-m32/64 from scratch.
Any help guys.....you all have already helped a lot but then
......legal issues are always there. :-( ...........Please tell me
what would be the command line to build the biarch architecture.
Till now I have done the following.

build linux using linux-2.4.26.tar.gz
    export TARGET=x86_64-unknown-linux-gnu
    export TARGET_PREFIX=$PREFIX/$TARGET
    make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu - menuconfig
    cp -r include/linux $TARGET_PREFIX/include
    cp -r include/asm-x86_64 $TARGET_PREFIX/asm
    cp -r include/asm-generic $TARGET_PREFIX/include


build binutils-2.15 using the following command
    ../binutils-2.15/configure --target=x86_64-unknown-linux-gnu
--prefix=$PREFIX --disable-nls -v
    make all

build gcc-3.3.3.tar.gz using
   ../gcc-3.3.3/configure --target=x86_64-unknown-linux-gnu
--prefix=$PREFIX --without-headers --with-newlib -v
  make all-gcc which ended with an error shown below

gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes   
-DHAVE_CONFIG_H    -I. -If -I../../gcc-3.3.3/gcc
-I../../gcc-3.3.3/gcc/f -I../../gcc-3.3.3/gcc/config
-I../../gcc-3.3.3/gcc/../include ../../gcc-3.3.3/gcc/f/bad.c -o
f/bad.o
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes   
-DHAVE_CONFIG_H    -I. -If -I../../gcc-3.3.3/gcc
-I../../gcc-3.3.3/gcc/f -I../../gcc-3.3.3/gcc/config
-I../../gcc-3.3.3/gcc/../include ../../gcc-3.3.3/gcc/f/bit.c -o
f/bit.o
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes   
-DHAVE_CONFIG_H    -I. -If -I../../gcc-3.3.3/gcc
-I../../gcc-3.3.3/gcc/f -I../../gcc-3.3.3/gcc/config
-I../../gcc-3.3.3/gcc/../include ../../gcc-3.3.3/gcc/f/bld.c -o
f/bld.o
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes   
-DHAVE_CONFIG_H    -I. -If -I../../gcc-3.3.3/gcc
-I../../gcc-3.3.3/gcc/f -I../../gcc-3.3.3/gcc/config
-I../../gcc-3.3.3/gcc/../include ../../gcc-3.3.3/gcc/f/com.c -o
f/com.o
../../gcc-3.3.3/gcc/f/com.c:11080: error: conflicting types for
'ffecom_gfrt_basictype'
../../gcc-3.3.3/gcc/f/com.h:236: error: previous declaration of
'ffecom_gfrt_basictype' was here
../../gcc-3.3.3/gcc/f/com.c:11080: error: conflicting types for
'ffecom_gfrt_basictype'
../../gcc-3.3.3/gcc/f/com.h:236: error: previous declaration of
'ffecom_gfrt_basictype' was here
make[1]: *** [f/com.o] Error 1
make[1]: Leaving directory `/home/katiyar/new/build_gcc/gcc'
make: *** [all-gcc] Error 2

Please help me. Now what do I do?

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org



More information about the crossgcc mailing list