Unix Technical Forum

Compilation Problems under AIX5.2 and gcc

This is a discussion on Compilation Problems under AIX5.2 and gcc within the AIX Operating System forums, part of the Unix Operating Systems category; --> Can anyone help ? $ gcc -v Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs gcc version 2.95.3 20010315 (release) store_client.c:355: Could not ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:55 AM
William R. Mattil
 
Posts: n/a
Default Compilation Problems under AIX5.2 and gcc

Can anyone help ?



$ gcc -v
Reading specs from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs
gcc version 2.95.3 20010315 (release)




store_client.c:355: Could not find a spill register
(insn 174 199 176 (set (regI 7 r7)
(plusI (regI 125)
(regI 6 r6))) 311 {*adddi3_noppc64} (nil)
(nil))
make: 1254-004 The error code from the last command is 1.


Also the latest Apache fails compilation as well with errors looking
like a math library problem ?

Regards

Bill
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:55 AM
William R. Mattil
 
Posts: n/a
Default Re: Compilation Problems under AIX5.2 and gcc

William R. Mattil wrote:
> Can anyone help ?
>
>
>
> $ gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
>
>



Argh..... hit send too soon - Sorry.

Trying to make squid (any recent version) results in:

>
>
> store_client.c:355: Could not find a spill register
> (insn 174 199 176 (set (regI 7 r7)
> (plusI (regI 125)
> (regI 6 r6))) 311 {*adddi3_noppc64} (nil)
> (nil))
> make: 1254-004 The error code from the last command is 1.
>
>
> Also the latest Apache fails compilation as well with errors looking
> like a math library problem ?
>
> Regards
>
> Bill

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:55 AM
Frank Fegert
 
Posts: n/a
Default Re: Compilation Problems under AIX5.2 and gcc

William R. Mattil wrote:
> William R. Mattil wrote:
>>
>> $ gcc -v
>> Reading specs from
>> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs
>> gcc version 2.95.3 20010315 (release)
>>
>> [...]
>>
>> Also the latest Apache fails compilation as well with errors looking
>> like a math library problem ?


Maybe. But your gcc is stone-old. Try upgrading gcc and your build
tools first! See:
http://www.google.de/search?hl=de&q=...i ll+register

Regards,

Frank
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 11:55 AM
William R. Mattil
 
Posts: n/a
Default Re: Compilation Problems under AIX5.2 and gcc

Frank Fegert wrote:
> William R. Mattil wrote:
>> William R. Mattil wrote:
>>> $ gcc -v
>>> Reading specs from
>>> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs
>>> gcc version 2.95.3 20010315 (release)
>>>
>>> [...]
>>>
>>> Also the latest Apache fails compilation as well with errors looking
>>> like a math library problem ?

>
> Maybe. But your gcc is stone-old. Try upgrading gcc and your build
> tools first! See:
> http://www.google.de/search?hl=de&q=...i ll+register
>
>


Hi Frank,

I actually did grab the latest gcc offered as a binary (AIX) and still
received the exact same error message. It does appear to be a compiler
problem. Apache, perl, and squid all fail compilation. Under AIX 4.21
and AIX4.3.3 I was able to get these built.

Regards

Bill
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 11:55 AM
Jozek
 
Posts: n/a
Default Re: Compilation Problems under AIX5.2 and gcc

William R. Mattil wrote:
> Can anyone help ?
>
>
>
> $ gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
>
>
>
>
> store_client.c:355: Could not find a spill register
> (insn 174 199 176 (set (regI 7 r7)
> (plusI (regI 125)
> (regI 6 r6))) 311 {*adddi3_noppc64} (nil)
> (nil))
> make: 1254-004 The error code from the last command is 1.
>
>
> Also the latest Apache fails compilation as well with errors looking
> like a math library problem ?
>
> Regards
>
> Bill


Is your gcc built for 5L and modern processor family?
While most software is binary compatible with newer AIX/Power versions
if compiled correctly, I would expect a compiler to actually make use
of unique architecture or OS features, and as such be more picky about
running on newer systems. Looks like gcc expects a register when it's
not there, which would suggest that your version expects a different
underlying CPU architecture.
Jozek

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 11:55 AM
Ian Northeast
 
Posts: n/a
Default Re: Compilation Problems under AIX5.2 and gcc

On Wed, 06 Dec 2006 12:54:50 +0000, William R. Mattil wrote:

> Frank Fegert wrote:
>> William R. Mattil wrote:
>>> William R. Mattil wrote:
>>>> $ gcc -v
>>>> Reading specs from
>>>> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/specs gcc version
>>>> 2.95.3 20010315 (release)
>>>>
>>>> [...]
>>>>
>>>> Also the latest Apache fails compilation as well with errors looking
>>>> like a math library problem ?

>>
>> Maybe. But your gcc is stone-old. Try upgrading gcc and your build tools
>> first! See:
>> http://www.google.de/search?hl=de&q=...i ll+register
>>
>>
>>

> Hi Frank,
>
> I actually did grab the latest gcc offered as a binary (AIX) and still
> received the exact same error message. It does appear to be a compiler
> problem. Apache, perl, and squid all fail compilation. Under AIX 4.21 and
> AIX4.3.3 I was able to get these built.


Did you get the version specifically for 5.2? IBM offer different builds
of gcc for 5.1, 5.2 and 5.3 and I assume there's a reason for this.

http://www-03.ibm.com/servers/aix/pr.../download.html

Regards, Ian
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:54 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com