|
From: | David Come |
Subject: | Re: [certi-dev] trouble linking with libFedTime with gcc 5.2.1 |
Date: | Tue, 17 Nov 2015 08:54:35 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Le 17/11/2015 09:49, Arnaud Degroote a
écrit :
Add a target_link_libraries(libFedTime libRTI)?On 17/Nov - 06:17, Eric Noulard wrote:2015-11-16 18:43 GMT+01:00 Mattias Helsing <address@hidden>:Hi I'm having trouble linking even testapps that are part of CERTI. I'm building on ubuntu 15.10 using GCC 5.2.1. I suspect there is some circular dependency but haven't yet investigated further. I get the following:The circular ref issue is a known problem but it has been handled (not a definitive fix though) long time ago. Which version of CERTI are you trying to build?I got the same issue with CERTI-3.5.1 on a fresh ubuntu 15.10Could you try to change version of compiler, see recent thread about that issue here: http://lists.nongnu.org/archive/html/certi-devel/2015-10/msg00005.htmlIt works properly with clang. Changing the gcc version is always possible, but a boring solution. The issue only happens in the build of the TestFedTime, so I disabled the build of it locally. Moreover, the build with g++ success if I change the order of library in -rdynamic (-rdynamic libRTI.. libFedTime => -rdynamic libFedTime libRTI), but I do not find the way to force that using cmake. We need a real fix for this circular ref issue but I have not time to work on this for now.Scanning dependencies of target TestFedTime make[2]: Leaving directory '/home/helsing/local/src/CERTI/build-release' make[2]: Entering directory '/home/helsing/local/src/CERTI/build-release' [ 66%] Building CXX object libRTI/hla-1_3/CMakeFiles/TestFedTime.dir/TestFedTime.cc.o [ 66%] Linking CXX executable TestFedTime libFedTime.so.1.0.0: undefined reference to `typeinfo for RTI::Exception' collect2: error: ld returned 1 exit status libRTI/hla-1_3/CMakeFiles/TestFedTime.dir/build.make:100: recipe for target 'libRTI/hla-1_3/TestFedTime' failed make[2]: *** [libRTI/hla-1_3/TestFedTime] Error 1 make[2]: Leaving directory '/home/helsing/local/src/CERTI/build-release' CMakeFiles/Makefile2:776: recipe for target 'libRTI/hla-1_3/CMakeFiles/TestFedTime.dir/all' failed make[1]: *** [libRTI/hla-1_3/CMakeFiles/TestFedTime.dir/all] Error 2 make[1]: Leaving directory '/home/helsing/local/src/CERTI/build-release' Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 make: Leaving directory '/home/helsing/local/src/CERTI/build-release' address@hidden:~/local/src/CERTI$ make -C build-release/ edit_cache make: Entering directory '/home/helsing/local/src/CERTI/build-release' Running CMake cache editor... Is this something that you are aware about or even have a fix for? Should I try an experimental build to the Dashboard?Yes see: http://lists.nongnu.org/archive/html/certi-devel/2015-10/msg00005.html and reference therein: http://lists.nongnu.org/archive/html/certi-devel/2015-10/msg00009.html --CERTI-Devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/certi-devel-- Eric-- CERTI-Devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/certi-devel |
[Prev in Thread] | Current Thread | [Next in Thread] |