LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 04-22-2009, 06:41 AM   #1
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Rep: Reputation: 16
Compiling netcdf-3.6.2 on powerpc-ibm-aix5.2.0.0


Hi,
I am trying to compile a package netcdf-3.6.2 on an ibm aix machine called IBM Regatta P690. The script i am using is:
Code:
#!/usr/bin/bash -f

export CC=xlc_r
export CXX=xlC_r
export F77=xlf_r
export FC=xlf90_r
export CFLAGS=-q64
export CXXFLAGS=-q64
export FFLAGS='-q64 -qextname'
export FCFLAGS='-qsuffix=f=f90 -qextname'
export FCFLAGS_f90=-qsuffix=f=f90
export CPPFLAGS='-DIBMR2Fortran -Df2cFortran -Dextname'
export ARFLAGS='-X32_64 -cru'
export NMFLAGS=-X32_64
export SED=/usr/bin/sed

./configure --prefix=/home/caos1/mecsmrao/netcdf_3.6.2 --enable-f90
During the configure process i got a message as:
Quote:
checking command to parse /usr/bin/nm -B output from xlc_r object... failed
After a few object files get created the gmake process aborts giving the error as:
Quote:
libtool: compile: xlc_r -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../libsrc -DIBMR2Fortran -Df2cFortran -Dextname -q64 -c -M fort-varsio.c -o fort-varsio.o
/bin/sh ../libtool --tag=CC --mode=link xlc_r -q64 -o libnetcdff.la fort-attio.lo fort-control.lo fort-dim.lo fort-genatt.lo fort-geninq.lo fort-genvar.lo fort-lib.lo fort-misc.lo fort-v2compat.lo fort-vario.lo fort-var1io.lo fort-varaio.lo fort-varmio.lo fort-varsio.lo
libtool: link: ar cru .libs/libnetcdff.a fort-attio.o fort-control.o fort-dim.o fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o fort-varsio.o
ar: 0707-126 fort-attio.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-control.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-dim.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-genatt.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-geninq.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-genvar.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-lib.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-misc.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-v2compat.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-vario.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-var1io.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-varaio.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-varmio.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 fort-varsio.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
gmake[3]: *** [libnetcdff.la] Error 14
gmake[3]: Leaving directory `/home/caos1/mecsmrao/netcdf-3.6.2/netcdf-3.6.2/fortran'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/caos1/mecsmrao/netcdf-3.6.2/netcdf-3.6.2/fortran'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/caos1/mecsmrao/netcdf-3.6.2/netcdf-3.6.2'
gmake: *** [all] Error 2
Could someone suggest a solution.

I am not a programmer, but i need to get this package compiled.

Thanks for any help.
 
Old 04-30-2009, 10:01 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
ar: 0707-126 fort-varaio.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.


you have a 64 bit vs 32 bit problem. Some of your objects are 32 bit and some are 64.
 
Old 04-30-2009, 07:21 PM   #3
DukeSSD
Member
 
Registered: Sep 2007
Posts: 90

Rep: Reputation: 20
Yep, and you should probably know that AIX 5.2 went End Of Service today so what is the point, you should be compioling for at least 5,3 these days.
 
Old 04-30-2009, 11:46 PM   #4
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by crabboy View Post
you have a 64 bit vs 32 bit problem. Some of your objects are 32 bit and some are 64.
Hi,
Yes, i figured out that the problem is a 32 and 64 bit one. I have tried compiling with the ar option -X64 (which is the correct one) as well as -X32. In all cases i get the same error. It is as though the -X option is not being accepted, although during the configure process this flag is accepted. I have also tried some small changes like qarch=ppc and export OBJECT_MODE=64, but nothing works.

AS far as choosing AIX 5.3 over AIX 5.2 is concerned, i have no choice as it i am not an admin and probably AIX 5.2 will be used here for quite some time more.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Terra Soft Releases v6.0 for Apple PowerPC, Sony PS3, IBM System P LXer Syndicated Linux News 0 02-05-2008 03:00 PM
upgrading an IBM 7043/140 with powerpc 604e 332 mhz processor and AIX 4.2 alibeheshti AIX 1 01-30-2008 11:04 AM
upgrading AIX4.2 installed on IBM 7043/140 RS/6000 powerpc 604e 332 mhz alibeheshti AIX 0 12-10-2007 05:57 AM
how can I obtain Debian bootable CD for the IBM Powerpc jiyun0121 Linux - General 1 09-21-2005 03:38 AM
Ibm should make a Powerpc/cell Thinkpad line krisealv Linux - Laptop and Netbook 1 12-07-2004 05:57 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration