Unix Technical Forum

GCC 4.0.0 and AIX 5.2

This is a discussion on GCC 4.0.0 and AIX 5.2 within the AIX Operating System forums, part of the Unix Operating Systems category; --> Has anyone compiled this on the AIX platform? I'm running into the problem where GCC is asking for the ...


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, 07:37 AM
Eigenvector
 
Posts: n/a
Default GCC 4.0.0 and AIX 5.2

Has anyone compiled this on the AIX platform? I'm running into the problem
where GCC is asking for the libm.a file and of course it doesn't exist.

How do I get around this, it would seem like AIX isn't shipped with a math
library - but GCC seems to need it to compile.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:37 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

"Eigenvector" <m44_master@yahoo.com> writes:

> Has anyone compiled this on the AIX platform? I'm running into the problem
> where GCC is asking for the libm.a file and of course it doesn't exist.


I don't know any AIX distribution that *doesn't* have /usr/lib/libm.a
Are you sure it doesn't exist on yours?

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:37 AM
Andy Wallis
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

On 2005-06-04, Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
> "Eigenvector" <m44_master@yahoo.com> writes:
>> where GCC is asking for the libm.a file and of course it doesn't exist.

> I don't know any AIX distribution that *doesn't* have /usr/lib/libm.a

Is bos.adt.libm installed on your machine? libm does not get installed
in the standard AIX BOS installation.
-Andy


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:37 AM
Martin Etteldorf
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

Eigenvector <m44_master@yahoo.com> wrote:
> Has anyone compiled this on the AIX platform?


Yes.

> I'm running into the problem
> where GCC is asking for the libm.a file and of course it doesn't exist.


Why "of course"? AIX may be a bit quirky, but if you're missing libm,
it's not AIX's fault, but yours.

> How do I get around this,


Install the appropriate BOS package.

> it would seem like AIX isn't shipped with a math library


Nonsense:
$ which_fileset /usr/lib/libm.a
/usr/lib/libm.a -> /usr/ccs/lib/libm.a bos.adt.libm 5.1.0.0


Martin.
--
Remember to always speak softly.
But carry a big stick!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 07:37 AM
Eigenvector
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2


"Andy Wallis" <rawallis@panix.com> wrote in message
news:slrnda4gjl.oaj.rawallis@panix2.panix.com...
> On 2005-06-04, Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
> > "Eigenvector" <m44_master@yahoo.com> writes:
> >> where GCC is asking for the libm.a file and of course it doesn't exist.

> > I don't know any AIX distribution that *doesn't* have /usr/lib/libm.a

> Is bos.adt.libm installed on your machine? libm does not get installed
> in the standard AIX BOS installation.
> -Andy
>

Where is that BOS located? Is it on the install CD, which one if you know
please.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 07:37 AM
Michael Kraemer
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

In article <kHEoe.11$S37.3793@news.uswest.net>, "Eigenvector" <m44_master@yahoo.com> writes:
>
> "Andy Wallis" <rawallis@panix.com> wrote in message
> news:slrnda4gjl.oaj.rawallis@panix2.panix.com...
> > On 2005-06-04, Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
> > > "Eigenvector" <m44_master@yahoo.com> writes:
> > >> where GCC is asking for the libm.a file and of course it doesn't exist.
> > > I don't know any AIX distribution that *doesn't* have /usr/lib/libm.a

> > Is bos.adt.libm installed on your machine? libm does not get installed
> > in the standard AIX BOS installation.
> > -Andy
> >

> Where is that BOS located? Is it on the install CD, which one if you know
> please.
>
>


Insert the 1st CD of your distribution,
use the smitty-Installation menus (the uppermost),
at
"SOFTWARE to install"
press F4 to get a list of all SW on the CD set,
use F7 to select the bos.adt* stuff and install.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 07:37 AM
vlad.zam@gmail.com
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

installp -acgNYXd /dev/cd0 bos.adt.libm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-05-2008, 07:37 AM
James T. Sprinkle
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

It doesn't have it if you don't install bos.adt.libm

JaYmZ
"Paul Pluzhnikov" <ppluzhnikov-nsp@charter.net> wrote in message
news:m3psv1sn2p.fsf@amoeba.parasoft.com...
> "Eigenvector" <m44_master@yahoo.com> writes:
>
> > Has anyone compiled this on the AIX platform? I'm running into the

problem
> > where GCC is asking for the libm.a file and of course it doesn't exist.

>
> I don't know any AIX distribution that *doesn't* have /usr/lib/libm.a
> Are you sure it doesn't exist on yours?
>
> Cheers,
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-05-2008, 07:37 AM
Eigenvector
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2


"Michael Kraemer" <m.kraemer@gsi.de> wrote in message
news:d81d4t$v3e$1@lnx107.hrz.tu-darmstadt.de...
> In article <kHEoe.11$S37.3793@news.uswest.net>, "Eigenvector"

<m44_master@yahoo.com> writes:
> >
> > "Andy Wallis" <rawallis@panix.com> wrote in message
> > news:slrnda4gjl.oaj.rawallis@panix2.panix.com...
> > > On 2005-06-04, Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> wrote:
> > > > "Eigenvector" <m44_master@yahoo.com> writes:
> > > >> where GCC is asking for the libm.a file and of course it doesn't

exist.
> > > > I don't know any AIX distribution that *doesn't* have

/usr/lib/libm.a
> > > Is bos.adt.libm installed on your machine? libm does not get installed
> > > in the standard AIX BOS installation.
> > > -Andy
> > >

> > Where is that BOS located? Is it on the install CD, which one if you

know
> > please.
> >
> >

>
> Insert the 1st CD of your distribution,
> use the smitty-Installation menus (the uppermost),
> at
> "SOFTWARE to install"
> press F4 to get a list of all SW on the CD set,
> use F7 to select the bos.adt* stuff and install.



I appreciate the pointers here, and I realize that this question has come up
multiple times.

I'd like to hear the back story if you all know it - why is this not
installed by default? Its on the CD, and clearly something important for
the functioning of the system, so why not put it on with the rest of the OS
libraries?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-05-2008, 07:38 AM
Michael Kraemer
 
Posts: n/a
Default Re: GCC 4.0.0 and AIX 5.2

In article <Tn5pe.35$ce4.3180@news.uswest.net>, "Eigenvector" <m44_master@yahoo.com> writes:
>
> I appreciate the pointers here, and I realize that this question has come up
> multiple times.
>
> I'd like to hear the back story if you all know it - why is this not
> installed by default? Its on the CD, and clearly something important for
> the functioning of the system, so why not put it on with the rest of the OS
> libraries?
>


By default only a very minimal system is unstalled.
libm.a contains math stuff like sin(), cos(), sqrt()
and maybe IBM thinks that this isn't really necessary for
a minimal functioning system.
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 07:16 AM.


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