Menu

How to build on Ubuntu 13.10 and derivates (amd64)

Help
2013-11-01
2013-11-02
  • greyspammer

    greyspammer - 2013-11-01

    Greetings!

    It appears I have a chicken-egg-problem:

    $ cd statifier-1.7.3
    $ LC_ALL=C make
    /bin/sh ./configure
    make all-local-32
    ELF_CLASS=32 && mkdir --parents $ELF_CLASS && make ELF_CLASS=$ELF_CLASS all-local-internal
    gcc -m32 -Icpus/i386 -Wall -O2 -g elf_class.c -o 32/elf_class
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when searching for -lgcc
    /usr/bin/ld: cannot find -lgcc
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so when searching for -lgcc_s
    /usr/bin/ld: cannot find -lgcc_s
    collect2: error: ld returned 1 exit status
    make[4]: *** [32/elf_class] Error 1
    make[3]: *** [all-local-32] Error 2
    make[2]: *** [all-local] Error 2
    make[1]: *** [all-recursive] Error 2
    make: *** [all-recursive] Error 2
    

    So, it seems like there are some files missing.
    However:

    $ dpkg -S libgcc_s.so libgcc.a
    libgcc1:i386: /lib/i386-linux-gnu/libgcc_s.so.1
    libgcc-4.8-dev:i386: /usr/lib/gcc/i686-linux-gnu/4.8/libgcc_s.so
    libgcc1:amd64: /lib/x86_64-linux-gnu/libgcc_s.so.1
    libgcc-4.8-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc_s.so
    libgcc-4.8-dev:i386: /usr/lib/gcc/i686-linux-gnu/4.8/libgcc.a
    libgcc-4.8-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a
    

    So the files which are missing are actually there. I am at a loss as to how to proceed.

    Is there a statified statifier so I can start statifying?

     
    • greyspammer

      greyspammer - 2013-11-01

      Nevermind. I found my mistake. When you're trying trying to get 32bit software to run under amd64, you quickly learn about Debian's multiarch approach. You're not supposed to install ia32-libs anymore but instead install libfoo:i386.

      Well, that's what I did with the libc headers (apt-get install libc6-dev:i386). Only this time, it was a mistake. I had to deinstall it and install libc6-dev-i386 instead. That pulled some other important packages (gcc-multilib etc.) and now statifier builds fine.

       
      • Valery Reznic

        Valery Reznic - 2013-11-02

        I am glad you figured it out

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.