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

configure:5273: checking version of installed readline library
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
conftest.c:55:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
main()
^
conftest.c:60:3: warning: implicitly declaring library function 'exit' with
type 'void (int) __attribute__((noreturn))'
[-Wimplicit-function-declaration]
                exit(1);
                ^
conftest.c:60:3: note: include the header <stdlib.h> or explicitly provide
a declaration for 'exit'
2 warnings generated.
ld: error:
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/9.2.1/../../../../lib64/crt1.o
is incompatible with elf_x86_64
ld: error:
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/9.2.1/../../../../lib64/crti.o
is incompatible with elf_x86_64
ld: error: /usr/lib64/clang/9.0.0/lib/linux/clang_rt.crtbegin-x86_64.o is
incompatible with elf_x86_64
ld: error: /tmp/conftest-a37ad6.o is incompatible with elf_x86_64
ld: error:
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/9.2.1/../../../../lib64/libreadline.so
is incompatible with elf_x86_64
ld: error:
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/9.2.1/../../../../lib64/libcurses.so
is incompatible with elf_x86_64
ld: error: /usr/lib64/clang/9.0.0/lib/linux/clang_rt.crtend-x86_64.o is
incompatible with elf_x86_64
ld: error:
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/9.2.1/../../../../lib64/crtn.o
is incompatible with elf_x86_64
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
configure:5327: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "bash"
| #define PACKAGE_TARNAME "bash"
| #define PACKAGE_VERSION "5.0-release"
| #define PACKAGE_STRING "bash 5.0-release"
| #define PACKAGE_BUGREPORT "bug-b...@gnu.org"
| #define PACKAGE_URL ""
| #define ALIAS 1
| #define PUSHD_AND_POPD 1
| #define RESTRICTED_SHELL 1
| #define PROCESS_SUBSTITUTION 1
| #define PROMPT_STRING_DECODE 1
| #define SELECT_COMMAND 1
--
| #define FUNCTION_IMPORT 1
| #define MEMSCRAMBLE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h.  */
|
| #include <stdio.h>
| #include <readline/readline.h>
|
| extern int rl_gnu_readline_p;
|
| main()
| {
|       FILE *fp;
|       fp = fopen("conftest.rlv", "w");
|       if (fp == 0)
|               exit(1);
|       if (rl_gnu_readline_p != 1)
|               fprintf(fp, "0.0\n");
|       else
|               fprintf(fp, "%s\n", rl_library_version ? rl_library_version
: "0.0");
|       fclose(fp);
|       exit(0);
| }
|
configure:5373: WARNING: Could not test version of installed readline
library.
configure:5418: WARNING: installed readline library is too old to be linked
with bash
configure:5420: WARNING: using private bash version

Reply via email to