Re: undefined symbol `__libc_stack_end' in F36/Rawhide

2022-03-11 Thread Kevin Fenzi
On Fri, Mar 11, 2022 at 11:21:09AM +, Sérgio Basto wrote: > Hello, > > On Thu, 2022-03-10 at 09:36 +0100, Florian Weimer wrote: > > * Ron Olson: > > > > > Building swiftlang on F36/Rawhide results in a a failure that, > > > boiled down to its essence, appears to be: > > > > > > /usr/bin/ld:

Re: undefined symbol `__libc_stack_end' in F36/Rawhide

2022-03-11 Thread Ron Olson
I tried building on Rawhide for aarch64 and had a similar, but different error: /usr/bin/ld: /tmp/lto-llvm-759ff6.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `signgam@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC /usr/bin/

Re: undefined symbol `__libc_stack_end' in F36/Rawhide

2022-03-11 Thread Sérgio Basto
Hello, On Thu, 2022-03-10 at 09:36 +0100, Florian Weimer wrote: > * Ron Olson: > > > Building swiftlang on F36/Rawhide results in a a failure that, > > boiled down to its essence, appears to be: > > > > /usr/bin/ld: /tmp/lto-llvm-4fd0b1.o: relocation R_X86_64_PC32 > > against undefined symbol `_

Re: undefined symbol `__libc_stack_end' in F36/Rawhide

2022-03-10 Thread Florian Weimer
* Ron Olson: > Building swiftlang on F36/Rawhide results in a a failure that, boiled down to > its essence, appears to be: > > /usr/bin/ld: /tmp/lto-llvm-4fd0b1.o: relocation R_X86_64_PC32 against > undefined symbol `__libc_stack_end' can not be used when making a shared > object; recompile wit

Re: undefined symbol `__libc_stack_end' in F36/Rawhide

2022-03-09 Thread Ron Olson
Realizing I probably didn’t include some important information, but -fPIC is in fact being included in the compiler flags. For completeness, this is the command that is failing: /home/rolson/rpmbuild/BUILD/swift-source/build/buildbot_linux/llvm-linux-x86_64/./bin/clang++ -fPIC -O2 -flto=auto -f