From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9321 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile error with --target=i386 Date: Tue, 16 Feb 2016 13:10:58 +0300 (MSK) Message-ID: References: <56C2E94C.7000705@gkmsoft.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1455617480 21501 80.91.229.3 (16 Feb 2016 10:11:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 10:11:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9334-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 16 11:11:20 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aVcbG-00082y-Oq for gllmg-musl@m.gmane.org; Tue, 16 Feb 2016 11:11:19 +0100 Original-Received: (qmail 5622 invoked by uid 550); 16 Feb 2016 10:11:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5601 invoked from network); 16 Feb 2016 10:11:10 -0000 In-Reply-To: <56C2E94C.7000705@gkmsoft.ru> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) Xref: news.gmane.org gmane.linux.lib.musl.general:9321 Archived-At: On Tue, 16 Feb 2016, Petr Petrov wrote: > I'm trying to build the latest musl-libc 1.1.13 on i386 architecture. > I'm using the following line: > > ./configure --target=i386 > make > > and I got: > gcc -std=c99 -nostdinc -ffreestanding -ffloat-store -frounding-math > -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I./arch/i386 -I./arch/generic > -Iobj/src/internal -I./src/internal -Iobj/include -I./include -Os -pipe > -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables > -ffunction-sections -fdata-sections -mtune=generic > -Werror=implicit-function-declaration -Werror=implicit-int > -Werror=pointer-sign -Werror=pointer-arith -include vis.h -c -o > obj/src/fenv/i386/fenv.o src/fenv/i386/fenv.s > src/fenv/i386/fenv.s: Assembler messages: > src/fenv/i386/fenv.s:12: Error: suffix or operands invalid for `pop' It seems you'd like to compile a 32-bit musl on an x86-64 glibc-based system using the dual-abi (x86-64 + i386) capability of the host GCC. If so, you need to pass -m32 on the gcc command line to generate 32-bit code: ./configure --target=i386 CC=gcc\ -m32 Alexander