Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--toolchain=posix on Mac builds libmoar.so instead of libmoar.dylib #1702

Open
patrickbkr opened this issue May 3, 2022 · 0 comments
Open

Comments

@patrickbkr
Copy link
Member

Originally reported as Raku/App-Rakubrew#44.

This makes a build on MacOS with --configure-opts='--moar-option="--toolchain=posix"' fail with

/usr/local/Cellar/perl/5.34.0/bin/perl -MExtUtils::Command -e cp 3rdparty/dyncall/dyncallback/*.h "/Users/user/.rakubrew/versions/moar-blead/install/include/dyncall"
/usr/local/Cellar/perl/5.34.0/bin/perl -MExtUtils::Command -e mkpath "/Users/user/.rakubrew/versions/moar-blead/install/include/mimalloc"
/usr/local/Cellar/perl/5.34.0/bin/perl -MExtUtils::Command -e cp 3rdparty/mimalloc/include/*.h "/Users/user/.rakubrew/versions/moar-blead/install/include/mimalloc"
dyld[96191]: Library not loaded: libmoar.so
  Referenced from: /Users/user/.rakubrew/versions/moar-blead/install/bin/moar
  Reason: tried: 'libmoar.so' (no such file), '/usr/local/lib/libmoar.so' (no such file), '/usr/lib/libmoar.so' (no such file), '/Users/user/.rakubrew/versions/moar-blead/nqp/libmoar.so' (no such file), '/usr/local/lib/libmoar.so' (no such file), '/usr/lib/libmoar.so' (no such file)
Use of uninitialized value in quotemeta at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 130.
Use of uninitialized value in substitution (s///) at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 130.
Use of uninitialized value in substitution (s///) at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 130.
Use of uninitialized value in quotemeta at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 132.
Use of uninitialized value in concatenation (.) or string at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 138.
Use of uninitialized value in sprintf at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 165.
Redundant argument in sprintf at /Users/user/.rakubrew/versions/moar-blead/nqp/tools/lib/NQP/Config/NQP.pm line 165.
Use of uninitialized value $var_text in split at /Users/user/.rakubrew/versions/moar-blead/nqp/3rdparty/nqp-configure/lib/NQP/Macros.pm line 604.
Cleaning up ...
+++ Preparing MOAR build directories
++++++ Building MOAR backend
+++ Generating  gen/moar/stage1/nqpmo.nqp
+++ Compiling   gen/moar/stage1/nqpmo.moarvm
dyld[96203]: Library not loaded: libmoar.so
  Referenced from: /Users/user/.rakubrew/versions/moar-blead/install/bin/moar
  Reason: tried: 'libmoar.so' (no such file), '/usr/local/lib/libmoar.so' (no such file), '/usr/lib/libmoar.so' (no such file), '/Users/user/.rakubrew/versions/moar-blead/nqp/libmoar.so' (no such file), '/usr/local/lib/libmoar.so' (no such file), '/usr/lib/libmoar.so' (no such file)
make: *** [Makefile:363: gen/moar/stage1/nqpmo.moarvm] Abort trap: 6
Command failed (status 512): make
 at /Users/user/.rakubrew/versions/moar-blead/nqp/3rdparty/nqp-configure/lib/NQP/Config.pm line 34.
        NQP::Config::__ANON__("Command failed (status 512): make\x{a}") called at /Users/user/.rakubrew/versions/moar-blead/nqp/3rdparty/nqp-configure/lib/NQP/Config.pm line 1502
        NQP::Config::system_or_die("make") called at Configure.pl line 109
Command failed (status 512): /usr/local/Cellar/perl/5.34.0/bin/perl Configure.pl --prefix=/Users/user/.rakubrew/versions/moar-blead/install --make-install --git-protocol=https --no-relocatable --no-ignore-errors --silent-build --no-force-rebuild --git-cache-dir=/Users/user/.rakubrew/git_reference --backends=moar --gen-moar=master --moar-option=--toolchain=posix
 at /Users/user/.rakubrew/versions/moar-blead/3rdparty/nqp-configure/lib/NQP/Config.pm line 34.
        NQP::Config::__ANON__("Command failed (status 512): /usr/local/Cellar/perl/5.34.0/bi"...) called at /Users/user/.rakubrew/versions/moar-blead/3rdparty/nqp-configure/lib/NQP/Config.pm line 1502
        NQP::Config::system_or_die("/usr/local/Cellar/perl/5.34.0/bin/perl", "Configure.pl", "--prefix=/Users/user/.rakubrew/versions/moar-blead/install", "--make-install", "--git-protocol=https", "--no-relocatable", "--no-ignore-errors", "--silent-build", ...) called at /Users/user/.rakubrew/versions/moar-blead/tools/lib/NQP/Config/Rakudo.pm line 724
        NQP::Config::Rakudo::gen_nqp(NQP::Config::Rakudo=HASH(0x7fe99d80c5c0)) called at Configure.pl line 101
Failed running /usr/local/Cellar/perl/5.34.0/bin/perl Configure.pl --backends=moar --gen-moar=master --gen-nqp=master --make-install --moar-option="--toolchain=posix" --git-cache-dir="/Users/user/.rakubrew/git_reference" at /usr/local/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/App/Rakubrew/Build.pm line 113.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant