Mark Cuss wrote:
[EMAIL PROTECTED] helloworldsun]$ g++ -b sparc-sun-solaris2.9 hello.cxx
/cdl/apps/.software/linux/gcc-3.4.4-x86-sparc/lib/gcc/sparc-sun-solaris2.9/3.4.4/../../../../sparc-sun-solaris2.9/bin/ld: values-Xa.o: No such file: No such file or directory
collect2: ld returned 1 exit status

Building cross compilers for solaris is not common, so it may be that no one else has seen this problem. You may have to try to figure this out yourself. Or you could try submitting a bugzilla bug report and hope that someone looks at this.

/usr/ccs/lib is not a normal search directory for gcc, so it may be that the mechanism we use for it doesn't work for crosses. Checking, I see that config/svr4.h doesn't set MD_STARTFILE_PREFIX when CROSS_COMPILE is true. Also, the driver, gcc.c, does not use MD_STARTFILE_PREFIX when CROSS_COMPILE is true. This might need some work to fix. Though this doesn't explain why it does work for one of your compilers but not the other.

Try adding verbose options to see what is happening, i.e. compile with -v -Wl,-v and look at the output to see if you can see something that explains what is happening.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com

Reply via email to