GerBra Welchen Sourcecode (woher) versuchst du da (wie? makepkg?) zu bauen?
ich benutze das offizielle PKGBUILD
möglich, aber /usr/bin/cc
ist vorhanden, und teil von gcc
mit clang
mags auch nicht 🙁
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/tmp/makepkg/upx/src/upx/build/release/CMakeFiles/CMakeScratch/TryCompile-ubfbkA'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_0b0f2/fast
make[1]: Verzeichnis „/tmp/makepkg/upx/src/upx/build/release/CMakeFiles/CMakeScratch/TryCompile-ubfbkA“ wird betreten
/usr/bin/make -f CMakeFiles/cmTC_0b0f2.dir/build.make CMakeFiles/cmTC_0b0f2.dir/build
make[2]: Verzeichnis „/tmp/makepkg/upx/src/upx/build/release/CMakeFiles/CMakeScratch/TryCompile-ubfbkA“ wird betreten
Building C object CMakeFiles/cmTC_0b0f2.dir/testCCompiler.c.o
/usr/bin/clang -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/tmp/makepkg/upx/src=/usr/src/debug/upx -flto=auto -MD -MT CMakeFiles/cmTC_0b0f2.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_0b0f2.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_0b0f2.dir/testCCompiler.c.o -c /tmp/makepkg/upx/src/upx/build/release/CMakeFiles/CMakeScratch/TryCompile-ubfbkA/testCCompiler.c
Linking C executable cmTC_0b0f2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0b0f2.dir/link.txt --verbose=1
/usr/bin/ld: cannot find /usr/lib/libc_nonshared.a: Die Struktur muss bereinigt werden
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/bin/clang -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/tmp/makepkg/upx/src=/usr/src/debug/upx -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto CMakeFiles/cmTC_0b0f2.dir/testCCompiler.c.o -o cmTC_0b0f2
make[2]: *** [CMakeFiles/cmTC_0b0f2.dir/build.make:103: cmTC_0b0f2] Fehler 1
make[2]: Verzeichnis „/tmp/makepkg/upx/src/upx/build/release/CMakeFiles/CMakeScratch/TryCompile-ubfbkA“ wird verlassen
make[1]: *** [Makefile:133: cmTC_0b0f2/fast] Fehler 2
make[1]: Verzeichnis „/tmp/makepkg/upx/src/upx/build/release/CMakeFiles/CMakeScratch/TryCompile-ubfbkA“ wird verlassen
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:137 (project)
-- Configuring incomplete, errors occurred!
Martin-MS Wozu muss ess überhaupt neu gebaut werden
wenn was beim paket bauen was nicht funktioniert, dann test ich mit upx, ob der fehler im PKGBUILD, oder generell was nicht passt
edit
tom@frija ~/compile/upx # stat /usr/lib/libc_nonshared.a
stat: der Aufruf von statx für '/usr/lib/libc_nonshared.a' ist fehlgeschlagen: Die Struktur muss bereinigt werden
tom@frija ~/compile/upx # file /usr/lib/libc_nonshared.a
/usr/lib/libc_nonshared.a: cannot open `/usr/lib/libc_nonshared.a' (Structure needs cleaning)
tom@frija ~/compile/upx # pacman -Qkk glibc
Sicherungs-Datei: glibc: /etc/locale.gen (Änderungszeitpunkte stimmen nicht überein)
Sicherungs-Datei: glibc: /etc/locale.gen (Größen stimmen nicht überein)
Sicherungs-Datei: glibc: /etc/locale.gen (SHA256-Prüfsummen stimmen nicht überein)
Warnung: glibc: /usr/include/fnmatch.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/include/pthread.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/include/termios.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/include/bits/waitstatus.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/include/bits/types/struct_sigstack.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/include/sys/epoll.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/include/sys/syscall.h (Die Struktur muss bereinigt werden)
Warnung: glibc: /usr/lib/libc_nonshared.a (Die Struktur muss bereinigt werden)
glibc: 1614 Dateien gesamt, 8 veränderte Dateien