CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Installation error for OF/5.x: ld.gold: error: --add-needed is not supported

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2020, 09:13
Default Installation error for OF/5.x: ld.gold: error: --add-needed is not supported
  #1
New Member
 
Ehsan Moravveji
Join Date: Mar 2020
Posts: 1
Rep Power: 0
EhsanVSC is on a distinguished road
Dear all

I am trying to install OpenFOAM/5.x using OpenMPI/2.1.2-GCC-6.4.0 on our cluster for a specific user. Our machines are Intel SkyLake/CascadeLake generations running on CentOS 7.6.

All dependencies are loaded as modules in the build script (attached). I also set various env. vars. to point at the specific installation folders of the dependencies, to ensure that the build procedure finds them properly; but, I have two issues during the build:
  1. The CGAL and METIS are not found, though they are loaded. For MESTIS, I even set an env. var. pointing at the top installation folder:
    Code:
    module load CGAL/4.11.1-foss-2018a-Python-3.6.4
    module load METIS/5.1.0-foss-2018a #-32bitIDX
    export METIS_ARCH_PATH=$EBROOTMETIS
    Not sure, if there exists a similar env. var. for CGAL? Nevertheless, the installation continues until the 2nd issue below
  2. After few minutes, I get the following error message:
    Code:
    /myApps/software/binutils/2.28-GCCcore-6.4.0/bin/ld.gold: error: --add-needed is not supported but is required for libPstream.so in /myData/easybuild/work/OpenFOAM/from-source/OpenFOAM-5.x/platforms/linux64GccDPInt64Opt/lib/libOpenFOAM.so
    collect2: error: ld returned 1 exit status
    make: *** [/myData/easybuild/work/OpenFOAM/from-source/OpenFOAM-5.x/platforms/linux64GccDPInt64Opt/lib/libfiniteVolume.so] Error 1

For the two above issues, I am reaching out to you, and would like to know if you have already seen this before? And how to remedy this?

I have attached a compressed file containing the build script, and the stdout/stderr during the installation.

Kind regards
Ehsan
Attached Files
File Type: gz of5x.logs.tar.gz (145.6 KB, 0 views)
EhsanVSC is offline   Reply With Quote

Reply

Tags
--add-needed, cgal, metis


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
[OpenFOAM.org] problems with installation of OpenFOAM-2.1.1 on cluster with RHEL 6.5 lisa_china OpenFOAM Installation 1 March 29, 2016 08:08
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 11:51
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56


All times are GMT -4. The time now is 06:55.