[Bug target/39448] cross compile for avr mangles path in configure

2009-03-13 Thread chris dot kiick at sun dot com


--- Comment #1 from chris dot kiick at sun dot com  2009-03-13 18:56 ---
Problem was due to half-installed binutils.  Recompiling and installing
binutils got past the reported error.
Still have build problems, but they are not related to this.


-- 

chris dot kiick at sun dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39448



[Bug target/39448] New: cross compile for avr mangles path in configure

2009-03-12 Thread chris dot kiick at sun dot com
Trying to compile avr-gcc on OpenSolaris.  gcc 3.4.3 installed on host, using
sources for 4.3.3.  Make eventually errors off with "cannot compute suffix of
object files".  A look in config.log shows weird paths:
/export/home/ck242721/avr/avr/bin/as: not found.

Binutils installed in /export/home/ck142721/avr/bin with avr- prefix.
 ./configure --target=avr --prefix="/export/home/ckiick/"
--program-prefix="avr-" --enable-languages=c --with-gmp=/usr/local
--with-mpfr=/usr/local
note: gmp and mpfr are installed an in LD_LIBRARY_PATH.

error:
checking for avr-gcc...
/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/xgcc
-B/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/
-B/export/home/ckiick//avr/bin/ -B/export/home/ckiick//avr/lib/ -isystem
/export/home/ckiick//avr/include -isystem /export/home/ckiick//avr/sys-include
checking for suffix of object files... configure: error: cannot compute suffix
of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/export/home/ckiick/Download/gcc-4.3.3'
make: *** [all] Error 2

in gcc4.3.3/avr/libgcc/config.log:

configure:2398:
/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/xgcc
-B/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/
-B/export/home/ckiick//avr/bin/ -B/export/home/ckiick//avr/lib/ -isystem
/export/home/ckiick//avr/include -isystem /export/home/ckiick//avr/sys-include
-o conftest -O2 -g -g -O2 conftest.c  >&5
/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/as[77]:
exec: /export/home/ckiick/avr/avr/bin/as: not found
configure:2401: $? = 1
configure:2567: checking for suffix of object files
configure:2588:
/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/xgcc
-B/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/
-B/export/home/ckiick//avr/bin/ -B/export/home/ckiick//avr/lib/ -isystem
/export/home/ckiick//avr/include -isystem /export/home/ckiick//avr/sys-include
-c -O2 -g -g -O2conftest.c >&5
/export/home/ckiick/Download/gcc-4.3.3/host-i386-pc-solaris2.11/gcc/as[77]:
exec: /export/home/ckiick/avr/avr/bin/as: not found
configure:2591: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2604: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
path of avr-as is /export/home/ckiick/avr/bin/avr-as
I've tried using different paths with --prefix but it still does the same
thing.


-- 
   Summary: cross compile for avr mangles path in configure
   Product: gcc
   Version: 4.3.3
Status: UNCONFIRMED
  Severity: normal
      Priority: P3
         Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chris dot kiick at sun dot com
 GCC build triplet: gcc 4.3.3
  GCC host triplet: gcc version 3.4.3 (csl-sol210-3.4-20050802)
GCC target triplet: avr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39448