AIX 7.1 gcc 4.8.5 issue

Tags
7.1, advanced, aix, gcc, issue, post, question

 
Thread Tools Search this Thread
# 1  
Old 11-12-2018
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 09:33 AM..
# 2  
Old 11-12-2018
Hi,

You should not post the same question in multiple forums, please refer to the other post.

Regards

Gull04
# 3  
Old 11-12-2018
hey

i have installed the gmp-devel-6.1.2-1, mpfr-devel-3.1.2-3 but we have the same error
# 4  
Old 11-12-2018
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  
Old 11-13-2018
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 03:43 PM..
# 6  
Old 11-13-2018
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:
jim mcnamara (11-13-2018)
# 7  
Old 11-13-2018
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

|
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 Programming 2 11-12-2018 09:34 AM
AIX xlc compiler vs gcc spooksman AIX 0 01-28-2014 04:13 AM
Gcc compilation problem on AIX 6.1 tnjulius AIX 1 11-07-2013 04:39 PM
Upgrading AIX 5.2 to AIX 6.1 - GCC compatibility karthikc AIX 1 08-27-2009 04:11 AM
Gcc for AIX smartgupta AIX 6 02-05-2009 06:40 PM
problems with gcc on AIX 4.33 jhall AIX 2 10-29-2008 10:36 PM
Compile gcc on AIX 5.2 untamed AIX 7 01-31-2008 05:21 AM
GCC compiler issue on redhat4.5 nano2 Linux 0 01-16-2008 06:00 AM
gcc with AIX 4.3 itik AIX 9 12-10-2007 03:16 AM
AIX 5.3 gcc compiler cipher#1 AIX 1 07-30-2007 06:31 PM
AIX 5.3 gcc compiler cipher#1 UNIX for Dummies Questions & Answers 0 07-30-2007 10:50 AM
Issue with installing GCC on Darwin - Trying not to freak out Jeffish UNIX for Dummies Questions & Answers 2 06-28-2007 07:32 PM
GCC bootstrap failure on AIX 5.3 Duggerdee AIX 2 10-18-2005 07:38 PM
gcc compiler on AIX 5.2 SMISS AIX 2 07-29-2004 03:40 AM
getpri on gcc (AIX) Seeker Programming 1 12-24-2001 12:15 PM