From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3578 Path: news.gmane.org!not-for-mail From: Harald Becker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Compile error doing cross build on arm Date: Mon, 8 Jul 2013 19:51:52 +0200 Message-ID: <20130708195152.0704f577@ralda.gmx.de> References: <20130708155802.24215.17389@urza> 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: ger.gmane.org 1373305928 4002 80.91.229.3 (8 Jul 2013 17:52:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 17:52:08 +0000 (UTC) Cc: musl@lists.openwall.com, ian@zenhack.net Original-X-From: musl-return-3582-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 08 19:52:09 2013 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 1UwFba-0006Il-Vx for gllmg-musl@plane.gmane.org; Mon, 08 Jul 2013 19:52:07 +0200 Original-Received: (qmail 3696 invoked by uid 550); 8 Jul 2013 17:52:06 -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 3685 invoked from network); 8 Jul 2013 17:52:06 -0000 In-Reply-To: <20130708155802.24215.17389@urza> X-Provags-ID: V03:K0:U/c31JqyNCnf2Iw4CPbBmRICtvVNLpMB5tS7W+baQluMp8w6EcF Uhl12XQdJ6s8qEib/j+5zHtpB/SQzyW9enm3Ax0JRlprraVwTJ3L2opr3VoKTys7Fgrn/fu mNbfVVnRFVz/8ixEun4VJRJlRkCyjHL+BT7kzJD/PoOEButbhX/Y+TKP+LjOj+lWzvyzzIo S5RWomd7Upr2SF5ttasEg== Xref: news.gmane.org gmane.linux.lib.musl.general:3578 Archived-At: Hi Ian ! 08-07-2013 11:58 Ian Denhardt : > So I just hit a compilation error trying to cross compile musl > for arm: > -fno-stack-protector -c -o src/stdio/vfwprintf.o > src/stdio/vfwprintf.c src/stdio/vfwprintf.c: In function > 'wprintf_core': src/stdio/vfwprintf.c:195:3: error: pointer > targets in passing argument 2 of 'wcsspn' differ in signedness > [-Werror=pointer-sign] In file included from > src/stdio/vfwprintf.c:7:0: ./include/wchar.h:62:8: note: > expected 'const wchar_t *' but argument is of type 'int *' cc1: > CFLAGS= -Os -pipe -fomit-frame-pointer -fno-unwind-tables > -fno-asynchronous-unwind-tables -Wa,--noexecstack > -falign-functions=1 -falign-labels=1 -falign-loops=1 > -falign-jumps=1 -Werror=implicit-function-declaration > -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith > -fno-stack-protector CFLAGS_C99FSE = -std=c99 -nostdinc > -ffreestanding -fexcess-precision=standard -frounding-math It is curious, but I had similar compile error on native ARM compile (gcc 4.6.4). They vanished after removing some of the option on my CFLAGS list. Didn't analyze this, but probable candidates the unwind-tables and math options. So play a bit with your CFLAGS list, try "CFLAGS=-Os" if problem vanishes. -- Harald