[Users] questions about compilation

Roland Haas roland.haas at physics.gatech.edu
Mon Nov 27 13:28:07 CST 2017


Hello Chia Hui Lin,

hmm. I am not sure about the -ljpeg since ExternalLibraries/libjpeg
should provide this. 

You are also receiving a link time warning about using dlopen in a
statically linked application. While not directly related to the jpeg
library issue a possible workaround is force dynamic linking (not the
default one edison) by setting:

export CRAYPE_LINK_TYPE=dynamic
export CRAY_ADD_RPATH=yes

either as part of the envsetup lines in the file
simfactory/mdb/machine/edison.ini or on your command line (if eg not
using simfactory).

Yours,
Roland

> Dear Roland,
> Thanks for your kindly help and sorry for replying such late.
> It indeed solved the error by using the second method you suggested.
> However another error occurred , the attached file is the screenshot of the error message.
> It seems the code cannot find the library of jepg , but I think it is not missing since I found some versions of it by using the command :ldconfig -p | grep jepg (showed in the screenshot).
> Although I tried several compilers including intel compiler version 16, it did not work.
> What kind of the problem is it and is there some possible solutions ?
> Thank you .
> Best regards,
> Chia Hui Lin
> ________________________________________
> 從: Roland Haas [roland.haas at physics.gatech.edu]
> 寄件日期: 2017年11月21日 上午 12:42
> 至: 林家暉
> 副本: users at einsteintoolkit.org
> 主旨: Re: [Users] questions about compilation
> 
> Hello Chia Hui Lin,
> 
> looking at your output (internal compiler failure when compiling
> bbox.cc) this seems to be an instance of this bug:
> 
> https://trac.einsteintoolkit.org/ticket/2021
> 
> there seem to be two way around this:
> 
> 1. change the file edison.ini to load an older Intel compiler (version
> 16)
> 2. edit the file repos/carpet/CarpetLib/src/bbox.cc and add at the
> beginning:
> 
> #if __INTEL_COMPILER >= 1700
> #pragma GCC optimization_level 1
> #endif
> 
> which reduces the optimization level and avoids the problem.
> 
> Yours,
> Roland
> 
> > Dear sir/madam,
> > I am a master student of physics department ,National Taiwan University, and a beginner of Einstein toolkit.
> > I started with my laptop and everything worked fine. While I turning to super cluster called Edison ,NERSC, some errors came up during compilation(that is, after I type the command:$ ./simfactory/bin/sim build ).
> > 1.The attached file is the screenshot of the error message. It seems the error is caused by compiler. However the same error appeared after shifting the intel compiler to cray compiler or gnu compiler.How can I solve the error?
> >
> > 2.The machine definition file of Edison(edison.ini) is last tested in May,2015, so I am afraid that some information of the machine is outdated .  Is this related to the previous problem(1.)? How can I update this file ?
> >
> > Thanks for your help.
> > Best regards,
> > Chia Hui Lin
> >
> >  
> 
> 
> 
> --
> My email is as private as my paper mail. I therefore support encrypting
> and signing email messages. Get my PGP key from http://pgp.mit.edu .



-- 
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20171127/1f2adb4b/attachment.bin 


More information about the Users mailing list