Testing glibc with non-default options
Mike Frysinger
vapier@gentoo.org
Tue Mar 1 06:47:00 GMT 2016
On 29 Feb 2016 16:21, Steve Ellcey wrote:
> I have a question about running the GCC testsuite when using non-default
> GCC options. I am running the glibc test natively on a MIPS machine
> and I want to build and test it with the 64 bit ABI (-mabi=64).
>
> I can use "export GCC='gcc -mabi=64'" or "CFLAGS='-mabi=64'" (I am not sure
> which method is prefered) and when I do either of those, the build works fine
> and most of the testing works fine but I keep hitting a problem when I get to
> the test-math-isinff.cc test. Note that this is a C++ test and not a C test
> and I think that is relevent.
>
> I looked in config.make and I see a setting for CC and CFLAGS but CXX is not
> set (even if I set and export it when building glibc) and CXXFLAGS does not
> show up at all. I think this may be why the C++ test fails but I am not sure
> how to fix it.
>
> Has anyone else seen this problem or have any idea on how to fix it?
i assume you meant `export CC=...` as $GCC is something else.
i would expect you also need to override CXX and/or CXXFLAGS if you want
the C++ tests to pass. CFLAGS should not be used when building C++ code.
passing the ABI flags via CFLAGS should work. the mips configure scripts
will use the full compile line to detect which -mabi to use, and then the
mips Makefiles will explicitly add the flag to CC if it isn't there.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160301/63023508/attachment.sig>
More information about the Libc-alpha
mailing list