From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22182 invoked by alias); 21 Jul 2005 21:16:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22173 invoked by uid 22791); 21 Jul 2005 21:16:44 -0000 Received: from [207.34.103.174] (HELO cdlsystems.com) (207.34.103.174) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 21 Jul 2005 21:16:43 +0000 Received: from pinchy by cdlsystems.com (Cipher TLSv1:RC4-MD5:128) (MDaemon.PRO.v7.2.0.R) with ESMTP id md50000246576.msg for ; Thu, 21 Jul 2005 15:16:38 -0600 Message-ID: <008b01c58e39$77b221d0$ab0e10ac@pinchy> Reply-To: "Mark Cuss" From: "Mark Cuss" To: Subject: Can't find values-Xa.o when cross compiling Date: Thu, 21 Jul 2005 21:16:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Authenticated-Sender: mark@cdlsystems.com X-Spam-Processed: cdlsystems.com, Thu, 21 Jul 2005 15:16:38 -0600 (not processed: message from valid local sender) X-Return-Path: mcuss@cdlsystems.com X-MDaemon-Deliver-To: gcc-help@gcc.gnu.org X-MDAV-Processed: cdlsystems.com, Thu, 21 Jul 2005 15:16:42 -0600 X-SW-Source: 2005-07/txt/msg00227.txt.bz2 Hello All I've built gcc-3.4.4 as a linux to Solaris (on SPARC) cross compiler. If I change my path to include my new compiler executables, I can compile and link a simple "hello world" program. However, I want to be able to specify the target architecture and compiler version number with gcc's -b and -V flags. When I try to build my program using these flags, the system can't find values-Xa.o: [mark@locutus helloworld]$ g++ -b sparc-sun-solaris2.9 -V 3.4.4 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 [mark@locutus helloworld]$ The file is in $sysroot/usr/lib (and $sysroot/usr/ccs/lib too). $sysroot was set as configure option when built gcc. According to the docs, it looks like $sysroot should be searched for the library & object files, but it doesn't seem to work. Even if I specify the path to the linker with -Wl,-L , it still can't find the file. However, if I directly call gcc instead of using -b and -V to call sparc-sun-solaris2.9-gcc, it works... Any ideas why this might be? Thanks Mark Mark Cuss, B. Sc. Real Time Systems Analyst System Administrator CDL Systems Ltd Suite 230 3553 - 31 Street NW Calgary, AB, Canada Phone: 403 289 1733 ext 226 Fax: 403 289 3967 www.cdlsystems.com