matinlotfali / KDE-Rounded-Corners

Rounds the corners of your windows in KDE Plasma 5 and 6
GNU General Public License v3.0
638 stars 22 forks source link

Build failing using mold #238

Closed OlegAckbar closed 5 months ago

OlegAckbar commented 5 months ago
-- The CXX compiler identification is Clang 17.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:73 (message):
  The C++ compiler

    "/usr/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/oleg/.cache/yay/kwin-effect-rounded-corners-git/src/build/CMakeFiles/CMakeScratch/TryCompile-pufeIa'

    Run Build Command(s): /usr/bin/ninja -v cmTC_cba46
    [1/2] /usr/bin/clang++   -march=native -O3 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -MD -MT CMakeFiles/cmTC_cba46.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_cba46.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_cba46.dir/testCXXCompiler.cxx.o -c /home/oleg/.cache/yay/kwin-effect-rounded-corners-git/src/build/CMakeFiles/CMakeScratch/TryCompile-pufeIa/testCXXCompiler.cxx
    [2/2] : && /usr/bin/clang++ -march=native -O3 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-fuse-ld=mold -flto=auto -fuse-ld=lld CMakeFiles/cmTC_cba46.dir/testCXXCompiler.cxx.o -o cmTC_cba46   && :
    FAILED: cmTC_cba46 
    : && /usr/bin/clang++ -march=native -O3 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-fuse-ld=mold -flto=auto -fuse-ld=lld CMakeFiles/cmTC_cba46.dir/testCXXCompiler.cxx.o -o cmTC_cba46   && :
    ld.lld: error: unknown argument '-fuse-ld=mold'
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)

-- Configuring incomplete, errors occurred!
matinlotfali commented 5 months ago

The error clearly says unknown argument '-fuse-ld=mold' which means mold linker is not properly installed or configured for your clang++. Anyhow, I don't think this belongs to the scope of this project.

xiota commented 5 months ago

Assuming the same user, problem was caused by settings that were incompatible with the AUR package. Package has been revised, and the error should no longer occur.

Feel free to @ me for any issue that appears to be related to the AUR package. (eg, .cache/yay in the error message)