Created
October 6, 2017 10:23
-
-
Save rba/58fa69c6ac59efac7131d1da15e6e749 to your computer and use it in GitHub Desktop.
notes-build-rakudo-perl6.txt 20171006-1224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgutil -y -i gar_dev mgar gcc4core gcc4g++ sudo | |
/opt/csw/bin/pkgutil -i gmake | |
/opt/csw/bin/pkgutil -i automake | |
/opt/csw/bin/pkgutil -i libtool | |
/opt/csw/bin/pkgutil -i gm4 | |
/opt/csw/bin/pkgutil -i autoconf | |
export PATH=/opt/csw/bin:/opt/csw/gnu:/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb | |
# libelf problem | |
libelf: | |
./configure --enable-compat | |
make | |
make instroot=/build/root install | |
rakudo: | |
#libuv problem: define SUNOS_NO_IFADDRS | |
export CFLAGS="-DSUNOS_NO_IFADDRS -I/build/root/usr/local/include" | |
export LDFLAGS=-L/build/root/usr/local/lib | |
#perl Configure.pl --backend=moar --gen-moar --prefix=/opt/rakudo | |
# build MoarVM | |
cd /build/rakudo/rakudo-star-2017.07/MoarVM | |
perl Configure.pl --prefix=/opt/rakudo | |
# libtommath problem with goto ERR: | |
vim Makefile | |
3rdparty/libtommath/libtommath.a: CFLAGS := $(filter-out -D__EXTENSIONS__=1,$(CFLAGS)) | |
3rdparty/libtommath/libtommath.a: $(TOM_OBJECTS) | |
# diff -c Makefile.bak Makefile | |
*** Makefile.bak 2017-10-06 01:14:39.305122048 +0200 | |
--- Makefile 2017-10-06 00:47:57.950216757 +0200 | |
*************** | |
*** 588,593 **** | |
--- 588,594 ---- | |
$(MSG) linking $@ | |
$(CMD)cd 3rdparty/libatomic_ops && CC='$(CC)' CFLAGS='$(CFLAGS)' ./configure && cd src && $(MAKE) && cd .. $(NOOUT) | |
+ 3rdparty/libtommath/libtommath.a: CFLAGS := $(filter-out -D__EXTENSIONS__=1,$(CFLAGS)) | |
3rdparty/libtommath/libtommath.a: $(TOM_OBJECTS) | |
$(MSG) linking $@ | |
$(CMD)$(AR) $(ARFLAGS) $@ 3rdparty/libtommath/*.o $(NOOUT) | |
# problem with memmem: | |
2# diff -c src/platform/memmem.h.bak src/platform/memmem.h | |
*** src/platform/memmem.h.bak 2017-10-06 01:08:06.597719095 +0200 | |
--- src/platform/memmem.h 2017-10-06 01:08:30.038161188 +0200 | |
*************** | |
*** 5,11 **** | |
* Windows, does not include any native memmem | |
* MacOS has a memmem but is slower and originates from FreeBSD dated to 2005 */ | |
! #if defined(_WIN32) || defined(__APPLE__) || defined(__Darwin__) | |
#include "../3rdparty/freebsd/memmem.c" | |
#else | |
/* On systems that use glibc, you must define _GNU_SOURCE before including string.h | |
--- 5,11 ---- | |
* Windows, does not include any native memmem | |
* MacOS has a memmem but is slower and originates from FreeBSD dated to 2005 */ | |
! #if defined(_WIN32) || defined(__APPLE__) || defined(__Darwin__) || defined(__sun) | |
#include "../3rdparty/freebsd/memmem.c" | |
#else | |
/* On systems that use glibc, you must define _GNU_SOURCE before including string.h | |
make | |
make install | |
# build nqp | |
cd ../nqp | |
perl Configure.pl --backend=moar --prefix=/opt/rakudo | |
make | |
make test | |
make install | |
# build rakudo | |
cd ../rakudo | |
# missing gmake problem: | |
ln -s /opt/csw/bin/gmake /usr/bin/gmake | |
perl Configure.pl --backend=moar --prefix=/opt/rakudo | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment