Hi Andreas, > -----Original Message----- > From: Andreas Schwab <[email protected]> > Sent: Wednesday, November 5, 2025 8:35 AM > To: Guillaume Gardet <[email protected]> > Cc: Fabian Vogt <[email protected]>; [email protected] > Subject: Re: GCS (Guarded Control Stack) enablement > > On Nov 04 2025, Guillaume Gardet wrote: > > > As a workaround, we added " -Wl,-z,gcs-report-dynamic=none" to Optflags in > OBS to silent the GCS errors. > > That breaks the build of the llvm packages, probably due to the extra clang > warning breaking a lot of cmake tests: > > [10122s] clang++: warning: -Wl,-z,gcs-report-dynamic=none: 'linker' input > unused > [-Wunused-command-line-argument]
It looks like the problem may be elsewhere. >From llvm21: [10109s] /tmp/lto-llvm-28e954.o: in function `bool llvm::ErrorInfoBase::isA<llvm::ErrorList>() const': [10109s] /home/abuild/rpmbuild/BUILD/llvm21-21.1.4-build/llvm-21.1.4.src/include/llvm/Support/Error.h:79:(.text._ZN4llvm8coverage23CoverageMappingIterator9incrementEv+0x98): dangerous relocation: unsupported relocation [10109s] /usr/lib64/gcc/aarch64-suse-linux/15/../../../../aarch64-suse-linux/bin/ld: /tmp/lto-llvm-28e954.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZN4llvm8coverage16CoverageMapError2IDE' which may bind externally can not be used when making a shared object; recompile with -fPIC [10109s] /tmp/lto-llvm-28e954.o: in function `llvm::Error llvm::handleErrors<llvm::coverage::CoverageMappingIterator::increment()::$_0>(llvm::Error, llvm::coverage::CoverageMappingIterator::increment()::$_0&&)': [10109s] /home/abuild/rpmbuild/BUILD/llvm21-21.1.4-build/llvm-21.1.4.src/include/llvm/Support/Error.h:(.text._ZN4llvm8coverage23CoverageMappingIterator9incrementEv+0xc8): dangerous relocation: unsupported relocation [10109s] /usr/lib64/gcc/aarch64-suse-linux/15/../../../../aarch64-suse-linux/bin/ld: /tmp/lto-llvm-28e954.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZN4llvm8coverage16CoverageMapError2IDEclang++: error: unable to execute command: Killed [10109s] clang++: error: linker command failed due to signal (use -v to see invocation) Cheers, Guillaume > > > We will remove this workaround once enough packages are fixed. > > Hopefully we won't need that for long. > > -- > Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 > 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely > different."
