Fix a problem with the libatomic testsuite using a method to determine the compiler to use resulting in the tool being different from one the library has been built with, and causing a catastrophic failure from the lack of a suitable `--sysroot=' option where the `--with-build-sysroot=' configuration option has been used to build the compiler resulting in the inability to link executables. Address this problem by providing a DejaGNU configuration file defining the compiler to use, via the GCC_UNDER_TEST TCL variable, set from $CC by autoconf, which will have all the required options set for the target compiler to build executables in the environment configured, removing failures like: .../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory .../bin/riscv64-linux-gnu-ld: cannot find -lm collect2: error: ld returned 1 exit status compiler exited with status 1 FAIL: libatomic.c/atomic-compare-exchange-1.c (test for excess errors) Excess errors: .../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory .../bin/riscv64-linux-gnu-ld: cannot find -lm UNRESOLVED: libatomic.c/atomic-compare-exchange-1.c compilation failed to produce executable and bringing overall test results for the `riscv64-linux-gnu' target (here with the `x86_64-linux-gnu' host and RISC-V QEMU in the Linux user emulation mode as the target board) from: === libatomic Summary === # of unexpected failures 27 # of unresolved testcases 27 to: === libatomic Summary === # of expected passes 54 libatomic/ * configure.ac: Add testsuite/libatomic-site-extra.exp to output files. * configure: Regenerate. * libatomic/testsuite/libatomic-site-extra.exp.in: New file. * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New variable. * testsuite/Makefile.in: Regenerate.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| config | Loading commit data... | |
| testsuite | Loading commit data... | |
| .gitignore | Loading commit data... | |
| ChangeLog | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| acinclude.m4 | Loading commit data... | |
| aclocal.m4 | Loading commit data... | |
| auto-config.h.in | Loading commit data... | |
| cas_n.c | Loading commit data... | |
| configure | Loading commit data... | |
| configure.ac | Loading commit data... | |
| configure.tgt | Loading commit data... | |
| exch_n.c | Loading commit data... | |
| fadd_n.c | Loading commit data... | |
| fand_n.c | Loading commit data... | |
| fence.c | Loading commit data... | |
| fenv.c | Loading commit data... | |
| fior_n.c | Loading commit data... | |
| flag.c | Loading commit data... | |
| fnand_n.c | Loading commit data... | |
| fop_n.c | Loading commit data... | |
| fsub_n.c | Loading commit data... | |
| fxor_n.c | Loading commit data... | |
| gcas.c | Loading commit data... | |
| gexch.c | Loading commit data... | |
| glfree.c | Loading commit data... | |
| gload.c | Loading commit data... | |
| gstore.c | Loading commit data... | |
| host-config.h | Loading commit data... | |
| init.c | Loading commit data... | |
| libatomic.map | Loading commit data... | |
| libatomic_i.h | Loading commit data... | |
| load_n.c | Loading commit data... | |
| store_n.c | Loading commit data... | |
| tas_n.c | Loading commit data... |