From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3577 Path: news.gmane.org!not-for-mail From: Ian Denhardt Newsgroups: gmane.linux.lib.musl.general Subject: Compile error doing cross build on arm Date: Mon, 08 Jul 2013 11:58:03 -0400 Message-ID: <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="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373299124 24056 80.91.229.3 (8 Jul 2013 15:58:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 15:58:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3581-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 08 17:58:45 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 1UwDps-0007Vj-PG for gllmg-musl@plane.gmane.org; Mon, 08 Jul 2013 17:58:44 +0200 Original-Received: (qmail 15415 invoked by uid 550); 8 Jul 2013 15:58:44 -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 15403 invoked from network); 8 Jul 2013 15:58:43 -0000 User-Agent: alot/0.3.4 Xref: news.gmane.org gmane.linux.lib.musl.general:3577 Archived-At: Hey, So I just hit a compilation error trying to cross compile musl for arm: arm-elf-gcc -std=3Dc99 -nostdinc -ffreestanding -fexcess-precision=3Dstanda= rd -frounding-math -D_XOPEN_SOURCE=3D700 -I./arch/arm -I./src/internal -I./= include -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchronou= s-unwind-tables -Wa,--noexecstack -falign-functions=3D1 -falign-labels=3D1 = -falign-loops=3D1 -falign-jumps=3D1 -Werror=3Dimplicit-function-declaration= -Werror=3Dimplicit-int -Werror=3Dpointer-sign -Werror=3Dpointer-arith -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 o= f 'wcsspn' differ in signedness [-Werror=3Dpointer-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: some warnings being treated as errors make: *** [src/stdio/vfwprintf.o] Error 1 make: *** Waiting for unfinished jobs.... I'm using the 0.9.11 release. My config.mak looks like: # This version of config.mak was generated by configure # Any changes made here will be lost if configure is re-run ARCH =3D arm prefix =3D ../arm exec_prefix =3D $(prefix) bindir =3D $(exec_prefix)/bin libdir =3D $(prefix)/lib includedir =3D $(prefix)/include syslibdir =3D /lib CC =3D arm-elf-gcc CFLAGS=3D -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchrono= us-unwind-tables -Wa,--noexecstack -falign-functions=3D1 -falign-labels=3D1= -falign-loops=3D1 -falign-jumps=3D1 -Werror=3Dimplicit-function-declaratio= n -Werror=3Dimplicit-int -Werror=3Dpointer-sign -Werror=3Dpointer-arith -fn= o-stack-protector = CFLAGS_C99FSE =3D -std=3Dc99 -nostdinc -ffreestanding -fexcess-precision=3D= standard -frounding-math CPPFLAGS =3D = LDFLAGS =3D -Wl,--hash-style=3Dboth = CROSS_COMPILE =3D = LIBCC =3D -lgcc SHARED_LIBS =3D The compiler is gcc 4.7.2 (installed the archlinux arm-elf-gcc-base package= .) If I remove the -Werror=3Dpointer-sign flag, it builds, but I try not to ju= st ignore such things. Thoughts?