sparc64 newlib error

Jeff Johnston jjohnstn@redhat.com
Thu Oct 3 22:58:00 GMT 2013


On 10/03/2013 01:14 PM, eezstreet wrote:
> I'm getting an error with building newlib 1.20.0 for use with a sparc64
> toolchain. The error follows:
>
>
>
> [ERROR] /home/lsysadmin/crosstool-ng-1.18.0/.build/src/newlib-
> 1.20.0/newlib/libc/sys/sparc64/stat.S:6:36: error: macro "defsyscall_r"
> passed 3 arguments, but takes just 2
>

This is an ancient port (last code change in ChangeLog 1998) and I have 
no idea if it still works.  I would suggest try removing the REENT 
section of the stat.S code and trying it out.  The defsyscall_r macro 
indeed only should take 2 arguments.  You could also try removing the 
extraneous argument, but I have no idea what someone intended to do at 
the time and other than template.S, the other .S files aren't using it.

-- Jeff J.



More information about the Newlib mailing list