This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Running the C++ library tests in the GCC testsuite
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Steve Ellcey <sellcey at cavium dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 7 Nov 2018 17:39:49 +0000
- Subject: Re: Running the C++ library tests in the GCC testsuite
- References: <201811071732.wA7HWIKr028421@sellcey-dt.caveonetworks.com>
On Wed, 7 Nov 2018, Steve Ellcey wrote:
> I have a question about the C++ library testsuite. I built and installed
> a complete toolchain with GCC, binutils, and glibc in a directory ($T) and
> then I run the GCC testsuite with this command:
>
> # cd to GCC object directory
> make -j50 check RUNTESTFLAGS="--tool_opts '--sysroot=$T -Wl,--dynamic-linker=$T/lib/ld-linux-aarch64.so.1 -Wl,-rpath=$T/lib64 -Wl,-rpath=$T/usr/lib64'"
I advise instead putting those options in your board file.
set_board_info ldflags "-Wl,whatever"
Note that you also need to make your board file set LOCPATH and GCONV_PATH
appropriately (pointing the $sysroot/usr/lib/locale and
$sysroot/usr/lib64/gconv respectively) for libstdc++ locale tests to work
correctly with such a non-default glibc. That would be code in your
<target>_load procedure in the board file (or in such a procedure in a
file it loads via load_generic_config, etc.).
--
Joseph S. Myers
joseph@codesourcery.com