Re: compiling 32 bit code under amd64

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

 



On Tue, 7 Dec 2004, Satish Balay wrote:

> On Tue, 7 Dec 2004, Aleksander Demko wrote:
>
> > I can't seem too easily (without crazy ln -s hacks) compile 32 bit
> > code under my 64-bit fedora core 3 (on my AMD64). Very simple C/C++
> > app works, but as soon as I start pkg-config'in anything, it's like
> > gcc ignores everything in /usr/lib.
>
> > [testuser@moya tmp]$ gcc -m32 `pkg-config --cflags --libs glib-2.0`
>
> Soulds like pkgconfig doesn't have 'multi-lib' support (i.e tell it to
> look for 32 bit version of the package - instead of the 64bit).
>
> You can look at the /usr/lib/pkgconfig/*pc file directly - and see if
> it has multiple files for i386 & x86_64
>
> Perhaps a bugzilla item?

I tried an even a simpler case, without pkg-config:

[testuser@moya tmp]$ gcc -m32 -lglib-2.0 1.c
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.so when searching for -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.a when searching for -lglib-2.0

[testuser@moya tmp]$ gcc -m32 -L/usr/lib -lglib-2.0 1.c
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.so when searching for -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib64/libglib-2.0.a when searching for -lglib-2.0

[testuser@moya tmp]$ ls -l /usr/lib/libglib-2.0.so.0*
lrwxrwxrwx  1 root root     22 Dec  7 16:25 /usr/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.400.8
-rwxr-xr-x  1 root root 505232 Dec  6 08:45 /usr/lib/libglib-2.0.so.0.400.8


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux