08-08-2013 12:39 AM - last edited on 08-08-2013 07:18 PM by maikoro
when am trying to install perl 5.18 on hpux 11iv3 am getting following problem ;
make is halting at ;
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+O2" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 922: "+Onolimit" is unsupported in the bundled compiler, ignored.
"dump.c", line 784: error #2065: expected a ";"
19 errors detected in the compilation of "dump.c".
*** Error exit code 2
Am using gcc installed form hpux site.
root #/opt/perl-5.18.0 >which gcc
root #/opt/perl-5.18.0 >gc -v
sh: gc: not found.
root #/opt/perl-5.18.0 >gcc -v
Using built-in specs.
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.3
root #/opt/perl-5.18.0 >swlist -l product|grep -i comp
ACXX C.06.26.EVAL HP C/aC++ Compiler
C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler
What am i missing here ?
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > languages. - Hp Forum moderator
08-08-2013 08:04 AM - edited 08-08-2013 08:05 AM
>(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
>What am I missing here?
You only have the bundled C compiler and you can't do development with it.
>"dump.c", line 784: error #2065: expected a ";"
What's on that line?
>ACXX C.06.26.EVAL HP C/aC++ Compiler
>C-ANSI-C C.06.26.EVAL HP C/aC++ Compiler
This Eval compiler has long expired. You should immediately remove it from your system.
>Am using gcc installed from hpux site.
Then you need to tell make to use gcc and not cc.
08-23-2013 02:39 PM
>>How do I tell make to use gcc
> There is probably a macro CC that you can set on the command line: make ... CC=gcc ...
If it's of any help, I used the following configuration for 64-bit Perl 5.16.3:
sh Configure -s \
-Duse64bitall -Dusethreads \
-Doptimize='-O2' -Duselargefiles -Duselongdouble \
-Dcf_email=root -Dperladmin=root \
There's probably a better way of doing this, but I typically copy the libgcc_s.so.0 into the application lib directory so that the gcc compiler bundle doesn't need to be loaded. Hence I modified the Makefile so:
To LDDLFLAGS I add: +b /usr/lib/hpux64:/opt/perl-5.16.3/lib
To CCDLFLAGS I add: -Wl,+b,/usr/lib/hpux64:/opt/per-5.16.3/lib
and I add -lgcc_s to the list of libraries to use during configuration. Finally I use a copy of Gnu make I have at /opt/gmake-3.82/bin/make to build it.
09-25-2013 11:38 PM
Is there a special reason to build 5.18.0? 5.18.1 was released on 2013-08-12.
I have a depot available for 5.16.3 *) which contains a threaded 64bitall longdouble perl built with gcc
As building all these depots take quite a bit of time, I cannot build all releases, but I plan to make 5.18.2 for all OS versions when it is released.
$ sh ./Configure -Dcc=gcc -Duse64bitall -Duselongdouble -Dusethreads -Duseithreads -des \
01-12-2014 11:47 AM