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

You are not logged in.

#1 2011-07-14 18:12:01

razvan.curtean
Member
Registered: 2008-11-20
Posts: 119

[SOLVED]Error during compilation in ubuntu 11.04

Hi

I got an srange error

 

-------------------------------------------------------------------------------
 Build Code_Aster executable

extracting 'python.o' from libasterd.a...                               [  OK  ]
creating .../NEW11.0/asterd...                                          [FAILED]
Exit code : 256
/usr/lib/liblapack.a(ATL_f77wrap_cgetnb.o): In function `atl_f77wrap_cgetnb_':
(.text+0x5): undefined reference to `ATL_cGetNB'
/usr/lib/liblapack.a(ATL_f77wrap_dgesv.o): In function `atl_f77wrap_dgesv_':
(.text+0x123): undefined reference to `ATL_xerbla'
/usr/lib/liblapack.a(ATL_f77wrap_dgetnb.o): In function `atl_f77wrap_dgetnb_':
(.text+0x5): undefined reference to `ATL_dGetNB'
/usr/lib/liblapack.a(ATL_f77wrap_dgetrf.o): In function `atl_f77wrap_dgetrf_':
(.text+0xf0): undefined reference to `ATL_xerbla'
/usr/lib/liblapack.a(ATL_f77wrap_dgetrs.o): In function `atl_f77wrap_dgetrs_':
(.text+0xed): undefined reference to `ATL_xerbla'
/usr/lib/liblapack.a(ATL_f77wrap_sgetnb.o): In function `atl_f77wrap_sgetnb_':
(.text+0x5): undefined reference to `ATL_sGetNB'
/usr/lib/liblapack.a(ATL_f77wrap_zgetnb.o): In function `atl_f77wrap_zgetnb_':
(.text+0x5): undefined reference to `ATL_zGetNB'
/usr/lib/liblapack.a(cblas_dptgemm.o): In function `cblas_dgemm':
(.text+0x32b): undefined reference to `ATL_dptsyrk'
/usr/lib/liblapack.a(cblas_dptgemm.o): In function `cblas_dgemm':
(.text+0x18a): undefined reference to `ATL_dptgemm'
/usr/lib/liblapack.a(cblas_dptgemm.o): In function `cblas_dgemm':
(.text+0x368): undefined reference to `ATL_dsyreflect'
/usr/lib/liblapack.a(cblas_dptscal.o): In function `cblas_dscal':
(.text+0x9): undefined reference to `ATL_dscal'
/usr/lib/liblapack.a(cblas_dptscal.o): In function `cblas_dscal':
(.text+0x1b): undefined reference to `ATL_dscal'
/usr/lib/liblapack.a(cblas_dpttrsm.o): In function `cblas_dtrsm':
(.text+0x1bc): undefined reference to `ATL_dpttrsm'
/usr/lib/liblapack.a(cblas_idptamax.o): In function `cblas_idamax':
(.text+0x9): undefined reference to `ATL_idamax'
/usr/lib/liblapack.a(cblas_idptamax.o): In function `cblas_idamax':
(.text+0x1b): undefined reference to `ATL_idamax'
/usr/lib/liblapack.a(cblas_dptsyrk.o): In function `cblas_dsyrk':
(.text+0x16d): undefined reference to `ATL_dptsyrk'
collect2: ld returned 1 exit status


<E>_LINK_ERROR     error during linking


--------------------------------------------------------------------------------
<E> errors previously raised :
 


<E>_LINK_ERROR     error during linking


<F>_BUILD_FAILED   Exception raised by MakeAster:
------------------------------------------------------------
Traceback:.

Thanks

Last edited by razvan.curtean (2011-07-17 20:02:08)


Attachments:
setup.log.tar.gz, Size: 260.93 KiB, Downloads: 632

Offline

#2 2011-07-14 20:19:39

bosman
Member
Registered: 2008-07-14
Posts: 105

Re: [SOLVED]Error during compilation in ubuntu 11.04

Hi!

I had the same problem if I didn't specify the math libs, blas etc, with MATHLIB in setup.cfg.

Regards!

B-O

Offline

#3 2011-07-15 05:51:45

razvan.curtean
Member
Registered: 2008-11-20
Posts: 119

Re: [SOLVED]Error during compilation in ubuntu 11.04

Can you give me an example how to do that?

Thanks

Offline

#4 2011-07-16 09:31:00

bosman
Member
Registered: 2008-07-14
Posts: 105

Re: [SOLVED]Error during compilation in ubuntu 11.04

Hi!

MATHLIB="-llapack -lblas"

you might need to add ĺibgfortran as well

MATHLIB="-llapack -lblas -lgfortran"

Regards!

B-O

Offline

#5 2011-07-17 20:02:28

razvan.curtean
Member
Registered: 2008-11-20
Posts: 119

Re: [SOLVED]Error during compilation in ubuntu 11.04

Thanks

Worked

Offline

#6 2011-08-03 13:53:55

onnomobile
Member
From: Switzerland
Registered: 2010-05-26
Posts: 93
Website

Re: [SOLVED]Error during compilation in ubuntu 11.04

Hello,

I had the same error and this trick worked, but now I get an other LINK ERROR when compiling on Ubuntu 11.04 32 bits (yes I know ...). It concerns a link to "esmumps" :

Build Code_Aster executable

extracting 'python.o' from libasterd.a...                               [  OK  ]
creating .../NEW11.0/asterd...                                          [FAILED]
Exit code : 256
/opt/aster/public/mumps-4.9.2/lib/libmumps_common.a(mumps_orderings.o): In function `mumps_scotch_':
mumps_orderings.c:(.text+0xb07): undefined reference to `esmumps'
collect2: ld returned 1 exit status


<E>_LINK_ERROR     error during linking

I did try to install mumps from synaptic repositories first, but no difference.

Thx for any help, except getting 64 bits :-)

Have fun !


Running Code Aster v11.5 on Scientific Linux 6

There are 10 types of people in this world, those who understand binary and those who don't.

Offline