Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 17 Jun 2012 19:24:01 +0200
From: Bruno Haible <>
To: Rich Felker <>,
Subject: installation on bi-arch system


Trying to install musl-0.9.1 as a 32-bit library on a bi-arch x86_64
glibc system. The usual way to configure packages for this configuration
  ./configure CC="gcc -m32"
  CC="gcc -m32" ./configure
See <>.
But this does not work with musl's configure script:

$ CC="gcc -m32" ./configure --prefix=/arch/x86-linux/inst-musl --exec-prefix=/arch/x86-linux/inst-musl CC="gcc -m32"
checking for C compiler... gcc -m32
checking whether compiler is gcc... no
checking target system type... unknown
./configure: unable to detect target arch; try ./configure --target=...

As a workaround, I have to create a wrapper script that invokes "gcc -m32 ..."
and pass that as CC. This should not be needed.

Additionally, the musl-gcc script that gets created by "make install" looks
like this:

exec gcc "$@" -specs "/arch/x86-linux/inst-musl/lib/musl-gcc.specs"

When invoked with option "-c", it produces 64-bit .o files. To produce
32-bit .o files, it should read like this:

exec gcc-32 "$@" -specs "/arch/x86-linux/inst-musl/lib/musl-gcc.specs"

or like this:

exec gcc -m32 "$@" -specs "/arch/x86-linux/inst-musl/lib/musl-gcc.specs"


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.