Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140813102501.GG5170@example.net>
Date: Wed, 13 Aug 2014 12:25:01 +0200
From: u-igbb@...ey.se
To: musl@...ts.openwall.com
Subject: Re: compiling musl on x86_64 linux with pcc

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

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.