Hi Tobias! I've not verified, but I very much suspect that this change:
On 2024-09-13T16:24:47+0200, Tobias Burnus <tbur...@baylibre.com> wrote: > commit 508ef585243d4674d06b0737bfe8769fc18f824f > Author: Tobias Burnus <tbur...@baylibre.com> > Date: Fri Sep 13 16:18:46 2024 +0200 > > gcn/mkoffload.cc: Use #embed for including the generated ELF file ... is responsible for: [-PASS:-]{+FAIL:+} libgomp.c/simd-math-1.c (test for excess errors) [-PASS:-]{+UNRESOLVED:+} libgomp.c/simd-math-1.c [-execution test-]{+compilation failed to produce executable+} /tmp/ccHVeRbm.c: In function 'configure_stack_size': /tmp/ccHVeRbm.c:80:21: error: implicit declaration of function 'getenv' [-Wimplicit-function-declaration] 80 | const char *val = getenv ("GCN_STACK_SIZE"); | ^~~~~~ /tmp/ccHVeRbm.c:1:1: note: 'getenv' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>' +++ |+#include <stdlib.h> 1 | static const int gcn_num_vars = 0; [...] /tmp/ccHVeRbm.c:82:5: error: implicit declaration of function 'setenv' [-Wimplicit-function-declaration] 82 | setenv ("GCN_STACK_SIZE", "3000000", true); | ^~~~~~ /tmp/ccHVeRbm.c:82:42: error: 'true' undeclared (first use in this function) 82 | setenv ("GCN_STACK_SIZE", "3000000", true); | ^~~~ /tmp/ccHVeRbm.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>' +++ |+#include <stdbool.h> 1 | static const int gcn_num_vars = 0; /tmp/ccHVeRbm.c:82:42: note: each undeclared identifier is reported only once for each function it appears in 82 | setenv ("GCN_STACK_SIZE", "3000000", true); | ^~~~ gcn mkoffload: fatal error: [...]/build-gcc/gcc/xgcc returned 1 exit status compilation terminated. lto-wrapper: fatal error: [...]/install/offload-amdgcn-amdhsa/libexec/gcc/x86_64-pc-linux-gnu/15.0.0//accel/amdgcn-amdhsa/mkoffload returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status compiler exited with status 1 FAIL: libgomp.c/simd-math-1.c (test for excess errors) ..., due to: > --- a/gcc/config/gcn/mkoffload.cc > +++ b/gcc/config/gcn/mkoffload.cc > @@ -651,10 +613,6 @@ process_asm (FILE *in, FILE *out, FILE *cfile) > - fprintf (cfile, "#include <stdlib.h>\n"); > - fprintf (cfile, "#include <stdint.h>\n"); > - fprintf (cfile, "#include <stdbool.h>\n\n"); Did you not see that happen in your testing? Grüße Thomas