Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Compiling perl on Solaris 10...bread crumb trail anyone?

Reply
Thread Tools

Compiling perl on Solaris 10...bread crumb trail anyone?

 
 
Aftermath Fan
Guest
Posts: n/a
 
      07-27-2007
I need to compile perl on Solaris 10 (sparc v9 platform). Yes, I know
Solaris comes with a version of perl, but /usr/bin/perl on solaris 10
is (surprisingly) not compiled with full 64-bit flags:

use64bitint=define use64bitall=undef uselongdouble=undef

The specific limitation is that it can't address more than 4GB of
memory, which is symptomatic of a 32-bit binary. I would like to
address more.

Unfortunately, my attempts to compile perl on Solaris 10 (using the
gcc in /usr/sfw/bin) have all been met with:


Use which C compiler? [gcc -B/usr/ccs/bin/]
Assembler messages:
Error: invalid architecture -xarch=generic64
Uh-oh, the C compiler 'gcc -B/usr/ccs/bin/' doesn't seem to be
working.

NOTE: You are using GNU as(1). GNU as(1) might not build Perl. If
you
have trouble, you can use /usr/ccs/bin/as by including -B/usr/ccs/bin/
in your gcc -B/usr/ccs/bin/ command. (Note that the trailing "/" is
required.)

Assembler messages:
Error: invalid architecture -xarch=generic64
Uh-oh, the C compiler 'gcc -B/usr/ccs/bin/' doesn't seem to be
working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS
vendor,
or for a free C compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.



This when using:

sh Configure -de -Duse64bitall \
-Dprefix=/export/home/mylogin \
-Dcc='gcc -B/usr/ccs/bin/'

Same thing without the -B/usr/ccs/bin. Played around with the PATH
order of /usr/ccs/bin, /usr/sfw/bin, etc...to no avail.

I do not have root on this box. And no prospect of getting the Sun-
brand compiler purchased/loaded.

anyone have any bread crumb trail to follow?

Thanks,
-S.

 
Reply With Quote
 
 
 
 
Tony Curtis
Guest
Posts: n/a
 
      07-27-2007
Aftermath Fan wrote:
> I need to compile perl on Solaris 10 (sparc v9 platform). Yes, I know
> Solaris comes with a version of perl, but /usr/bin/perl on solaris 10
> is (surprisingly) not compiled with full 64-bit flags:
>
> use64bitint=define use64bitall=undef uselongdouble=undef
>
> The specific limitation is that it can't address more than 4GB of
> memory, which is symptomatic of a 32-bit binary. I would like to
> address more.
>
> Unfortunately, my attempts to compile perl on Solaris 10 (using the
> gcc in /usr/sfw/bin) have all been met with:
>
>
> Use which C compiler? [gcc -B/usr/ccs/bin/]
> Assembler messages:
> Error: invalid architecture -xarch=generic64
> Uh-oh, the C compiler 'gcc -B/usr/ccs/bin/' doesn't seem to be
> working.


That's a flag for the Studio compilers; gcc doesn't understand it. Why
not use Studio instead? More tuned...

http://developers.sun.com/sunstudio/downloads/

hth
t
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems while compiling perl on solaris 10 ashish Perl Misc 8 11-26-2006 02:23 PM
compiling perl 5.8.7 on Solaris 8 Kirt Loki Dankmyer Perl Misc 3 11-25-2005 10:28 AM
compiling Python 2.3.3 Solaris 9 x86 question Stefan Python 2 04-25-2004 06:05 AM
Problem with cc-gcc compiling mod_jk in Solaris 9 AleC Java 1 01-27-2004 10:03 PM
Errors while compiling SWIG wrappers on Solaris Michael Schmitt Python 3 09-10-2003 08:24 PM



Advertisments