From: Ian Denhardt <ian@zenhack.net>
To: musl@lists.openwall.com
Subject: Compile error doing cross build on arm
Date: Mon, 08 Jul 2013 11:58:03 -0400 [thread overview]
Message-ID: <20130708155802.24215.17389@urza> (raw)
Hey,
So I just hit a compilation error trying to cross compile musl for arm:
arm-elf-gcc -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -D_XOPEN_SOURCE=700 -I./arch/arm -I./src/internal -I./include -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 -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: 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 = arm
prefix = ../arm
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(prefix)/lib
includedir = $(prefix)/include
syslibdir = /lib
CC = arm-elf-gcc
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
CPPFLAGS =
LDFLAGS = -Wl,--hash-style=both
CROSS_COMPILE =
LIBCC = -lgcc
SHARED_LIBS =
The compiler is gcc 4.7.2 (installed the archlinux arm-elf-gcc-base package.)
If I remove the -Werror=pointer-sign flag, it builds, but I try not to just
ignore such things. Thoughts?
next reply other threads:[~2013-07-08 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 15:58 Ian Denhardt [this message]
2013-07-08 17:51 ` Harald Becker
2013-07-08 18:35 ` Rich Felker
2013-07-08 22:32 ` Ian Denhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130708155802.24215.17389@urza \
--to=ian@zenhack.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).