[esp-r] Re: Compilation problems on 64 bit machines - an alternative Install script

Jon Hand jon at esru.strath.ac.uk
Tue Jul 29 05:40:25 BST 2008


I attach a variant of the Install script that has been
setup for Red Hat Enterprise 4 on a 64 bit HP compute
server. Because such machines carry both 32 bit and
64 bit libraries it is a place of dragons to coerce
the compilers to work.  NOTE: this one is using the
GCC 3.4 compiler and not the newer GCC.

The difference is the -m32 as well as one place
where the /usr/X11R6 had to be hard-coded to force
it to use the correct libary.

Note: some models run ok on a 64 bit machine which
has been compiled to force 32 bit working. But there
are some models which seem to have some control
definitions mangled. Use with care and pay close
attention to the predictions. Best if you also run
the same model on a 32 bit machine to confirm that
the numbers are close.

Regards, Jon Hand


-----Original Message-----
From: esp-r-bounces at lists.strath.ac.uk on behalf of Ferguson, Alex
Sent: Mon 7/28/2008 2:05 PM
To: Diepens, J.F.L.; esp-r at lists.strath.ac.uk
Subject: [esp-r] Re: Compilation problems on Sun Fire 4150 with Suse 10.2 OS
 
Hi Jan,
 
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin
/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for
-lX11
 
I think you've encountered a yet-to-be discovered incompatability with
ESP-r and new versions of X11. Please send the output of the command 'X
-version' command. In the mean-time, you could try the GTK version. 
 
- Alex 

________________________________

From: esp-r-bounces at lists.strath.ac.uk
[mailto:esp-r-bounces at lists.strath.ac.uk] On Behalf Of Diepens, J.F.L.
Sent: Monday, July 28, 2008 7:20 AM
To: esp-r at lists.strath.ac.uk
Subject: [esp-r] Compilation problems on Sun Fire 4150 with Suse 10.2 OS



Hello list,

 

I try to compile ESP-r on a Sun Fire 4150 with Suse 10.2 enterprise OS
64 bit but do not succeed.

 

I added the option -m32 to the initial Compiler flags

 

With ./Install -d /opt/esru -gcc4 I get the following error messages

 

 

gfortran -I../include -I../shocc -I/usr/local/include
-I../cetc/h3kreports -DLIN -DX11   -fno-automatic -DGCC4 -c tdfile.F

gfortran  -o  aco -I../include -I../shocc -I/usr/local/include
-I../cetc/h3kreports -DLIN -DX11   -fno-automatic -DGCC4 aco.o acocalc.o
acoesp.o arrow.o ascii_mat.o c2fdum.o common3dv.o cread3dv.o ctlexp.o
ctread.o dossupport.o e3dviews.o econstr.o edatabase.o edcondb.o
egeometry.o emfnetw.o enetmisc.o eroper.o esru_misc.o esystem.o item.o
mfcdat.o nwkrewr.o plelev.o pltcfg.o readaco.o readBCF.o readTrnsys.o
sort.o startup.o tdfile.o -L/opt/resources/esp-r/trunk/src/lib  -lxesru
-L/usr/X11R6/lib -lX11

/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin
/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for
-lX11

/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin
/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for
-lX11

/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin
/ld: cannot find -lX11

collect2: ld returned 1 exit status

 

How can I solve this compilation problem/error?

 

Kind regards,

 

Jan Diepens



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Install_32
Url: http://lists.strath.ac.uk/archives/esp-r/attachments/20080729/1e7b46e8/attachment-0001.ksh 


More information about the esp-r mailing list