This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: missing libc with -m32
- From: Pierre-Matthieu anglade <pierre dot matthieu dot anglade at gmail dot com>
- To: Tom or Julie Laub <tw dot ja dot laub at comcast dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Nov 2005 14:58:14 +0100
- Subject: Re: missing libc with -m32
- References: <003801c5f48d$12c1bd20$1b02a8c0@Bowman> <438C5F54.8000303@mbnet.fi>
I've been told that on ubuntu64, the 32 bit libs lives in /usr/lib32
while the 64 bits one lives in /usr/lib. There is no standard but on
other distro you have respectively /usr/lib and /usr/lib/64. can't
your problem come from that to some extent?
On 11/29/05, Kai Ruottu <karuottu@mbnet.fi> wrote:
> Tom or Julie Laub wrote:
>
> > We are trying to build wine on an Ubuntu 64-bit system. The configure
> > script fails saying that it cannot generate the executables. On
> > inspecting the config.log file we find that when trying to compile an
> > c++ or c program with the -m32 flag (ex. gcc -m32 hello.c) the
> > compiler cannot find an appropriate libc.a or libc.so file to link
> > with. It skips multiple "inappropriate" libc.a and libc.so files
> > and then finally give up saying it cannot find -lc.
>
> But are the 32-bit libraries there or not?
>
> > Can you give us some guidance on what to do about this problem?
>
> If all the 32-bit libraries (glibc, termcap, ncurses, X11, Gnome,...)
> are there, just find out why they are not found and used ! If they
> are not there, what extra packages should be installed, maybe the 32-
> bit stuff is totally 'optional'...
>
>
>
--
Pierre-Matthieu Anglade