From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9322 Path: news.gmane.org!not-for-mail From: Petr Petrov Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile error with --target=i386 Date: Tue, 16 Feb 2016 13:31:40 +0300 Message-ID: <56C2FA8C.4020908@gkmsoft.ru> 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=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455618723 10156 80.91.229.3 (16 Feb 2016 10:32:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 10:32:03 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9335-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 16 11:31:57 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 1aVcvE-0001dE-Hw for gllmg-musl@m.gmane.org; Tue, 16 Feb 2016 11:31:56 +0100 Original-Received: (qmail 20199 invoked by uid 550); 16 Feb 2016 10:31:54 -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 20178 invoked from network); 16 Feb 2016 10:31:53 -0000 X-Yandex-Suid-Status: 1 0 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:9322 Archived-At: On 16.02.2016 13:10, Alexander Monakov wrote: > 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 > > Bingo! It works! Thank you very much! Never-mind, I tried to use CFLAGS: CFLAGS=-m32 ./confgiure --target=i386 make but it didn't work. -- Cheers, Petr Petrov, GkmSoft software development company, plug-ins development company for various CAD softwares, http://gkmsoft.ru