Your message dated Sat, 13 Sep 2008 10:26:34 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#498744: gcc -m32 seems to ignore -L flag
has caused the Debian Bug report #498744,
regarding gcc -m32 seems to ignore -L flag
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
498744: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498744
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: gcc, ia32-libs
Version: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
I am getting the oft-reported "skipping incompatible /usr/bin/../lib/
libc.a when searching for -lc" problem when trying to compile 32 bit
binaries on a 64-bit machine. However, I have tried all of the usual
fixes and none of them work. In particular, gcc seems to be ignoring
my -L flag:
[EMAIL PROTECTED]:~]$ dpkg -l gcc
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-
installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-==============-==============-
============================================
ii gcc 4.1.1-15 The GNU C compiler
[EMAIL PROTECTED]:~]$ dpkg -l ia32-libs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-
installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-==============-==============-
============================================
ii ia32-libs 1.19 ia32 shared libraries for use on
amd64 and i
[EMAIL PROTECTED]:~]$ cat test.c
#include <stdio.h>
main () { printf("%d\n", sizeof(void*)); }
[EMAIL PROTECTED]:~]$ gcc -m32 -L/usr/lib32 test.c
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when
searching for -lc
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for
-lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -
lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
--- End Message ---
--- Begin Message ---
On Fri, Sep 12, 2008 at 02:58:28PM -0700, Ron Garret wrote:
> Package: gcc, ia32-libs
> Version: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>
> I am getting the oft-reported "skipping incompatible /usr/bin/../lib/
> libc.a when searching for -lc" problem when trying to compile 32 bit
> binaries on a 64-bit machine. However, I have tried all of the usual
> fixes and none of them work. In particular, gcc seems to be ignoring my
> -L flag:
>
> [EMAIL PROTECTED]:~]$ dpkg -l gcc
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-
> installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name Version Description
> +++-==============-==============-
> ============================================
> ii gcc 4.1.1-15 The GNU C compiler
>
> [EMAIL PROTECTED]:~]$ dpkg -l ia32-libs
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-
> installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name Version Description
> +++-==============-==============-
> ============================================
> ii ia32-libs 1.19 ia32 shared libraries for use on amd64
> and i
>
> [EMAIL PROTECTED]:~]$ cat test.c
> #include <stdio.h>
> main () { printf("%d\n", sizeof(void*)); }
>
> [EMAIL PROTECTED]:~]$ gcc -m32 -L/usr/lib32 test.c
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when
> searching for -lc
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching
> for -lc
> /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for
> -lc
> /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -
> lc
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
You have to install gcc-4.3-multilib to get those libraries. No need to
use -L/usr/lib32.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' [EMAIL PROTECTED] | [EMAIL PROTECTED]
`- people.debian.org/~aurel32 | www.aurel32.net
--- End Message ---