On Wednesday, October 09, 2019 14:57 CEST, Tomasz Gajc <[email protected]> wrote:

> Bash build fails https://abf.openmandriva.org/build_lists/613164 due to lld

lld tends to expose bugs that have been around unnoticed for decades.

Note the -L/usr/lib in the compiler invocation:

> configure:5327: /usr/bin/clang -o conftest -Os -fomit-frame-pointer
> -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
> -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4
>  -m64 -mtune=generic -flto -Oz --rtlib=compiler-rt -I/usr/include  -Os
> -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat
> -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong
> --param=ssp-buffer-size=4  -m64 -mtune=generic -flto -Oz
> --rtlib=compiler-rt -Wl,-O2  -Wl,--no-undefined -flto  -L/usr/lib
> conftest.c  -lreadline -lcurses >&5

lld freaks out because that makes it see the 32-bit version of crt*.o files.

FWIW -I/usr/include [also there...] is also a really stupid thing to put into 
compiler flags, but so far nothing is barfing because of that. Worth fixing at 
the same time...

ttyl
bero

--
Cooker mailing-list
https://www.openmandriva.org/lists


Reply via email to