[Pkg-alsa-devel] Bug#422513: gcc-4.1: Can't crosscompile: /usr/bin/ld: cannot find -lgcc

Elimar Riesebieter riesebie at lxtec.de
Sun May 6 15:34:31 UTC 2007


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 at euro, LC_CTYPE=de_DE at 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<
   ^^-^^




More information about the Pkg-alsa-devel mailing list