On 11/9/26 2:53 AM, Thomas Schwinge wrote:
When, for example, running 'check-target-libgomp' with
'RUNTESTFLAGS="--target_board=unix/-static"', the test results are full of
'FAIL: [...] (test for excess errors)' due to:
ld: [...]/x86_64-pc-linux-gnu/./libgomp/.libs/libgomp.a(allocator.o): in
function `gomp_init_memkind':
[...]/source-gcc/libgomp/config/linux/../../allocator.c:357:(.text+0x18):
warning: Using 'dlopen' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
..., or:
ld: [...]/x86_64-pc-linux-gnu/./libgomp/.libs/libgomp.a(target.o): in
function `gomp_load_plugin_for_device':
[...]/source-gcc/libgomp/target.c:6624:(.text+0xb5d): warning: Using
'dlopen' in statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
Prune these.
gcc/testsuite/
* lib/prune.exp (prune_gcc_output): Ignore 'ld' diagnostics for
glibc plus '-static' plus 'dlopen'.
OK
Jeff