Error when building a docker container based on Alpine
JJ opened this issue · comments
This is the log, but the gist of it is probably here:
ar: creating libdyncallback_s.a
In file included from dynload.c:31:
dynload_unix.c: In function 'dlGetLibraryPath':
dynload_unix.c:110:27: error: 'RTLD_SELF' undeclared (first use in this function); did you mean 'RTLD_NEXT'?
110 | if(dlinfo(pLib ? pLib : RTLD_SELF, RTLD_DI_LINKMAP, &p) == 0)
| ^~~~~~~~~
| RTLD_NEXT
dynload_unix.c:110:27: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [<builtin>: dynload.o] Error 1
make[1]: *** [/root/.rakudobrew/versions/moar-2020.02/nqp/MoarVM/3rdparty/dyncall/./Makefile.generic:9: libdynload] Error 2
make: *** [Makefile:736: 3rdparty/dyncall/dyncall/libdyncall_s.a] Error 2
Command failed (status 512): perl Configure.pl --optimize --prefix=/root/raku-install --make-install
at /root/.rakudobrew/versions/moar-2020.02/nqp/3rdparty/nqp-configure/lib/NQP/Config.pm line 34.
NQP::Config::__ANON__("Command failed (status 512): perl Configure.pl --optimize --p"...) called at /root/.rakudobrew/versions/moar-2020.02/nqp/3rdparty/nqp-configure/lib/NQP/Config.pm line 1480
NQP::Config::system_or_die("perl", "Configure.pl", "--optimize", "--prefix=/root/raku-install", "--make-install") called at /root/.rakudobrew/versions/moar-2020.02/nqp/tools/lib/NQP/Config/NQP.pm line 423
NQP::Config::NQP::gen_moar(NQP::Config::NQP=HASH(0x559a52bce220)) called at /root/.rakudobrew/versions/moar-2020.02/nqp/tools/lib/NQP/Config/NQP.pm line 103
NQP::Config::NQP::configure_moar_backend(NQP::Config::NQP=HASH(0x559a52bce220)) called at /root/.rakudobrew/versions/moar-2020.02/nqp/3rdparty/nqp-configure/lib/NQP/Config.pm line 657
NQP::Config::configure_active_backends(NQP::Config::NQP=HASH(0x559a52bce220)) called at Configure.pl line 93
Command failed (status 512): perl Configure.pl --prefix=/root/raku-install --make-install --git-protocol=https --no-relocatable --no-ignore-errors --silent-build --no-force-rebuild --backends=moar --gen-moar
at /root/.rakudobrew/versions/moar-2020.02/3rdparty/nqp-configure/lib/NQP/Config.pm line 34.
NQP::Config::__ANON__("Command failed (status 512): perl Configure.pl --prefix=/root"...) called at /root/.rakudobrew/versions/moar-2020.02/3rdparty/nqp-configure/lib/NQP/Config.pm line 1480
NQP::Config::system_or_die("perl", "Configure.pl", "--prefix=/root/raku-install", "--make-install", "--git-protocol=https", "--no-relocatable", "--no-ignore-errors", "--silent-build", ...) called at /root/.rakudobrew/versions/moar-2020.02/tools/lib/NQP/Config/Rakudo.pm line 702
NQP::Config::Rakudo::gen_nqp(NQP::Config::Rakudo=HASH(0x55a70f340220)) called at Configure.pl line 101
Failed running perl Configure.pl --backends=moar --gen-moar --git-reference="/root/.rakudobrew/git_reference" --make-install --prefix=/root/raku-install at /root/.rakudobrew/bin/../lib/Rakudobrew/Build.pm line 46.
The command '/bin/sh -c mkdir /home/raku && apk update && apk upgrade && apk add --no-cache $PKGS $PKGS_TMP && git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew && eval "$(~/.rakudobrew/bin/rakudobrew init Sh)" && rakudobrew build moar $VER --configure-opts='--prefix=/root/raku-install' && rm -rf /root/.rakudobrew/versions/moar-$VER && rakudobrew register moar-$VER /root/raku-install && rakudobrew global moar-$VER && rakudobrew build-zef && zef install Linenoise App::Prove6 && apk del $PKGS_TMP && rm -rf /root/.rakudobrew /root/raku-install/zef' returned a non-zero code: 2
The command "docker build -t testlatest ." failed and exited with 2 during .
Could this be a solution?
Same error reported here
Closed due to MoarVM/MoarVM#1246