On Sun, Sep 19, 2010 at 09:37:59PM +0900, Hitoshi NAKAMORI wrote:
> HI all,
> I run "make obj" and try to make cross-tools again.
> 
> looks a variable errors are  caused same factor.
> every target failed in generating _muldi3.o from libgcc2.c.
> 
> for example, in sparc64 target, last command which cause error occured
> is follow.
> 
[snip]
> 
> I added -v option for cc, and run above command.
> output is follow.
> ---
> Using built-in specs.
> Target: sparc64-unknown-openbsd4.8
> Configured with: OpenBSD/sparc64 system compiler
> Thread model: posix
> gcc version 4.2.1 20070719
>  /usr/src/gnu/usr.bin/cc/libgcc/obj.i386.sparc64/../cc1/cc1 -quiet -v
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/include
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/config
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc -I.
> -I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/libgcc/obj.i386.sparc64/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/libgcc/../cc_tools
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/config
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/include
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/libcpp/include
> -I/usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/libdecnumber -iprefix
> /usr/cross/sparc64/usr/obj/gnu/usr.bin/cc/cc/../lib/gcc-lib/sparc64-unknown-openbsd4.8/4.2.1/
> -D__sparc_v9__ -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -DHAVE_GTHR_DEFAULT -DIN_GCC -DHAVE_CONFIG_H -DPREFIX="/usr"
> -DCROSS_COMPILE -DL_muldi3
> /usr/src/gnu/usr.bin/cc/libgcc/../../../gcc/gcc/libgcc2.c -quiet
> -dumpbase libgcc2.c -auxbase-strip _muldi3.o -g -O2 -version -fPIC -o
> - |
>  as -V -s -K PIC -Av9a -64 -o _muldi3.o -
> (skip)
> -----
> 
> I found "as" (maybe /usr/bin/as ) called from cross gcc
> with target specified option. but he only knows i386,
> so return variable "unrecognize option" error.
> 
> In conclusion, all targets of gcc4 it is not possible to create a cross-tools.
> 
> 

This appears to be correct. I had tried a couple of archs, however had not
realized it is all targets. gcc4 does not have the correct search
paths set up for the cross environment. I will look into this again
today as I have some time.

Dale Rahn                               dr...@dalerahn.com

Reply via email to