AIX 7.1 gcc 4.8.5 issue


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
AIX 7.1 gcc 4.8.5 issue

hey guys ,

after migrate our AIX server from 6.1 to 7.1 , we insalled c compilator with rpm files
Code:
 Server:root:/ > rpm -qa | grep gcc
 libgcc-4.8.5-1
 gcc-cpp-4.8.5-1
 gcc-4.8.5-1
 gcc-c++-4.8.5-1

but whene we proceed to compile a c programm we have this error
Code:
 exec(): 0509-036 Cannot load program /opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.8.5/cc1 because of the following errors:
 0509-022 Cannot load module /usr/lib/libmpfr.a(libmpfr.so.4).
 0509-150 Dependent module /usr/lib/libgcc_s.a(shr.o) could not be loaded.
 0509-103 The module has an invalid magic number.
 0509-022 Cannot load module cc1.
 0509-150 Dependent module /usr/lib/libmpfr.a(libmpfr.so.4) could not be loaded.
 0509-022 Cannot load module .

any help please

Last edited by vbe; 11-12-2018 at 08:33 AM..
# 3  
hey

i have installed the gmp-devel-6.1.2-1, mpfr-devel-3.1.2-3 but we have the same error
# 4  
Hi,

You may have to run the compile with an explicit "-L $LIBPATH" for each of the library files. To do that you'll need to know where they are on the system, you can find them and then add the $CFLAGS and $LDFLAGS.

But to check, the libraries are normally stored in;

Code:
/opt/freeware/lib/gcc/<architecture_AIX_level>/<GCC_Level>

Regards

Gull04
# 5  
hey Gull

i include the paramateres tha you tell me in our script to compile apache 2.4.34 , but it seems not working

here is the output error , in attach you find our script .sh


Code:
SERVER:root:/appli/deltasrv/tmp > sh install_compile_apache-64.sh
Debut compilation
make: 1254-002 Cannot find a rule to create target clean from dependencies.
Stop.
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... powerpc-ibm-aix7.1.0.0
checking host system type... powerpc-ibm-aix7.1.0.0
checking target system type... powerpc-ibm-aix7.1.0.0
configure:
configure: Configuring Apache Portable Runtime library...
configure:
configuring package in srclib/apr now
checking build system type... powerpc-ibm-aix7.1.0.0
checking host system type... powerpc-ibm-aix7.1.0.0
checking target system type... powerpc-ibm-aix7.1.0.0
Configuring APR library
Platform: powerpc-ibm-aix7.1.0.0
checking for working mkdir -p... yes
APR Version: 1.5.2
checking for chosen layout... apr
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/appli/deltasrv/tmp/httpd-2.4.25/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure failed for srclib/apr
make: make 1254-025 There must be an existing description file or specify a target.
Make apache abnormal completion
SERVER :root:/appli/deltasrv/tmp >

you find in attach the install_compile_apache-64.sh script

thanks

Moderator's Comments:
Mod Comment edit by bakunin: please use CODE-tags

Last edited by bakunin; 11-18-2018 at 02:43 PM..
# 6  
Hi,

Sorry to disappoint, but there isn't an attachment.

This seems to be revolving around the library files - are you sure that the library paths are all set up correctly and what does the "config.log" contain?

Have you done a "make clean" before running the compile?

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
# 7  
Quote:
Originally Posted by yahia
we insalled c compilator with rpm files
Code:
 Server:root:/ > rpm -qa | grep gcc
 libgcc-4.8.5-1
 gcc-cpp-4.8.5-1
 gcc-4.8.5-1
 gcc-c++-4.8.5-1

What was the source you got the rpms from? Basically there are two possible sources to get GNU-software compiled for AIX from: IBM and Michael Perzls site. One of the main differences is the location of the files and the libraries (/usr/.... vs. /opt/freeware/....). You can use any of these sources consistently but usually NOT together - mostly because of this difference. Either you use only the software from IBMs toolbox or you use only Perzls packages.

Personally, i'd prefer Michael Perzls software: it is very well packaged, up to date and overall i had less trouble with these than with IBMs rpm packages.

I hope this helps.

bakunin
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Gcc 4.5.8 on AIX 7.1 issue
yahia
after migrate our AIX server from 6.1 to 7.1 , we insalled c compilator with rpm files Server:root:/ > rpm -qa | grep gcc libgcc-4.8.5-1 gcc-cpp-4.8.5-1 gcc-4.8.5-1 gcc-c++-4.8.5-1 but whene we proceed to compile a c programm we have this error exec(): 0509-036 Cannot load...... Programming
2
Programming
Upgrading AIX 5.2 to AIX 6.1 - GCC compatibility
karthikc
Hi All, We are in the processing of upgrading our AIX server OS from 5.2.0.0 to 6.1. And we have a set of highly critical running C applications in AIX box. I have a question like whether this upgradation of OS will affect any C code compilation and C runtime enviornment... how does AIX 6.1...... AIX
1
AIX
Gcc for AIX
smartgupta
Hi, I am working with AIX5.3 and I downloaded the gcc-4.2.4.tar.bz2 from the site and when I am trying to un-tar it.It is throwing error-- Please help me to resolve it. Thanks in Advance..... AIX
6
AIX
GCC compiler issue on redhat4.5
nano2
Hi all, I am using gcc4.1.1 on redhat4.5 and when i rethrow an exception and I am catching it .. The application aborts and throws the following error message to stdout - the error that's been thrown is been caught but never gets that far as it falls over on throw statement Has anyone ever...... Linux
0
Linux
gcc with AIX 4.3
itik
hi, i need to install a source code from an open source on AIX 4.3. but first i need to install gcc. is gcc going to screw up AIX 4.3? the box is doing heavy legacy stuff with engine and db2 on it. and over 200 users. any comment would be appreciated. thanks... AIX
9
AIX