#1883: 'make bootstrap-ops' target broken
---------------------+------------------------------------------------------
Reporter: jkeenan | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 2.11
Component: build | Version: 2.10.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Comment(by jkeenan):
Replying to [comment:1 plobsing]:
> This looks like a makefile dependancies issue.
runtime/parrot/library/Regex.pbc needs to depend on cclass.pasm (line
after the line referenced by imcc error).
>
Along those lines, I tried this patch, after which I did `make
realclean;perl Configure.pl;make bootstrap-ops`.
{{{
diff --git a/ext/nqp-rx/Rules.mak b/ext/nqp-rx/Rules.mak
index 236792c..73bdef9 100644
--- a/ext/nqp-rx/Rules.mak
+++ b/ext/nqp-rx/Rules.mak
@@ -2,16 +2,18 @@
NQP_STAGE0_DIR = ext/nqp-rx/src/stage0
-$(LIBRARY_DIR)/Regex.pbc: $(NQP_STAGE0_DIR)/Regex-s0.pir $(PARROT)
+CCLASS_PASM = runtime/parrot/include/cclass.pasm
+
+$(LIBRARY_DIR)/Regex.pbc: $(NQP_STAGE0_DIR)/Regex-s0.pir $(PARROT)
$(CCLASS_PASM)
$(PARROT) -o $@ $(NQP_STAGE0_DIR)/Regex-s0.pir
-$(LIBRARY_DIR)/HLL.pbc: $(NQP_STAGE0_DIR)/HLL-s0.pir $(PARROT)
+$(LIBRARY_DIR)/HLL.pbc: $(NQP_STAGE0_DIR)/HLL-s0.pir $(PARROT)
$(CCLASS_PASM)
$(PARROT) -o $@ $(NQP_STAGE0_DIR)/HLL-s0.pir
-$(LIBRARY_DIR)/P6Regex.pbc: $(NQP_STAGE0_DIR)/P6Regex-s0.pir $(PARROT)
+$(LIBRARY_DIR)/P6Regex.pbc: $(NQP_STAGE0_DIR)/P6Regex-s0.pir $(PARROT)
$(CCLASS_PASM)
$(PARROT) -o $@ $(NQP_STAGE0_DIR)/P6Regex-s0.pir
-$(LIBRARY_DIR)/nqp-rx.pbc: $(NQP_STAGE0_DIR)/NQP-s0.pir $(PARROT)
+$(LIBRARY_DIR)/nqp-rx.pbc: $(NQP_STAGE0_DIR)/NQP-s0.pir $(PARROT)
$(CCLASS_PASM)
$(PARROT) -o $@ $(NQP_STAGE0_DIR)/NQP-s0.pir
## eventually nqp should be able to generate .pbc files directly
}}}
But to little better result:
{{{
cc -o parrot \
src/main.o src/parrot_config.o \
-Wl,-rpath="/home/jimk/gitwork/parrot"/blib/lib
-L/home/jimk/gitwork/parrot/blib/lib -lparrot
-lpthread -lm -L/usr/lib -licuuc -licudata -lpthread -lm -lnsl -ldl -lm
-lcrypt -lutil -lpthread
-lrt -lgmp -lreadline -lffi -fstack-protector -L/usr/local/lib -Wl,-E
-Wl,-E
/usr/local/bin/perl tools/build/h2inc.pl include/parrot/cclass.h
runtime/parrot/include/cclass.pasm
./parrot -o runtime/parrot/library/Regex.pbc ext/nqp-
rx/src/stage0/Regex-s0.pir
./parrot -o runtime/parrot/library/HLL.pbc ext/nqp-
rx/src/stage0/HLL-s0.pir
error:imcc:No such file or directory
in file 'ext/nqp-rx/src/stage0/HLL-s0.pir' line 1963
make: *** [runtime/parrot/library/HLL.pbc] Error 1
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1883#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets