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

Bug#476645: gcc-4.2: -m32 switch broken?



Package: gcc-4.2
Version: 4.2.3-3
Severity: normal


See the following code:

#include <stdio.h>

int main (void){
  puts ("Hallo Welt");
  return 0;
}

compiling with gcc-4.2 (in 64-bit mode gives no error and just runs)
hello% gcc-4.2 hello.c
frido@fvl:~/programming/C/hello% ./a.out 
Hallo Welt

But if I use the -m32 switch I got:

 gcc-4.2 -m32 hello.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s
collect2: ld gab 1 als Ende-Status zurück

I'm not suprised because in the that directory one can find 
a 32 subdirectory and there one can find the proper files. So this is some kind of problem


With best regards
Friedrich



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.2 depends on:
ii  binutils            2.18.1~cvs20080103-4 The GNU assembler, linker and bina
ii  cpp-4.2             4.2.3-3              The GNU C preprocessor
ii  gcc-4.2-base        4.2.3-3              The GNU Compiler Collection (base 
ii  libc6               2.7-10               GNU C Library: Shared libraries
ii  libgcc1             1:4.3.0-3            GCC support library

Versions of packages gcc-4.2 recommends:
ii  libc6-dev                     2.7-10     GNU C Library: Development Librari

-- no debconf information



Reply to: