This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: PowerPC failures
David Gilbert <david.gilbert@linaro.org> writes:
> It seems to be a 32 v 64 issue. It's got a 64bit kernel but by default
> gcc is producing 32bit
> binaries, the __powerpc64__ flag is only set if -m64 is passed.
> However, config.guess is saying
> it's a powerpc64-unknown-linux-gnu - and hence that's the directory
> that was created.
I just built and tested on powerpc64-unknown-linux-gnu with both -m32
and -m64 and both worked fine (and I made sure that it was actually
generating 32- and 64-bit binaries respectively). Something funky is
definitely going on here. I'll look into it more tomorrow.
> There is the opposite problem that if you pass CFLAGS=-m64 and/or run
> with linux64 the make check fails because it doesn't build the tests
> 64bit:
I used "CC='gcc -m64'" and it worked. I'll look into the CFLAGS issue
as well.
Thanks David.
AG