App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

Perlbrew won’t build perl on macOS

Open FGasper opened this issue 3 years ago • 4 comments

I keep getting:

	    opmini.o perlmini.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o  miniperlmain.o  -lpthread -ldl -lm -lutil -lc 
Undefined symbols for architecture x86_64:
  "_S_env_alloc", referenced from:
      _Perl_my_setenv in util.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/buildcustomize.pl] Error 1
##### Brew Failed #####

… when I try to build 5.30.2 or 5.32.0.

Having found: https://lists.archive.carbon60.com/perl/porters/349179

… I’ve tried:

  • ~/perl5/perlbrew/bin/perlbrew install -Dcccdlflags='-fPIC -DPERL_USE_SAFE_PUTENV' --debug --notest --as=perl-5.30.2-debug 5.30.2
  • ~/perl5/perlbrew/bin/perlbrew install -Dcccdlflags='-fPIC -DPERL_USE_SAFE_PUTENV' --debug --notest --as=perl-5.32.0-debug 5.32.0

… but to no avail.

FGasper avatar Oct 13 '20 12:10 FGasper

This appears to be working: ~/perl5/perlbrew/bin/perlbrew install -Dccflags='-DPERL_USE_SAFE_PUTENV' --notest --as=perl-5.32.0-debug 5.32.0

FGasper avatar Oct 13 '20 12:10 FGasper

Thanks for sharing -- btw on what version of macOS is this happenning ?

gugod avatar Oct 18 '20 02:10 gugod

10.14

On Oct 17, 2020, at 22:38, Kang-min Liu [email protected] wrote:

 Thanks for sharing -- btw on what version of macOS is this happenning ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

FGasper avatar Oct 18 '20 03:10 FGasper

Hi. Small bump to this just to say that it is still happening, for me, on macOS 10.15.7. I tried all versions above 5.30.3.

On the bright side, the suggestion mentioned above has worked for me as well.

smpb avatar May 21 '21 16:05 smpb