http://www.perlmonks.org?node_id=973804


in reply to Compiling Module

... gcc: +DAportable: No such file or directory gcc: +DS2.0: No such file or directory gcc: +Z: No such file or directory gcc: +Onolimit: No such file or directory gcc: +Opromote_indirect_calls: No such file or directory gcc: +Z: No such file or directory cc1: unrecognized option `-fast' *** Error exit code 1

gcc doesn't understand the HP compiler specific options +DAportable, +DS2.0, +Z, etc.

In case you're wondering where they're coming from:  Perl remembers how exactly it's been built, to be able to produce compatible extensions; and your perl apparently hasn't been built with gcc.

So, either use HP's system compiler to build extension modules for your existing perl, or build your own perl with gcc, in which case you can then also use it to compile extension modules.

Replies are listed 'Best First'.
Re^2: Compiling Module
by pkhayeskp (Initiate) on Jun 01, 2012 at 15:46 UTC
    Thanks for the info.
      FWIW, FYI, an extra piece of advice, build an extra perl with gcc , don't overwrite the system perl, it will undoubtedly break some system utilities (more work for you)