porting an application on 64-bit AIX version 5

Thread Tools Search this Thread
Operating Systems AIX porting an application on 64-bit AIX version 5
# 1  
Old 10-01-2007
porting an application on 64-bit AIX version 5

Hi all,
I am facing problem in porting to 64 bit AIX especially with compiling options to compile and run under 64 bit kernel.Can any one put some light on the issue
thanks in advance
# 2  
Old 10-01-2007
You may as well have asked:
"I'm having some problems with AIX, can you tell me why?"

What is the environment, AIX level and application?
What compiler are you using, vendor and level?
Did it work in 32bit?
Did it work on AIX or are you porting from some other OS?
What is the problem?
What command are you using?
What is the error or problem you see?

Do you see you asked a rather vague question?
# 3  
Old 10-01-2007
1. Has the application run in any other 64 bit environment (UltraSparc, DEC-Alpha, PA-RISC2, Itanium2 etc)?

2. Does it *have* to be a 64 bit application? 32 bit apps will work with 64 bit kernel, if your program is not using >2gig of memory it's pointless being a 64 bit app.

3. Does it compile in 32 bit mode will *all* warnings on? If gcc, this would be "-Wall -Werror"?

4. Typical errors are:

a) not using socklen_t
b) incorrect printf style va_args
c) expecting an int to hold a pointer
d) va_args in general

5. Are all your dependent libraries available as 64 bit?

6. What errors are you getting?
# 4  
Old 10-03-2007

i will try being more clear...the application already runs on 32 bit and has also run on many 64bit boxes like ZSUSE.basically i am not able to find out what compiler options are needed to compile and run 64-bit appns on AIX kernel -5.like for eg on solaris 64 bit i am able to do
cc -xarch=generic64 -O -o foo64 foo.c
for running say fooc. but how do i accomplish that on AIX 64.
# 5  
Old 10-03-2007
Originally Posted by vishalzone2002
.....how do i accomplish that on AIX 64.
Which c compiler are you using gcc, xlc or something else?
# 6  
Old 10-03-2007
srry for d late reply

i have both the compilers installed i.e gcc and xlc
i tried using
gcc -q64
bt it didnt worked.......can you put some infor on options for either or both compilers
# 7  
Old 10-03-2007
I thought gcc was "-m64"

GCC RS/6000 and PowerPC Options 

-mcpu=cpu-type -mtune=cpu-type -mpower -mno-power -mpower2 
-mno-power2 -mpowerpc -mpowerpc64 -mno-powerpc -maltivec 
-mno-altivec -mpowerpc-gpopt -mno-powerpc-gpopt -mpowerpc-gfxopt 
-mno-powerpc-gfxopt -mnew-mnemonics -mold-mnemonics -mfull-toc 
-mminimal-toc -mno-fp-in-toc -mno-sum-in-toc -m64 -m32 -mxl-call 
-mno-xl-call -mpe -msoft-float -mhard-float -mmultiple -mno-multiple 
-mstring -mno-string -mupdate -mno-update -mfused-madd -mno-fused-madd 
-mbit-align -mno-bit-align -mstrict-align -mno-strict-align -mrelocatable 
-mno-relocatable -mrelocatable-lib -mno-relocatable-lib -mtoc -mno-toc 
-mlittle -mlittle-endian -mbig -mbig-endian -mcall-aix -mcall-sysv 
-mcall-netbsd -maix-struct-return -msvr4-struct-return -mabi=altivec 
-mabi=no-altivec -mprototype -mno-prototype -msim -mmvme -mads 
-myellowknife -memb -msdata -msdata=opt -mvxworks -G num -pthread

xlc uses "-q64".

Try building...

#include <sys/types.h>
#include <stdio.h>
#include <limits.h>

#ifndef _LP64
#error not _LP64

also don't forget to look at the COFF object header to see what sort of object you have built.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. Solaris

Porting graphical Solaris application to Linux

I don't expect any quick answers, but if people have links to resources I can investigate I'd be extremely appreciative. Here is what we have today: The "application" is a multi-process train control system that uses the Unix desktop, currently CDE, several motif-based applications and sound,... (8 Replies)
Discussion started by: paz9
8 Replies

3. Red Hat

Unable to install 32 bit application on 64 bit OS

Hi, I am new to Linux OS. My question is that "is it possible to install 32 Bit application on 64 Bit OS?" I have the following Redhat OS on VMware workstation. OS - Red Hat Enterprise Linux Server release 6.2 | 2.6.32-220.el6.x86_64 While installing the application I am getting the... (2 Replies)
Discussion started by: poga
2 Replies

4. SuSE

64 bit Porting Problem !!!

Dear All, I am trying to build my code (currently functioning on 32bit) on 64 bit SUSE machine. I am getting following error: warning: initializer element is not computable at load time dau.gss.c:275: error: initializer element is not constant dau.gss.c:275: error: (near initialization for... (10 Replies)
Discussion started by: skaushal.schip
10 Replies

5. Red Hat

No Error for 64-bit porting

I am just trying to get the warning while compiling for 64-bit on Linux >> uname -a Linux mms4.es.cpth.ie 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux =================================== Written test.c file which conatin : #include<stdio.h>... (1 Reply)
Discussion started by: amit_27
1 Replies

6. Linux

Is it possible to compile 64 bit application on 32 bit machine

Hi, I am using 32 bit machine, and I want to compile 64 bit application on 32-bit machine. So please tell me is it possible or not? Regards Mandar (7 Replies)
Discussion started by: Mandar123
7 Replies

7. Solaris

Porting C++ 32-bit code on 64-bit Solaris

Hi, I am trying to convert 32-bit code to 64-bit. I have defined function int main() { int* l; size_t len1; fun(len1); return 0; } void fun(int* ptr) { cout<<"\nsizeof(ptr)"<<sizeof(ptr); } However while compiling getting error as : Error: Formal argument ptr... (2 Replies)
Discussion started by: amit_27
2 Replies

8. Gentoo

compiling 32 bit application on 64 bit linux(x86_64)

hi all, i have a 64 bit linux machine. $uname -a Linux SVRDELLD30 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux here by default gcc creates 64 bit executable. but for some reason i want to create 32bit executable. first i want to create 32 bit object... (3 Replies)
Discussion started by: uttamhoode
3 Replies

9. Programming

Porting Win32 application into Linux

I need port Win32 console application, which was developed with MS Visual Studio 6.0 (without MFC using) into Linux. What is the best way to port project? Are there any standard tools or decisions? Thank you in advance, Sergey (0 Replies)
Discussion started by: Sergeyy
0 Replies
Login or Register to Ask a Question