help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] GLPK installation problem on Linux with Matlab (recompile wi


From: Dou, Yimeng
Subject: [Help-glpk] GLPK installation problem on Linux with Matlab (recompile with -fPIC)
Date: Sat, 30 May 2009 02:23:44 +0300

Hi there,

 

We got a message like this when trying to install GLPK on a
Linux server that has Matlab running on it. We actually went into the Makefile,
and added  #8211;fPIC flag to the CPP flags, but when we tried to execute  
#8220;makeglpkmex #8221;
Matlab still reported these same errors.  The output of the  #8220;make #8221;
process actually seemed like they were using the  #8211;fPIC flag #8230;so we
are really confused. Could you please help? Any idea is highly appreciated.

 

 

/usr/bin/ld:
/home/matlab/glpk/glpk-4.38/lib/libglpk.a(glpapi01.o):

relocation R_X86_64_32 against `a local symbol' can not be
used when

making a shared object; recompile with -fPIC

/home/matlab/glpk/glpk-4.38/lib/libglpk.a: could not read
symbols: Bad

value

collect2: ld returned 1 exit status

 

    mex: link of ' "glpkcc.mexa64"'
failed.

 

??? Error using ==> mex at 213

Unable to complete successfully.

 

Error in ==> makeglpkmex at 111

eval(['mex ' cmd]);

 

 

 

And Here are the modifications we #8217;ve done to the CPP
flags:

 

CC = gcc -fPIC

CCDEPMODE = depmode=gcc3

CFLAGS = -g -O2

CPP = gcc -EfPIC

CPPFLAGS = -fPIC

 

The  #8220;make #8221; process outputs something like this,
so you see the added  #8211;fPIC is there. 

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I./../include -g -O2 -MT 
glpapi01.lo -MD -MP -MF
.deps/glpapi01.Tpo -c glpapi01.c  -fPIC -DPIC -o .libs/glpapi01.o

 

This line also mentions gcc, but it is without the  #8211;fPIC
flag. Could this be the reason?

libtool: link:  gcc -shared  .libs/glpapi01.o
.libs/glpapi02.o .libs/glpapi03.o .libs/glpapi04.o .libs/glpapi05.o
.libs/glpapi06.o .libs/glpapi07.o .libs/glpapi08.o

 

 

 

Thanks,

 

Yimeng

 



 

 





 

Hi there,

 

We got a message like this when trying to install GLPK on a Linux server that has Matlab running on it. We actually went into the Makefile, and added –fPIC flag to the CPP flags, but when we tried to execute “makeglpkmex” Matlab still reported these same errors.  The output of the “make” process actually seemed like they were using the –fPIC flag…so we are really confused. Could you please help? Any idea is highly appreciated.

 

 

/usr/bin/ld: /home/matlab/glpk/glpk-4.38/lib/libglpk.a(glpapi01.o):

relocation R_X86_64_32 against `a local symbol' can not be used when

making a shared object; recompile with -fPIC

/home/matlab/glpk/glpk-4.38/lib/libglpk.a: could not read symbols: Bad

value

collect2: ld returned 1 exit status

 

    mex: link of ' "glpkcc.mexa64"' failed.

 

??? Error using ==> mex at 213

Unable to complete successfully.

 

Error in ==> makeglpkmex at 111

eval(['mex ' cmd]);

 

 

 

And Here are the modifications we’ve done to the CPP flags:

 

CC = gcc -fPIC

CCDEPMODE = depmode=gcc3

CFLAGS = -g -O2

CPP = gcc -EfPIC

CPPFLAGS = -fPIC

 

The “make” process outputs something like this, so you see the added –fPIC is there.

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I./../include -g -O2 -MT glpapi01.lo -MD -MP -MF .deps/glpapi01.Tpo -c glpapi01.c  -fPIC -DPIC -o .libs/glpapi01.o

 

This line also mentions gcc, but it is without the –fPIC flag. Could this be the reason?

libtool: link:  gcc -shared  .libs/glpapi01.o .libs/glpapi02.o .libs/glpapi03.o .libs/glpapi04.o .libs/glpapi05.o .libs/glpapi06.o .libs/glpapi07.o .libs/glpapi08.o

 

 

 

Thanks,

 

Yimeng

 

 

 


reply via email to

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