Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130708195152.0704f577@ralda.gmx.de>
Date: Mon, 8 Jul 2013 19:51:52 +0200
From: Harald Becker <ralda@....de>
Cc: musl@...ts.openwall.com, ian@...hack.net
Subject: Re: Compile error doing cross build on arm

Hi Ian !

08-07-2013 11:58 Ian Denhardt <ian@...hack.net>:

> 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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.