annotate Raku/build.md @ 2:b6c284fd5ae4

backup 2020-12-16
author autobackup
date Wed, 16 Dec 2020 15:11:16 +0900
parents e12992dca4a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # macos 上で Raku を build する
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3  git clone https://github.com/rakudo/rakudo.git
2
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
4
0
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 ## 以下を実行する
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
2
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
7 ```
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
8 export RB=/Users/one/src/Perl6/rakudo_build
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
9 export DYLD_FALLBACK_LIBRARY_PATH=$RB/lib
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
10   perl Configure.pl --prefix=$RB --gen-moar --gen-nqp --backends=moar --moar-option='--compiler=clang'
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
11 ```
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
12
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
13 失敗する
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
14
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
15 ## nqp/MoarVM/Configure.pl* を修正する
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
16
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
17 ```
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
18 diff --git a/Configure.pl b/Configure.pl
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
19 index 69351ff52..13d9b30c8 100755
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
20 --- a/Configure.pl
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
21 +++ b/Configure.pl
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
22 @@ -201,14 +201,14 @@ if ($^O eq 'darwin') {
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
23 if ($gnu_toolchain && $gnu_count != scalar @check_tools) {
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
24 print "\nNot all tools in the toolchain are GNU. Please correct this and retry.\n"
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
25 . "See README.markdown for more details.\n\n";
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
26 - exit -1;
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
27 + # exit -1;
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
28 }
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
29
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
30 ## Otherwise, make sure that none of them are GNU
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
31 elsif (!$gnu_toolchain && $gnu_count != 0) {
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
32 print "\nGNU tools detected, despite this not being a GNU-oriented build.\n"
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
33 ." Please correct this and retry. See README.markdown for more details.\n\n";
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
34 - exit -1;
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
35 + # exit -1;
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
36 }
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
37 }
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
38 ```
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
39
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
40 もう一度、
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
41
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
42 ```
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
43   perl Configure.pl --prefix=$RB --gen-moar --gen-nqp --backends=moar --moar-option='--compiler=clang'
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
44 ```
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
45
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
46 する。
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
47
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
48
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
49 ## おまけ
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
50
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
51 moar を --moar-option="-static" にしても、nqp-m とかが同じ問題を言ってくる。LD_LIBRARY_PATH ではダメらしい。
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
52
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
53 https://stackoverflow.com/questions/3146274/is-it-ok-to-use-dyld-library-path-on-mac-os-x-and-whats-the-dynamic-library-s