From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5822 Path: news.gmane.org!not-for-mail From: u-igbb@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: compiling musl on x86_64 linux with pcc Date: Wed, 13 Aug 2014 12:25:01 +0200 Message-ID: <20140813102501.GG5170@example.net> References: <20140813091843.GD5170@example.net> <20140813094910.GN22308@port70.net> 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 1407925538 19369 80.91.229.3 (13 Aug 2014 10:25:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 10:25:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5828-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 13 12:25:32 2014 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 1XHVkI-0001dB-9Q for gllmg-musl@plane.gmane.org; Wed, 13 Aug 2014 12:25:30 +0200 Original-Received: (qmail 19499 invoked by uid 550); 13 Aug 2014 10:25:29 -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 19491 invoked from network); 13 Aug 2014 10:25:29 -0000 X-T2-Spam-Status: No, hits=0.0 required=5.0 Received-SPF: none receiver=mailfe01.swip.net; client-ip=171.25.193.131; envelope-from=u-igbb@aetey.se Content-Disposition: inline In-Reply-To: <20140813094910.GN22308@port70.net> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5822 Archived-At: On Wed, Aug 13, 2014 at 11:49:10AM +0200, Szabolcs Nagy wrote: > > ./arch/x86_64/syscall_arch.h, line 58: warning: no register assignment (yet) > > src/aio/aio_readwrite.c, line 23: compiler error: unsupported xasm constraint r11 > there is a way around: > static __inline long __syscall1(long n, long a1) > { > return (__syscall)(n, a1); > } > > etc Thanks Szabolcs, this made it! Unfortunately I hit further problems: ... pcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -D_XOPEN_SOURCE=700 -I./arch/x86_64 -I./src/internal -I./include -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -fno-stack-protector -c -o src/env/__init_tls.o src/env/__init_tls.c src/env/__init_tls.c:112: error: #else in non-conditional section error: XXXXXX/libexec/cpp terminated with status 1 ... I'll look further for the reason and a fix but if somebody has suggestions, they will be appreciated. Rune