[Build Issue] - x265 fails at linking step

Issue #466 new
Weghweh Hwewehwhe created an issue

I used this URL:

https://bitbucket.org/multicoreware/x265/downloads/x265_3.0.tar.gz

I was building with cmake and all goes well until this step:

Scanning dependencies of target x265-static [ 86%] Linking CXX static library libx265.a [ 86%] Built target x265-static Scanning dependencies of target x265-shared [ 87%] Linking CXX shared library libx265.so [ 87%] Built target x265-shared Scanning dependencies of target cli [ 89%] Building CXX object CMakeFiles/cli.dir/input/input.cpp.o [ 90%] Building CXX object CMakeFiles/cli.dir/input/y4m.cpp.o [ 91%] Building CXX object CMakeFiles/cli.dir/input/yuv.cpp.o [ 92%] Building CXX object CMakeFiles/cli.dir/output/output.cpp.o [ 93%] Building CXX object CMakeFiles/cli.dir/output/raw.cpp.o [ 95%] Building CXX object CMakeFiles/cli.dir/output/reconplay.cpp.o [ 96%] Building CXX object CMakeFiles/cli.dir/output/y4m.cpp.o [ 97%] Building CXX object CMakeFiles/cli.dir/output/yuv.cpp.o [ 98%] Building CXX object CMakeFiles/cli.dir/x265.cpp.o [100%] Linking CXX executable x265 /System/Index/bin/ld: libx265.so.169: undefined reference to `_ZGVbN2v___log_finite' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/cli.dir/build.make:205: x265] Error 1 make[1]: [CMakeFiles/Makefile2:213: CMakeFiles/cli.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

The error is `_ZGVbN2v___log_finite'; not sure what it is. I tried to google a bit, may be some error related to libm.so or something like that, but ideally I think this should not happen. Perhaps one could check for the problem prior?

Last but not least, I will show my host system - perhaps this can help you guys:

Operating System: GNU/Linux Os Bit Type: x86_64 CPU Model: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G, 2 cores CFLAGS in use: -O2 -fPIC -fno-strict-overflow -Wno-error RAM: 15313688 kB RAM (14954.8 MB) (14.6 Gig) Gcc Version: 8.2.0 Glibc Version: 2.23 Linux Kernel: 4.4.14 Binutils Version: 2.31.51.20190117 # git checkout from that day Cmake version: 3.13.3

Other versions e. g. nasm, flex etc... all from latest source; in fact the only two things old on my system are the linux kernel and my glibc, but I believe this is not the issue of this failed compilation here.

I think I was able to compile the x265 2.9 release, so perhaps something has changed between releases.

Comments (1)

  1. Pradeep Ramachandran Account Deactivated

    This is strange; we haven't touched that portion between v2.9 and v3.0. Can you please make clean and rebuild? And does the build with ENABLE_ASSEMBLY set to OFF in CMake work?

  2. Log in to comment