Lubuntu 15.10 Build Error

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
ltbridge
Posts: 4
Joined: Fri 04 Mar 2016, 05:49

Lubuntu 15.10 Build Error

Post by ltbridge » Fri 04 Mar 2016, 05:58

Hello,

I tried building from GIT as defined on the installation page but the build fails. I cannot determine what do by examining the build log (attached). The linking fails with many statements such as:

/usr/lib/i386-linux-gnu/libpq.so.5: undefined reference to `SSL_get_peer_certificate@OPENSSL_1.0.0'

Does anyone have any suggestions?

Thanks for any help,
Luke
Attachments
build_20160303_224629.log
(39.77 KiB) Downloaded 500 times

thorsten
Posts: 1430
Joined: Mon 27 Jun 2011, 12:26

Re: Lubuntu 15.10 Build Error

Post by thorsten » Fri 04 Mar 2016, 18:31

Maybe you try to install the openssl dev packages:

Code: Select all

sudo apt-get install libssl-dev
regards
Thorsten

ltbridge
Posts: 4
Joined: Fri 04 Mar 2016, 05:49

Re: Lubuntu 15.10 Build Error

Post by ltbridge » Fri 04 Mar 2016, 21:49

Thanks for your reply Thorsten.
thorsten wrote:Maybe you try to install the openssl dev packages:

Code: Select all
sudo apt-get install libssl-dev
I tried installing and re-installing libssl-dev and then rebuilding openEMS, but had the same type of linking problems.

I may try uninstalling Lubuntu and installing Ubuntu instead.

Luke
Attachments
terminal text.txt
libssl-dev install, re-install and openEMS build attempt
(4.15 KiB) Downloaded 460 times
machine_information.txt
System Information Report
(7.62 KiB) Downloaded 460 times
build_20160304_143425.log
OpenEMS build log after re-installing libssl-dev
(39.77 KiB) Downloaded 480 times

thorsten
Posts: 1430
Joined: Mon 27 Jun 2011, 12:26

Re: Lubuntu 15.10 Build Error

Post by thorsten » Fri 04 Mar 2016, 22:28

I currently have really no idea what is going on. I need to do some googling what has to be linked to get rid of this unknown references.
Did you try the release version? http://openems.de/download/src/openEMS-v0.0.33.tar.bz2

The only other idea I have is that you use a 32bit system. I haven't tried this arch in a long time.

Btw, only AppCSXCAD fails, if you build without the GUI, you can at least run/try openEMS.
I think it is something like:

Code: Select all

./update_openEMS.sh ~/opt/openEMS --disable-GUI	
regards
Thorsten

ltbridge
Posts: 4
Joined: Fri 04 Mar 2016, 05:49

Re: Lubuntu 15.10 Build Error

Post by ltbridge » Sat 05 Mar 2016, 01:06

thorsten wrote:Did you try the release version? http://openems.de/download/src/openEMS-v0.0.33.tar.bz2
I downloaded this file, then extracted as specified on the openEMS installation guide. Still had linking errors.
thorsten wrote:Btw, only AppCSXCAD fails, if you build without the GUI, you can at least run/try openEMS.
I think it is something like:

Code: Select all

./update_openEMS.sh ~/opt/openEMS --disable-GUI	
I attempted to build with the --disable-GUI option, but the build failed. This time, no linking errors, but the build log showed the following complaints (see detail in attachment):

Code: Select all

/usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h: In member function ‘void NS_Engine_Multithread::thread::operator()()’:
/usr/lib/gcc/i686-linux-gnu/5/include/xmmintrin.h:850:1: error: inlining failed in call to always_inline ‘void _mm_setcsr(unsigned int)’: target specific option mismatch
 _mm_setcsr (unsigned int __I)
 ^
/home/luke/Downloads/openEMS/openEMS/FDTD/engine_multithread.cpp:259:24: error: called from here
  _mm_setcsr( newMXCSR ); //write the new MXCSR setting to the MXCSR
thorsten wrote:The only other idea I have is that you use a 32bit system. I haven't tried this arch in a long time.
I will be attempting to change the OS to Ubuntu 15.10 64-bit.

Thanks for your ideas,
Luke
Attachments
build_20160304_163617.log
Build log with --dsiable-GUI
(29.32 KiB) Downloaded 484 times

thorsten
Posts: 1430
Joined: Mon 27 Jun 2011, 12:26

Re: Lubuntu 15.10 Build Error

Post by thorsten » Sat 05 Mar 2016, 10:55

That last error about the wrong *mm* certainly is a 32bit problem. The cause is that in the release version no -march flag is set. Thus the SSE requirement is not set active causing this.
64bit did never exist without SSE and for 32bit this is fixed in the latest git sources, but I guess you tried the "--disable-GUI" only with the release version.

I'm still curious why this link problem exists on Lubuntu ... I still suspect a missing package for the unreleased version.
Maybe you can give the git version another try without the GUI?

regards
Thorsten

thorsten
Posts: 1430
Joined: Mon 27 Jun 2011, 12:26

Re: Lubuntu 15.10 Build Error

Post by thorsten » Sat 05 Mar 2016, 11:02

Maybe with the latest git sources you could try adding:

Code: Select all

  ${vtk_LIBS}
  ssl
  crypt
)
to CMakeLists.txt, Line 154 in AppCSXCAD, see here: https://github.com/thliebig/AppCSXCAD/b ... s.txt#L154

regards
Thorsten

ltbridge
Posts: 4
Joined: Fri 04 Mar 2016, 05:49

Re: Lubuntu 15.10 Build Error

Post by ltbridge » Sat 05 Mar 2016, 20:36

I got the latest build from git using the following:

Code: Select all

git clone --recursive https://github.com/thliebig/openEMS-Project
and then performed the following on the git clone:

attempt #1:

Code: Select all

./update_openEMS.sh ~/opt/openEMS
result: build failed, linking errors


attempt #2:

Code: Select all

./update_openEMS.sh ~/opt/openEMS --disable-GUI
result: build failed, target mismatch errors


attempt #3:
Modified /AppCSXCAD/CMakeLists.txt as Thorsten described and then

Code: Select all

./update_openEMS.sh ~/opt/openEMS
result: build failed, linking errors (different than without CMakeLists modification)



My next step will be to install Ubuntu 64-bit, if my machine will support it.

Thanks for the continued support,
Luke
Attachments
build_20160305_131709.log
attempt #3 build log
(80.27 KiB) Downloaded 458 times
build_20160305_102515.log
attempt #2 build log
(31.57 KiB) Downloaded 482 times
build_20160305_100803.log
attempt #1 build log
(39.77 KiB) Downloaded 479 times

Post Reply