You are not logged in.

#1 2013-10-18 15:50:15

calid
Member
Registered: 2013-10-18
Posts: 5
Website

missing lib32 libraries when creating 32bit perlbrew

Hey guys,

Trying to build a 32bit perlbrew here, unfortunately some core libraries seem to be missing from multilib:

    perlbrew install perl-5.18.1 -Accflags="-m32 -march=i686 -L/usr/lib32" -Aldflags="-m32 -march=i686 -L/usr/lib32" -Alddlflags="-shared -m32 -march=i686 -L/usr/lib32"

Output:

Checking your choice of C compiler and flags for coherency...
    I've tried to compile and run the following simple program:
   
    #include <stdio.h>
    int main() { printf("Ok\n"); return(0); }
   
    I used the command:
   
            cc -o try -O2 -m32 -march=i686 -L/usr/lib32 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -m32 -march=i686 -L/usr/lib32 -fstack-protector -L/usr/local/lib try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
             ./try
   
    and I got the following output:
   
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../libgdbm.so when searching for -lgdbm
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../libgdbm.a when searching for -lgdbm
    /usr/bin/ld: skipping incompatible /usr/lib/libgdbm.so when searching for -lgdbm
    /usr/bin/ld: skipping incompatible /usr/lib/libgdbm.a when searching for -lgdbm
    /usr/bin/ld: cannot find -lgdbm
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../libdb.so when searching for -ldb
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../libdb.a when searching for -ldb
    /usr/bin/ld: skipping incompatible /usr/lib/libdb.so when searching for -ldb
    /usr/bin/ld: skipping incompatible /usr/lib/libdb.a when searching for -ldb
    /usr/bin/ld: cannot find -ldb
    collect2: error: ld returned 1 exit status
    I can't compile the test program.

pkgfile does not show these available in multilib:

    calid@arch-vm /home/calid
    ✔ pkgfile -rs libgdbm.so
    core/gdbm

    calid@arch-vm /home/calid
    ✔ pkgfile -rs libdb.so
    core/db

I do of course have multilib enabled:

    calid@arch-vm /home/calid
    ✔ pacman -Ss gcc | grep installed
    multilib/gcc-libs-multilib 4.8.1-3 [installed]
    multilib/gcc-multilib 4.8.1-3 (multilib-devel) [installed]
    multilib/lib32-gcc-libs 4.8.1-3 [installed]

I can of course compile and install everything myself by hand, but was wondering if this is a bug (and if I should open a package issue).

Thanks

Offline

#2 2013-10-18 15:55:54

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: missing lib32 libraries when creating 32bit perlbrew

I don't know if this helps, but lib32-db and lib32-gdbm are both in AUR.

Offline

#3 2013-10-18 19:17:29

calid
Member
Registered: 2013-10-18
Posts: 5
Website

Re: missing lib32 libraries when creating 32bit perlbrew

Thanks skottish.  Unfortunately those are both orphans and haven't been updated in awhile.  Considering these are libraries available in [core], shouldn't they have [multilib] equivalents?  I guess to the larger point, shouldn't every library in [core] have a [multilib] version?

Offline

#4 2013-10-18 19:35:48

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: missing lib32 libraries when creating 32bit perlbrew

calid wrote:

Thanks skottish.  Unfortunately those are both orphans and haven't been updated in awhile.

I'd just look over the PKGBUILDs to make sure that they're sane, change the version numbers, update the md5sums, and profit. For that matter, if you use them, adopt them. That way you can be sure that they're updated.

calid wrote:

Considering these are libraries available in [core], shouldn't they have [multilib] equivalents?  I guess to the larger point, shouldn't every library in [core] have a [multilib] version?

Everything in the Arch repos is something that some developer/TU wants to maintain. Missing stuff is simply a side effect of Arch being totally community driven and having no commercial backing.

Offline

#5 2013-10-18 19:43:00

calid
Member
Registered: 2013-10-18
Posts: 5
Website

Re: missing lib32 libraries when creating 32bit perlbrew

Hmm okay, that being the case that a dev or TU would need to adopt these I'm going to go ahead and open a ticket and see if they're are any takers, considering they're fairly core libraries.

If not I'll take a look at the PKGBUILDs and maybe adopt the AUR versions myself.

Thanks for your help

Offline

Board footer

Powered by FluxBB