Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to ceilf in build on Linux x86_64 #445

Closed
attilarepka opened this issue Dec 29, 2024 · 0 comments · Fixed by #446
Closed

Undefined reference to ceilf in build on Linux x86_64 #445

attilarepka opened this issue Dec 29, 2024 · 0 comments · Fixed by #446

Comments

@attilarepka
Copy link
Contributor

attilarepka commented Dec 29, 2024

I did git bisect and it shows build fails from this commit.

CMake command:
cmake -G"Unix Makefiles" -S . -B build && cd build && make -j$(nproc)

CMake logs:

[ 90%] Building C object CMakeFiles/turbojpeg-static.dir/jdatadst-tj.c.o
/usr/bin/ld: libjpeg.a(jcdctmgr.c.o): in function `preprocess_deringing':
jcdctmgr.c:(.text+0x2be0): undefined reference to `ceilf'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/example-static.dir/build.make:98: example-static] Error 1
make[1]: *** [CMakeFiles/Makefile2:857: CMakeFiles/example-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 90%] Building C object CMakeFiles/turbojpeg-static.dir/jdatasrc-tj.c.o
[ 90%] Linking C executable djpeg-static
[ 90%] Building C object CMakeFiles/turbojpeg-static.dir/rdbmp.c.o
[ 91%] Building C object CMakeFiles/turbojpeg-static.dir/rdppm.c.o
[ 91%] Built target djpeg-static
[ 91%] Building C object CMakeFiles/turbojpeg-static.dir/wrbmp.c.o
[ 91%] Building C object CMakeFiles/turbojpeg-static.dir/wrppm.c.o
[ 91%] Linking C shared library libturbojpeg.so
[ 91%] Built target turbojpeg
[ 92%] Linking C executable jpegtran-static
[ 92%] Built target jpegtran-static
[ 92%] Linking C static library libturbojpeg.a
[ 92%] Built target turbojpeg-static
[ 92%] Linking C shared library ../libjpeg.so
[ 92%] Built target jpeg
make: *** [Makefile:146: all] Error 2
@attilarepka attilarepka changed the title Build fails on latest master branch on Linux x86_64 Undefined reference to ceilf in build on Linux x86_64 Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant