mailing list of musl libc
 help / color / mirror / code / Atom feed
* build failure with pcc 1.0.0 on x86_64
@ 2011-06-05 16:16 Kurt H Maier
  2011-06-05 16:26 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Kurt H Maier @ 2011-06-05 16:16 UTC (permalink / raw)
  To: musl

git revision c74d306f47e9f212a63dc0187fb08aa275a8f1a5

$ cat config.mak
ARCH = x86_64
prefix = /home/kurt/ch/buildroot
exec_prefix = /home/kurt/ch/buildroot


$ make CC=/usr/local/bin/pcc
...
/usr/local/bin/pcc -Os -nostdinc -ffreestanding -std=c99
-D_XOPEN_SOURCE=700 -pipe -I./include -I./src/internal -I./arch/x86_64
-c -o src/dirent/__getdents.o src/dirent/__getdents.c
src/dirent/__getdents.c, line 8: compiler error: unsupported xasm constraint r11
make: *** [src/dirent/__getdents.o] Error 1



Is there something I'm doing wrong?  Or is this an actual bug?

Thanks
--
# Kurt H Maier


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build failure with pcc 1.0.0 on x86_64
  2011-06-05 16:16 build failure with pcc 1.0.0 on x86_64 Kurt H Maier
@ 2011-06-05 16:26 ` Rich Felker
  2011-06-05 16:59   ` gs
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2011-06-05 16:26 UTC (permalink / raw)
  To: musl

On Sun, Jun 05, 2011 at 12:16:35PM -0400, Kurt H Maier wrote:
> src/dirent/__getdents.c, line 8: compiler error: unsupported xasm
> constraint r11
> make: *** [src/dirent/__getdents.o] Error 1
> 
> Is there something I'm doing wrong?  Or is this an actual bug?

I use i386 not x86_64, so building with pcc on x86_64 has not been
tested by me. It looks like pcc does not support the method used to
get the right argument register values loaded on x86_64, but I'm not
sure what the best solution would be. It would probably work, in the
mean time, to remove the asm entirely from __syscallN inline functions
and instead have them simply call the extern __syscall().

Rich


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build failure with pcc 1.0.0 on x86_64
  2011-06-05 16:26 ` Rich Felker
@ 2011-06-05 16:59   ` gs
  0 siblings, 0 replies; 3+ messages in thread
From: gs @ 2011-06-05 16:59 UTC (permalink / raw)
  To: musl

On 06/05/2011 06:26 PM, Rich Felker wrote:
> On Sun, Jun 05, 2011 at 12:16:35PM -0400, Kurt H Maier wrote:
>> src/dirent/__getdents.c, line 8: compiler error: unsupported xasm
>> constraint r11
>> make: *** [src/dirent/__getdents.o] Error 1
>>
>> Is there something I'm doing wrong?  Or is this an actual bug?
> I use i386 not x86_64, so building with pcc on x86_64 has not been
> tested by me. It looks like pcc does not support the method used to
> get the right argument register values loaded on x86_64, but I'm not
> sure what the best solution would be. It would probably work, in the
> mean time, to remove the asm entirely from __syscallN inline functions
> and instead have them simply call the extern __syscall().
>
> Rich
>
also i would use the current PCC from svn as the 1.0.0 release is full 
of bugs, which mostly have been fixed by now.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-05 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-05 16:16 build failure with pcc 1.0.0 on x86_64 Kurt H Maier
2011-06-05 16:26 ` Rich Felker
2011-06-05 16:59   ` gs

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).