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

Fix building multiple backends on moar-support branch #3273

Closed
p6rt opened this issue Nov 12, 2013 · 6 comments
Closed

Fix building multiple backends on moar-support branch #3273

p6rt opened this issue Nov 12, 2013 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 12, 2013

Migrated from rt.perl.org#120520 (status was 'resolved')

Searchable as RT120520$

@p6rt
Copy link
Author

p6rt commented Nov 12, 2013

From nick.glencross@gmail.com

Hi all,

This patch fixes a problem where RUN_PERL6 is clashing across build
variants.

It needs applying to the moar-support branch.

Without it you can get the following, mixing up java/moar.

The following step can take a long time, please be patient.
/home/nickg/src/rakudo/../moarvm/bin/moar
--libpath="/home/nickg/src/rakudo/../moarvm/languages/nqp/lib" perl6.moarvm
--setting=NULL --optimize=3 --target=jar --stagestats
--output=CORE.setting.jar gen/jvm/CORE.setting
Unhandled exception​: While looking for 'perl6.moarvm'​: no such file or
directory

Cheers,

Nick

@p6rt
Copy link
Author

p6rt commented Nov 12, 2013

From nick.glencross@gmail.com

0001-Fix-Configure-with-multiple-backends.patch
From 70b0d48c0d290442cb40f5b66b3565ca58314904 Mon Sep 17 00:00:00 2001
From: Nick Glencross <nick.glencross@gmail.com>
Date: Tue, 12 Nov 2013 15:25:08 +0000
Subject: [PATCH] This fixes a build problem when you run Configure with
 '-backends=moar,jvm'.

We make RUN_PERL6 unique to each build variant.
---
 tools/build/Makefile-JVM.in  | 4 ++--
 tools/build/Makefile-Moar.in | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/build/Makefile-JVM.in b/tools/build/Makefile-JVM.in
index 378a2c0..a452347 100644
--- a/tools/build/Makefile-JVM.in
+++ b/tools/build/Makefile-JVM.in
@@ -12,7 +12,7 @@ PERL6_LANG_DIR = $(PREFIX)/languages/perl6
 
 NQP_JARS = @nqp_jars@
 
-RUN_PERL6 = $(JAVA) -Xss1m -Xms500m -Xmx1600m -Xbootclasspath/a:.@cpsep@$(NQP_JARS)@cpsep@rakudo-runtime.jar@cpsep@perl6.jar -cp @nqp_classpath@ perl6
+J_RUN_PERL6 = $(JAVA) -Xss1m -Xms500m -Xmx1600m -Xbootclasspath/a:.@cpsep@$(NQP_JARS)@cpsep@rakudo-runtime.jar@cpsep@perl6.jar -cp @nqp_classpath@ perl6
 
 RUNTIME_JAVAS = src/vm/jvm/runtime/org/perl6/rakudo/*.java
 
@@ -248,7 +248,7 @@ $(PERL6_B_JAR): $(BOOTSTRAP_SOURCES) $(PERL6_M_JAR)
 $(SETTING_JAR): $(PERL6_JAR) $(PERL6_B_JAR) $(J_CORE_SOURCES)
 	$(PERL) $(J_GEN_CAT) $(J_CORE_SOURCES) > $(J_BUILD_DIR)/CORE.setting
 	@echo "The following step can take a long time, please be patient."
-	$(RUN_PERL6) --setting=NULL --optimize=3 --target=jar --stagestats --output=$(SETTING_JAR) $(J_BUILD_DIR)/CORE.setting
+	$(J_RUN_PERL6) --setting=NULL --optimize=3 --target=jar --stagestats --output=$(SETTING_JAR) $(J_BUILD_DIR)/CORE.setting
 
 $(RUNNER):
 	$(PERL) tools/build/create-jvm-runner.pl dev . . $(NQP_PREFIX) $(NQP_JARS)
diff --git a/tools/build/Makefile-Moar.in b/tools/build/Makefile-Moar.in
index 7da39a1..2983401 100644
--- a/tools/build/Makefile-Moar.in
+++ b/tools/build/Makefile-Moar.in
@@ -11,7 +11,7 @@ PREFIX = @prefix@
 MOAR   = $(PREFIX)@slash@bin@slash@moar@exe@
 M_NQP  = $(PREFIX)@slash@bin@slash@nqp-m@runner_suffix@
 
-RUN_PERL6 = $(MOAR) --libpath="$(PREFIX)@slash@languages@slash@nqp@slash@lib" perl6.moarvm
+M_RUN_PERL6 = $(MOAR) --libpath="$(PREFIX)@slash@languages@slash@nqp@slash@lib" perl6.moarvm
 
 M_RUNNER = perl6-m@runner_suffix@
 
@@ -244,7 +244,7 @@ $(PERL6_B_MOAR): $(BOOTSTRAP_SOURCES) $(PERL6_M_MOAR)
 $(SETTING_MOAR): $(PERL6_MOAR) $(PERL6_B_MOAR) $(M_CORE_SOURCES)
 	$(PERL) $(M_GEN_CAT) $(M_CORE_SOURCES) > src/gen/m-CORE.setting
 	@echo "The following step can take a long time, please be patient."
-	$(RUN_PERL6) --setting=NULL --optimize=3 --target=mbc --stagestats --output=$(SETTING_MOAR) src/gen/m-CORE.setting
+	$(M_RUN_PERL6) --setting=NULL --optimize=3 --target=mbc --stagestats --output=$(SETTING_MOAR) src/gen/m-CORE.setting
 
 $(M_RUNNER): tools/build/gen-moar-runner.pl $(PERL6_MOAR)
 	$(PERL) tools/build/gen-moar-runner.pl $(MOAR) .
-- 
1.8.3.2

@p6rt
Copy link
Author

p6rt commented Nov 12, 2013

From @FROGGS

Patch applied, thank you! :o)

rakudo/rakudo@f5a38f2e97

Am 12.11.2013 16​:35, schrieb Nick Glencross (via RT)​:

# New Ticket Created by Nick Glencross
# Please include the string​: [perl #​120520]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=120520 >

Hi all,

This patch fixes a problem where RUN_PERL6 is clashing across build
variants.

It needs applying to the moar-support branch.

Without it you can get the following, mixing up java/moar.

The following step can take a long time, please be patient.
/home/nickg/src/rakudo/../moarvm/bin/moar
--libpath="/home/nickg/src/rakudo/../moarvm/languages/nqp/lib" perl6.moarvm
--setting=NULL --optimize=3 --target=jar --stagestats
--output=CORE.setting.jar gen/jvm/CORE.setting
Unhandled exception​: While looking for 'perl6.moarvm'​: no such file or
directory

Cheers,

Nick

@p6rt
Copy link
Author

p6rt commented Nov 12, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 12, 2013

From @FROGGS

Patch applied​: rakudo/rakudo@f5a38f2e97

@p6rt
Copy link
Author

p6rt commented Nov 12, 2013

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 12, 2013
@p6rt p6rt added the patch label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant