Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2011-12-13 14:05:45

dbpatankar
Member
From: Roorkee, Uttarakhand, India
Registered: 2010-05-22
Posts: 172

[SOLVED]cannot find -lsupc++

Hi

I am trying to compile aster-full-src-11.0.10 on Fedora-16 x86_64 system.
The setup.log file is as below :

--------------------------------------------------------------------------------
Code_Aster Setup version 11.0-1
Copyright (c) 2001-2011 EDF R&D - http://www.code-aster.org 
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Command line :
  /usr/bin/python setup.py install 
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Reading config file '/home/digvijay/aster-full-src-11.0.10/setup.cfg'...
 PREFER_SHARED_LIBS (from cfg) : False
 PREFER_COMPILER (from cfg) : 'GNU'
      ASTER_ROOT (from cfg) : '/opt/aster'
        MAXDEPTH (from cfg) : 5
      USE_LOCATE (from cfg) : False

--------------------------------------------------------------------------------
Installation on :
Fedora release 16 (Verne)
Kernel  on an  ()

Linux localhost.localdomain 3.1.4-1.fc16.x86_64 #1 SMP Tue Nov 29 11:37:53 UTC 2011 x86_64 
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Checking for max command length...   32768
Checking for file... /usr/bin/file
Checking for ar... /usr/bin/ar
Checking for architecture... Linux / posix / x86_64
Checking for number of processors (core)... 2
Checking for Code_Aster platform type... LINUX64
Checking for bash... /bin/bash
Checking for Python version... 2.7.2
Checking for numpy... yes
Checking for numpy version... 1.6.0
Checking for numpy/arrayobject.h... /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h
Checking for PyQt4 (for eficasQt)... yes
Checking for PyQt4.QtAssistant module (for eficasQt, optionnal)... no
Checking for gcc... /usr/lib64/ccache/gcc
Checking for /usr/lib64/ccache/gcc configured installation directory... /usr/lib/gcc/x86_64-redhat-linux/4.6.2, /usr/lib64/ccache
Checking for libpthread.so... /usr/lib64/libpthread.so
Checking for libz.so... /usr/lib64/libz.so
Checking for libdl.so... /usr/lib64/libdl.so
Checking for libutil.so... /usr/lib64/libutil.so
Checking for libm.so... /usr/lib64/libm.so

--------------------------------------------------------------------------------
Checking for default compiler (for all products)... 
Checking for GNU compilers... 
Checking for gcc... /usr/lib64/ccache/gcc
Checking for compiler version... gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
Checking for g++... /usr/lib64/ccache/g++
Checking for compiler version... g++ (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
Checking for gfortran... /usr/bin/gfortran
Checking for compiler version... GNU Fortran (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
Checking for gfortran... /usr/bin/gfortran
Checking for compiler version... GNU Fortran (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
Checking for pthread... -L/usr/lib64 -lpthread (already found)
Checking for z... -L/usr/lib64 -lz (already found)
Checking for liblapack.a... no
Checking for liblapack.so... /usr/lib64/liblapack.so
Checking for libblas.a... no
Checking for libblas.so... /usr/lib64/libblas.so
Checking for libstdc++.so... /usr/lib/gcc/x86_64-redhat-linux/4.6.2/libstdc++.so
Checking for F77 (/usr/bin/gfortran) is gfortran... yes
Checking for F77 (/usr/bin/gfortran) and F90 (/usr/bin/gfortran) support '-fopenmp' option... yes
Checking for libg2c.a... no
Checking for libg2c.so... /usr/lib64/libg2c.so
Checking for libgfortran.a... nocannot find -lsupc++
Checking for libgfortran.so... /usr/lib/gcc/x86_64-redhat-linux/4.6.2/libgfortran.so
Checking for CC (/usr/lib64/ccache/gcc) supports '-fno-stack-protector' option... yes
Checking for C/fortran program using blas/lapack... no
---------- ERROR MESSAGE ---------- 
/usr/bin/ld: cannot find -lsupc++
collect2: ld returned 1 exit status


-------------------------------------------------------------------------------
WARNING :
  The C/fortran test program calling blas and lapack subroutines failed.

Reasons :
  - unable to find suitable C/fortran compilers
  - blas/lapack libraries (or required by them) missing
  - incorrect compilation options

Nevertheless the compilation of Code_Aster may work !
If it failed, you must help the setup by setting CC, CFLAGS, MATHLIB...
-------------------------------------------------------------------------------


SystemExit('UserInterruption',)
UserInterruption

Kindly suggest me what to do.

With regards,

Digvijay

Last edited by dbpatankar (2011-12-26 13:07:14)

Offline

#2 2011-12-13 20:30:53

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,066

Re: [SOLVED]cannot find -lsupc++

You're missing a -dev package. For example the libc++-dev package or something like that. Search the packages.

TdS

Offline

#3 2011-12-15 18:57:09

cacciatorino
Member
From: Porto Recanati, Italy
Registered: 2008-11-05
Posts: 733

Re: [SOLVED]cannot find -lsupc++

In fedora, you can search for a file contained in a package with the command:

 [root@mcad-3 salome]# yum provides *supc++*

It is the equivalent of urpmf in mandriva.

Last edited by cacciatorino (2011-12-17 13:32:47)

Offline

#4 2011-12-20 07:18:37

dbpatankar
Member
From: Roorkee, Uttarakhand, India
Registered: 2010-05-22
Posts: 172

Re: [SOLVED]cannot find -lsupc++

cacciatorino wrote:

In fedora, you can search for a file contained in a package with the command:

 [root@mcad-3 salome]# yum provides *supc++*

It is the equivalent of urpmf in mandriva.

Yes, I know about this. And libsupc++.a is already available

[root@localhost aster-full-src-11.0.10]# locate libsupc++.a
/usr/lib/gcc/x86_64-redhat-linux/4.6.2/32/libsupc++.a

I tried changing the MAXDEPTH to 8 but still its not finding libsupc++
The same error repeats i.e.

---------- ERROR MESSAGE ---------- 
/usr/bin/ld: cannot find -lsupc++
collect2: ld returned 1 exit status

Offline

#5 2011-12-21 16:15:53

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,167

Re: [SOLVED]cannot find -lsupc++

Just wait (tomorrow) the aster-full package 11.1, it compiles perfectly smile


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#6 2011-12-26 13:06:57

dbpatankar
Member
From: Roorkee, Uttarakhand, India
Registered: 2010-05-22
Posts: 172

Re: [SOLVED]cannot find -lsupc++

courtois wrote:

Just wait (tomorrow) the aster-full package 11.1, it compiles perfectly smile

Thank you. 11.1 compiled correctly without any problem.

Offline