-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Description
OS: ArchLinux
gcc: 12.1.1
python: 3.10.5
cmake -B build -S zfp-1.0.0 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DBUILD_CFP=ON \
-DBUILD_ZFPY=ON \
-DBUILD_ZFORP=ON
make -C build
error log:
/usr/bin/ld: /tmp/ccK8Frb4.ltrans0.ltrans.o: in function `main':
<artificial>:(.text.startup+0x17fe): undefined reference to `sqrt'
/usr/bin/ld: <artificial>:(.text.startup+0x1838): undefined reference to `log10'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/CMakeFiles/zfpcmd.dir/build.make:98: bin/zfp] Error 1
make[2]: Leaving directory '/build/zfp/src/build'
make[1]: *** [CMakeFiles/Makefile2:1048: utils/CMakeFiles/zfpcmd.dir/all] Error 2
make[1]: Leaving directory '/build/zfp/src/build'
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/build/zfp/src/build'
check the complete build log.fail.txt.
check the PKGBUILD I used to build zfp. I only update the pkgver
to 1.0.0
, and the sha256sums
.
I could build it with -DCMAKE_C_FLAGS="-lm"
. It seems we forget to add target_link_libraries(libname PRIVATE m)
somewhere.
alexmyczko
Metadata
Metadata
Assignees
Labels
No labels