Open
Description
hello everyone,
I tried to compile flang-21 on an x86_64 linux system, with musl instead of glibc, and got this error:
186443-FAILED: lib/Evaluate/CMakeFiles/FortranEvaluate.dir/intrinsics-library.cpp.o
186530-/usr/lib/llvm/21/bin/x86_64-pc-linux-musl-clang++ -DHAS_QUADMATHLIB -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang_build/lib/Evaluate -I/var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang/lib/Evaluate -I/var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang/include -I/var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang_build/include -isystem /usr/lib/llvm/21/include -DNDEBUG -O2 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion -Wcovered-switch-default -Wno-nested-anon-types -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT lib/Evaluate/CMakeFiles/FortranEvaluate.dir/intrinsics-library.cpp.o -MF lib/Evaluate/CMakeFiles/FortranEvaluate.dir/intrinsics-library.cpp.o.d -o lib/Evaluate/CMakeFiles/FortranEvaluate.dir/intrinsics-library.cpp.o -c /var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang/lib/Evaluate/intrinsics-library.cpp
188145:/var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang/lib/Evaluate/intrinsics-library.cpp:225:26: error: address of overloaded function 'acos' does not match required type '__float128 (__float128)'
188381- 225 | FolderFactory<F, F{std::acos}>::Create("acos"),
188458- | ^~~~~~~~~
--
192906- 2208 | acos(const std::complex<_Tp>& __z)
192968- | ^
192991:/var/tmp/portage/llvm-core/flang-21.0.0_pre20250607/work/flang/lib/Evaluate/intrinsics-library.cpp:225:26: error: address of overloaded function 'acos' does not match required type '_Complex __float128 (_Complex __float128)'
193249- 225 | FolderFactory<F, F{std::acos}>::Create("acos"),
193326- | ^~~~~~~~~
I'm using the main branch, the commit I've checked out is 23d0c73