psiciliano has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I'm trying to compile a module that uses Module::Build::WithXSpp on Mac OSX Mavericks. More precisely Slic3r-XS.

When I ran perl Build.PL I get this error: clang: error: unknown argument: --no-merge-constants

In other modules, like cpan modules I successfully edit make file and run make by hand. But this Build.PL doesn't generates a Makefile.

Does anyone can tell me how can I remove that option from GCC default parameters on Mac OSX when I try to compile from perl? (Or how use Module::Build::WithXSpp to generate a Makefile to edit this by hand too ...)

Thanks for your help!

Replies are listed 'Best First'.
Re: Module::Build::WithXSpp and cc flags
by karlgoethebier (Abbot) on May 21, 2015 at 17:37 UTC

      Yeah, I've read those documents. But I'm trying to modifying Slic3r, then I need compile it.

      And I'm trying to compile it from source with CitrusPerl on Mac because compiling document doen't work any more since more than a year, and does not includes Mavericks OSX. One of advantages of CitrusPerl, that does it specialy appropiate to compile Slic3r on windows, is it has their own distribution of wxWidgets and Alien::wxWidgets. In mac osx is particulary usefull because last version of cpan wxWidgets does not compile.

      Thanks anyway

Re: Module::Build::WithXSpp and cc flags
by Anonymous Monk on May 21, 2015 at 00:26 UTC
    gcc isn't clang, and clang isn't gcc -- Build.PL is like 99.99% pure-perl