Skip to content

Native image: testGCCArgument produces confusing warnings #48946

@Karm

Description

@Karm

Describe the bug

Hello, cd31511 has started to fail our Mandrel TS that vigorously parses logs for non-whitelisted warnings:

[WARNING] [io.smallrye.common.process] SRCOM05000: Command cc (pid 2320551) completed but logged errors:
	Using built-in specs.
	COLLECT_GCC=cc
	OFFLOAD_TARGET_NAMES=nvptx-none
	OFFLOAD_TARGET_DEFAULT=1
	Target: x86_64-redhat-linux
	… (skipped 12 line(s)) …
	 /usr/include
	End of search list.
	COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/
	LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/
	COLLECT_GCC_OPTIONS='-v' '-E' '-no-pie' '-mtune=generic' '-march=x86-64-v2'

It needs to be refactored. The SmallRye thing interprets output to stdErr as something wrong.

FYI: @dmlloyd

Expected behavior

No warnings.

Actual behavior

Warnings.

How to Reproduce?

curl -O -J "https://code.quarkus.io/d?e=rest&cn=code.quarkus.io"
unzip code-with-quarkus.zip
cd  code-with-quarkus/
export JAVA_HOME=/home/karm/X/JDKs/graalvm-community-openjdk-26+5.1;export GRAALVM_HOME=${JAVA_HOME};export PATH=${JAVA_HOME}/bin:${PATH}
./mvnw package -Dnative -Dquarkus.platform.group-id=io.quarkus -Dquarkus.platform.version=999-SNAPSHOT

Output of uname -a or ver

Linux laptop 5.14.0-592.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 6 09:58:38 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

GraalVM CE 26-dev+5.1 (build 26+5-jvmci-b01)

Mandrel or GraalVM version (if different from Java)

GraalVM CE 26-dev+5.1 (build 26+5-jvmci-b01)

Quarkus version or git rev

0e3d9c9

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions