# uname -a
Linux debian 2.6.26-1-amd64 #1 SMP Sat Jan 10 19:55:48 UTC 2009 x86_64
GNU/Linux


# gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=gcc/xgcc
Target: x86_64-unknown-linux-gnu
Configured with: ../lto_trunk/configure --prefix=/usr/local/lto
--enable-languages=lto,c++ --enable-multilib --enable-stage1-checking=all
--enable-checking=release CPPFLAGS=-I/usr/local/include
Thread model: posix
gcc version 4.4.0 20090218 (experimental) [lto revision 144454] (lto merged
with rev 144262) 


# make
...
make[3]: Leaving directory `/usr/src/lto_build/lto-plugin'
mkdir -p -- x86_64-unknown-linux-gnu/libgcc
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm... /usr/src/lto_build/./gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /usr/src/lto_build/./gcc/xgcc
-B/usr/src/lto_build/./gcc/ -B/usr/local/lto/x86_64-unknown-linux-gnu/bin/
-B/usr/local/lto/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/lto/x86_64-unknown-linux-gnu/include -isystem
/usr/local/lto/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/usr/src/lto_build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/usr/src/lto_build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/src/lto_build'
make: *** [all] Error 2


The "config.log" says:
...
xgcc: '-V' must come at the start of the command line
configure:2396: $? = 1
configure:2415: /usr/src/lto_build/./gcc/xgcc -B/usr/src/lto_build/./gcc/
-B/usr/local/lto/x86_64-unknown-linux-gnu/bin/
-B/usr/local/lto/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/lto/x86_64-unknown-linux-gnu/include -isystem
/usr/local/lto/x86_64-unknown-linux-gnu/sys-include -o conftest -g -O2    
conftest.c  >&5
/tmp/ccEBgRfq.s: Assembler messages:
/tmp/ccEBgRfq.s:35: Error: cannot represent relocation type BFD_RELOC_64
/tmp/ccEBgRfq.s:36: Error: cannot represent relocation type BFD_RELOC_64
/tmp/ccEBgRfq.s:44: Error: cannot represent relocation type BFD_RELOC_64
/tmp/ccEBgRfq.s:45: Error: cannot represent relocation type BFD_RELOC_64
/tmp/ccEBgRfq.s:123: Error: cannot represent relocation type BFD_RELOC_64
configure:2418: $? = 1
configure:2590: checking for suffix of object files
...


This is similar to the problem described in these Bug Reports:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38743
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38804

Andrew has some input on fixing these type of problems, here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38804#c4 (and c5)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38743#c2


Thanks,
Rob


-- 
           Summary: [lto] - cannot compute suffix of object files - cannot
                    represent relocation type BFD_RELOC_64
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

Reply via email to