Build issue: FTBFS #4

Closed
opened 1 year ago by Francois · 5 comments
Collaborator

Basic information

  • TDE version: R14.1.0
  • Distribution: Linux Mageia 8
  • Hardware: amd64

Description

Build fails during link. See Screenshots section below.
Full log file is attached.

Steps to reproduce

cmake
make

Screenshots

[ 10%] Linking CXX executable bibletime
cd "/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16/build/bibletime" && /usr/bin/cmake -E cmake_link_script CMakeFiles/bibletime.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/c++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fdebug-prefix-map=/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16=. -fmacro-prefix-map=/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16=.  -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/tqt3 -I/usr/include/tqt -include tqt.h -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -DNDEBUG -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -rdynamic CMakeFiles/bibletime.dir/bibletime_init.cpp.o CMakeFiles/bibletime.dir/bibletime_slots.cpp.o CMakeFiles/bibletime.dir/bibletime.cpp.o CMakeFiles/bibletime.dir/bibletimeapp.cpp.o CMakeFiles/bibletime.dir/main.cpp.o CMakeFiles/bibletime.dir/bibletime_dcop.cpp.o CMakeFiles/bibletime.dir/bibletimeinterface_skel.cpp.o -o bibletime  -Wl,-rpath,/opt/trinity/lib64 -lbackend-static -ldisplay-static -ldisplaywindow-static -lfrontend-static -lfrontendutil-static -lkeychooser-static -lmainindex-static -lsearchdialog-static -lutil-static /opt/trinity/lib64/libtdehtml.so.14.0.0 -lsword -lclucene-core -lclucene-shared /opt/trinity/lib64/libtdeutils.so.1.2.0 /opt/trinity/lib64/libtdeparts.so.2.1.0 /opt/trinity/lib64/libtdeprint.so.14.0.0 /opt/trinity/lib64/libtdeio.so.14.0.0 /opt/trinity/lib64/libtdeui.so.14.0.0 /opt/trinity/lib64/libtdewalletclient.so.1.0.1 /opt/trinity/lib64/libtdecore.so.14.1.0 /opt/trinity/lib64/libDCOP.so.14.0.0 /opt/trinity/lib64/libtdefx.so.14.0.0 -ltqt -ltqt-mt -lXrender -lX11 -lc -lICE -lSM -lz 
/usr/bin/ld: cannot find -lbackend-static
/usr/bin/ld: cannot find -ldisplay-static
/usr/bin/ld: cannot find -ldisplaywindow-static
/usr/bin/ld: cannot find -lfrontend-static
/usr/bin/ld: cannot find -lfrontendutil-static
/usr/bin/ld: cannot find -lkeychooser-static
/usr/bin/ld: cannot find -lmainindex-static
/usr/bin/ld: cannot find -lsearchdialog-static
/usr/bin/ld: cannot find -lutil-static
collect2: error: ld returned 1 exit status
make[2]: *** [bibletime/CMakeFiles/bibletime.dir/build.make:221: bibletime/bibletime] Error 1
make[2]: Leaving directory '/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16/build'
make[1]: *** [CMakeFiles/Makefile2:754: bibletime/CMakeFiles/bibletime.dir/all] Error 2
make[1]: Leaving directory '/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16/build'
make: *** [Makefile:152: all] Error 2
<!-- This is a comment. Please fill in the required fields below. The comments provide instructions on how to do so. Note: You do not need to remove comments. --> ## Basic information - TDE version: R14.1.0 - Distribution: Linux Mageia 8 - Hardware: amd64 <!-- Use SL/* labels to set the severity level. Please do not set a milestone. --> ## Description Build fails during link. See Screenshots section below. Full log file is attached. ## Steps to reproduce cmake make ## Screenshots ``` [ 10%] Linking CXX executable bibletime cd "/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16/build/bibletime" && /usr/bin/cmake -E cmake_link_script CMakeFiles/bibletime.dir/link.txt --verbose=1 /usr/lib64/ccache/bin/c++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fdebug-prefix-map=/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16=. -fmacro-prefix-map=/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16=. -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -I/usr/include/tqt3 -I/usr/include/tqt -include tqt.h -DTQT_NO_ASCII_CAST -DTQT_NO_STL -DTQT_NO_COMPAT -DTQT_NO_TRANSLATION -DTQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -DNDEBUG -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -rdynamic CMakeFiles/bibletime.dir/bibletime_init.cpp.o CMakeFiles/bibletime.dir/bibletime_slots.cpp.o CMakeFiles/bibletime.dir/bibletime.cpp.o CMakeFiles/bibletime.dir/bibletimeapp.cpp.o CMakeFiles/bibletime.dir/main.cpp.o CMakeFiles/bibletime.dir/bibletime_dcop.cpp.o CMakeFiles/bibletime.dir/bibletimeinterface_skel.cpp.o -o bibletime -Wl,-rpath,/opt/trinity/lib64 -lbackend-static -ldisplay-static -ldisplaywindow-static -lfrontend-static -lfrontendutil-static -lkeychooser-static -lmainindex-static -lsearchdialog-static -lutil-static /opt/trinity/lib64/libtdehtml.so.14.0.0 -lsword -lclucene-core -lclucene-shared /opt/trinity/lib64/libtdeutils.so.1.2.0 /opt/trinity/lib64/libtdeparts.so.2.1.0 /opt/trinity/lib64/libtdeprint.so.14.0.0 /opt/trinity/lib64/libtdeio.so.14.0.0 /opt/trinity/lib64/libtdeui.so.14.0.0 /opt/trinity/lib64/libtdewalletclient.so.1.0.1 /opt/trinity/lib64/libtdecore.so.14.1.0 /opt/trinity/lib64/libDCOP.so.14.0.0 /opt/trinity/lib64/libtdefx.so.14.0.0 -ltqt -ltqt-mt -lXrender -lX11 -lc -lICE -lSM -lz /usr/bin/ld: cannot find -lbackend-static /usr/bin/ld: cannot find -ldisplay-static /usr/bin/ld: cannot find -ldisplaywindow-static /usr/bin/ld: cannot find -lfrontend-static /usr/bin/ld: cannot find -lfrontendutil-static /usr/bin/ld: cannot find -lkeychooser-static /usr/bin/ld: cannot find -lmainindex-static /usr/bin/ld: cannot find -lsearchdialog-static /usr/bin/ld: cannot find -lutil-static collect2: error: ld returned 1 exit status make[2]: *** [bibletime/CMakeFiles/bibletime.dir/build.make:221: bibletime/bibletime] Error 1 make[2]: Leaving directory '/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16/build' make[1]: *** [CMakeFiles/Makefile2:754: bibletime/CMakeFiles/bibletime.dir/all] Error 2 make[1]: Leaving directory '/tmp/BUILD.mga8.x86_64/trinity-bibletime-14.1.0~pre131+9b89bb16/build' make: *** [Makefile:152: all] Error 2 ```
Francois added the SL/critical label 1 year ago
SlavekB commented 1 year ago
Owner

I'm surprised from your build log. All of the missing -l...-static are to be defined as CMake targets, so there should be nothing like -lbackend-static. In your build log, I see the build of the backend-shared, although no tde_add_library(backend SHARED ...), but tde_add_library(backend STATIC-PIC...) is defined in CMake rules. There it seems that something fundamentally interferes with the CMake rules that shared libraries are built instead of auxiliary static libraries. It makes no sense.

I'm surprised from your build log. All of the missing `-l...-static` are to be defined as CMake targets, so there should be nothing like `-lbackend-static`. In your build log, I see the build of the `backend-shared`, although no `tde_add_library(backend SHARED ...)`, but `tde_add_library(backend STATIC-PIC...)` is defined in CMake rules. There it seems that something fundamentally interferes with the CMake rules that shared libraries are built instead of auxiliary static libraries. It makes no sense.
Poster
Collaborator

Thanks for looking into it.
It looks like it should be spelled "STATIC_PIC" (with underscore) and not "STATIC-PIC". I try to patch and rebuild.
But how can this work on your side ?

Thanks for looking into it. It looks like it should be spelled "STATIC_PIC" (with underscore) and not "STATIC-PIC". I try to patch and rebuild. But how can this work on your side ?
Poster
Collaborator

Using STATIC_PIC fixed the issue.
The PR is done.

Using STATIC_PIC fixed the issue. The PR is done.
Francois referenced this issue from a commit 1 year ago
SlavekB commented 1 year ago
Owner

Great, good observation. I will do a build test on Debian, but I do not expect any complications. It is great that it has been analyzed and solved so quickly.

Great, good observation. I will do a build test on Debian, but I do not expect any complications. It is great that it has been analyzed and solved so quickly.
SlavekB added a new dependency 1 year ago
SlavekB commented 1 year ago
Owner

I did a quick test on Debian Buster – as expected, everything was fine. PR merged, Issue can be closed.

I did a quick test on Debian Buster – as expected, everything was fine. PR merged, Issue can be closed.
SlavekB closed this issue 1 year ago
SlavekB added this to the R14.1.0 release milestone 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Depends on
Reference: TDE/bibletime#4
Loading…
There is no content yet.