From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1157 Path: news.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.linux.lib.musl.general Subject: installation on bi-arch system Date: Sun, 17 Jun 2012 19:24:01 +0200 Message-ID: <9015794.u7FZ5h2CIA@linuix> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: dough.gmane.org 1339956612 4193 80.91.229.3 (17 Jun 2012 18:10:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2012 18:10:12 +0000 (UTC) Bcc: bruno@haible.de To: Rich Felker , musl@lists.openwall.com Original-X-From: musl-return-1158-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 17 20:10:11 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SgJvO-00029u-Tz for gllmg-musl@plane.gmane.org; Sun, 17 Jun 2012 20:10:11 +0200 Original-Received: (qmail 30276 invoked by uid 550); 17 Jun 2012 18:10:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 10141 invoked from network); 17 Jun 2012 17:22:13 -0000 X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDNRbvY44zMkpA== X-RZG-CLASS-ID: mo00 User-Agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) Xref: news.gmane.org gmane.linux.lib.musl.general:1157 Archived-At: Hi, 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 is ./configure CC="gcc -m32" or 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: #!/bin/sh 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: #!/bin/sh exec gcc-32 "$@" -specs "/arch/x86-linux/inst-musl/lib/musl-gcc.specs" or like this: #!/bin/sh exec gcc -m32 "$@" -specs "/arch/x86-linux/inst-musl/lib/musl-gcc.specs" Bruno