getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Make Error


From: soy yo
Subject: Re: [Getfem-users] Make Error
Date: Tue, 6 May 2008 17:28:35 +0000

Hi,

I installed gcc 3.4.5:

>>/usr/local/gcc/3.4.5/bin/gcc -v
Leyendo especificaciones de 
/usr/local/gcc/3.4.5/bin/../lib/gcc/i686-pc-linux-gnu/3.4.5/specs
Configurado con: ./configure --prefix=/usr/local/gcc/3.4.5 : (reconfigured) 
./configure --prefix=/usr/local/gcc/3.4.5/
Modelo de hilos: posix
gcc versión 3.4.5

and then re-execute the Warning line, with the verbose command:

>> cd /getfem++-3.0.4/interface/src/matlab
>> /opt/matlab2006b/bin/mex -v -output gf_matlab -g CDEBUGFLAGS="-O3" LD="g++"  
>>        -I. -I./.. -DMATLAB_RELEASE=14         ./gfm_mex.c ./gfm_common.c 
>> ./../gfi_array.c         ../.libs/libgetfemint.a 
>> ../../../src/.libs/libgetfem.a  -L/usr/lib/atlas 
>> CC=/usr/local/gcc/3.4.5/bin/gcc CXX=/usr/local/gcc/3.4.5/bin/g++ 
>> FC=/usr/local/gcc/3.4.5/bin/g77 LD=/usr/local/gcc/3.4.5/bin/g++

-> mexopts.sh sourced from directory (DIR = $MATLAB/bin)
   FILE = /opt/matlab2006b/bin/mexopts.sh
----------------------------------------------------------------
->    MATLAB                = /opt/matlab2006b
->    CC                    = /usr/local/gcc/3.4.5/bin/gcc
->    CC flags:
         CFLAGS             = -fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions 
-m32
         CDEBUGFLAGS        = -O3
         COPTIMFLAGS        = -O -DNDEBUG
         CLIBS              = -Wl,-rpath-link,/opt/matlab2006b/bin/glnx86 
-L/opt/matlab2006b/bin/glnx86 -lmx -lmex -lmat -lm -lstdc++
         arguments          =  -DMATLAB_RELEASE=14 -DMX_COMPAT_32
->    CXX                   = /usr/local/gcc/3.4.5/bin/g++
->    CXX flags:
         CXXFLAGS           = -fPIC -ansi -D_GNU_SOURCE -pthread
         CXXDEBUGFLAGS      = -g
         CXXOPTIMFLAGS      = -O -DNDEBUG
         CXXLIBS            = -Wl,-rpath-link,/opt/matlab2006b/bin/glnx86 
-L/opt/matlab2006b/bin/glnx86 -lmx -lmex -lmat -lm
         arguments          =  -DMATLAB_RELEASE=14 -DMX_COMPAT_32
->    FC                    = /usr/local/gcc/3.4.5/bin/g77
->    FC flags:
         FFLAGS             = -fPIC -fexceptions
         FDEBUGFLAGS        = -g
         FOPTIMFLAGS        = -O
         FLIBS              = -Wl,-rpath-link,/opt/matlab2006b/bin/glnx86 
-L/opt/matlab2006b/bin/glnx86 -lmx -lmex -lmat -lm -lstdc++
         arguments          =  -DMATLAB_RELEASE=14 -DMX_COMPAT_32
->    LD                    = /usr/local/gcc/3.4.5/bin/g++
->    Link flags:
         LDFLAGS            = -pthread -shared -m32 
-Wl,--version-script,/opt/matlab2006b/extern/lib/glnx86/mexFunction.map
         LDDEBUGFLAGS       = -g
         LDOPTIMFLAGS       = -O
         LDEXTENSION        = .mexglx
         arguments          =  ../.libs/libgetfemint.a 
../../../src/.libs/libgetfem.a -L/usr/lib/atlas
->    LDCXX                 =
->    Link flags:
         LDCXXFLAGS         =
         LDCXXDEBUGFLAGS    =
         LDCXXOPTIMFLAGS    =
         LDCXXEXTENSION     =
         arguments          =  ../.libs/libgetfemint.a 
../../../src/.libs/libgetfem.a -L/usr/lib/atlas
----------------------------------------------------------------

-> /usr/local/gcc/3.4.5/bin/gcc -c  -I. -I./.. 
-I/opt/matlab2006b/extern/include -I/opt/matlab2006b/simulink/include 
-DMATLAB_MEX_FILE -fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions -m32  
-DMATLAB_RELEASE=14 -DMX_COMPAT_32 -O3 ./gfm_mex.c

-> /usr/local/gcc/3.4.5/bin/gcc -c  -I. -I./.. 
-I/opt/matlab2006b/extern/include -I/opt/matlab2006b/simulink/include 
-DMATLAB_MEX_FILE -fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions -m32  
-DMATLAB_RELEASE=14 -DMX_COMPAT_32 -O3 ./gfm_common.c

-> /usr/local/gcc/3.4.5/bin/gcc -c  -I. -I./.. 
-I/opt/matlab2006b/extern/include -I/opt/matlab2006b/simulink/include 
-DMATLAB_MEX_FILE -fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions -m32  
-DMATLAB_RELEASE=14 -DMX_COMPAT_32 -O3 ./../gfi_array.c

-> /usr/local/gcc/3.4.5/bin/gcc -c  -I. -I./.. 
-I/opt/matlab2006b/extern/include -I/opt/matlab2006b/simulink/include 
-DMATLAB_MEX_FILE -fPIC -ansi -D_GNU_SOURCE -pthread -fexceptions -m32  
-DMATLAB_RELEASE=14 -DMX_COMPAT_32 -O3 /opt/matlab2006b/extern/src/mexversion.c

-> /usr/local/gcc/3.4.5/bin/g++ -g -pthread -shared -m32 
-Wl,--version-script,/opt/matlab2006b/extern/lib/glnx86/mexFunction.map -o 
gf_matlab.mexglx  gfm_mex.o gfm_common.o gfi_array.o mexversion.o  
../.libs/libgetfemint.a ../../../src/.libs/libgetfem.a -L/usr/lib/atlas 
-Wl,-rpath-link,/opt/matlab2006b/bin/glnx86 -L/opt/matlab2006b/bin/glnx86 -lmx 
-lmex -lmat -lm -lstdc++

/usr/bin/ld:../.libs/libgetfemint.a: file format not recognized; treating as 
linker script
/usr/bin/ld:../.libs/libgetfemint.a:1: syntax error
collect2: ld devolvió el estado de salida 1

    mex: link of 'gf_matlab.mexglx' failed.




What should I do now?


Thank you in advance,
 Pepe.



----------------------------------------
> Date: Wed, 30 Apr 2008 22:12:13 +0200
> From: address@hidden
> To: address@hidden
> CC: address@hidden
> Subject: RE: [Getfem-users] Make Error
> 
> Quoting soy yo :
> 
>> /opt/matlab2006b/bin/mex -output gf_matlab -g CDEBUGFLAGS="-O3" LD="g++" \
>>         -I. -I./.. -DMATLAB_RELEASE=14 \
>>         ./gfm_mex.c ./gfm_common.c ./../gfi_array.c \
>>         ../.libs/libgetfemint.a ../../../src/.libs/libgetfem.a
>> -L/usr/lib/atlas
>> /lib/ -latlas -lf77blas  || (rm gf_matlab.mexglx; false)
>> Warning: You are using gcc version "4.2.0".  The earliest gcc version
>> supported with mex is "3.4.0".  The latest version tested for use with mex is
>> "3.4.5".
> 
> No need to rebuild everything with gcc 3.4 in my opinion. Just install it and
> re-execute the command line above (in the getfem++-3.0.4/interface/src/matlab
> directory). You may want to run "mex -v" instead of just "mex" in order to see
> which command mex is running. But it should definitiveky output a
> "gf_matlab.mexglx" file

_________________________________________________________________
MSN Noticias
http://noticias.msn.es/comunidad.aspx


reply via email to

[Prev in Thread] Current Thread [Next in Thread]