[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#422513: marked as done (gcc-4.1: Can't crosscompile: /usr/bin/ld: cannot find -lgcc)



Your message dated Sun, 6 May 2007 17:51:09 +0200
with message-id <20070506155109.GA23413@wavehammer.waldi.eu.org>
and subject line Bug#422513: gcc-4.1: Can't crosscompile: /usr/bin/ld: cannot find -lgcc
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gcc-4.1
Version: 4.1.2-5
Severity: important

I tried to build alsa-lib 1.0.14~rc3. On both PPC and I486 it stops:

cd bibuild && CC="gcc -m64" ../configure --prefix=/usr \
                    --mandir=\${prefix}/share/man \
                    --infodir=\${prefix}/share/info \
                    --datadir=\${prefix}/share \
                    --host=powerpc-linux-gnu \
                    --enable-static --disable-maintainer-mode
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... powerpc-unknown-linux-gnu
checking host system type... powerpc-unknown-linux-gnu
checking target system type... powerpc-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for powerpc-linux-gnu-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for powerpc-linux-gnu-gcc... gcc -m64
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

config.log tells:

configure:3016: $? = 0
configure:3023: gcc -m64 -v >&5
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib
+--libexecdir=/usr/lThread model: posix
gcc version 4.1.3 20070429 (prerelease) (Debian 4.1.2-5)
configure:3026: $? = 0
configure:3033: gcc -m64 -V >&5
gcc: '-V' must come at the start of the command line
configure:3036: $? = 1
configure:3059: checking for C compiler default output file name
configure:3086: gcc -m64    conftest.c  >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc-linux-gnu/4.1.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/powerpc-linux-gnu/4.1.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:3089: $? = 1
configure:3127: result:·
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "alsa-lib"
| #define VERSION "1.0.14rc3"
| /* end confdefs.h.  */
|·
| int
| main ()
| {
|·
|   ;
|   return 0;
| }
configure:3134: error: C compiler cannot create executables


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.21-aragorn
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.1 depends on:
ii  binutils               2.17cvs20070426-4 The GNU assembler, linker and bina
ii  cpp-4.1                4.1.2-5           The GNU C preprocessor
ii  gcc-4.1-base           4.1.2-5           The GNU Compiler Collection (base 
ii  libc6                  2.5-5             GNU C Library: Shared libraries
ii  libgcc1                1:4.1.2-5         GCC support library

Versions of packages gcc-4.1 recommends:
ii  libc6-dev                     2.5-5      GNU C Library: Development Librari
pn  libmudflap0-dev               <none>     (no description available)

-- no debconf information

-- 
    .~.
    /V\   L   I   N   U   X
   /( )\ >Phear the Penguin<
   ^^-^^


--- End Message ---
--- Begin Message ---
On Sun, May 06, 2007 at 05:34:31PM +0200, Elimar Riesebieter wrote:
> I tried to build alsa-lib 1.0.14~rc3. On both PPC and I486 it stops:
> cd bibuild && CC="gcc -m64" ../configure --prefix=/usr \

Building things with -m64 needs extra care. Add gcc-multilib to build-depends.

Bastian

-- 
The heart is not a logical organ.
		-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4

--- End Message ---

Reply to: