Ok, attached is a slightly better attempt, but it's still not working yet.

The trouble is this:
 pod/perltoc.pod: $(perltoc_pod_prereqs)  $(PERL_EXE) $(ext) pod/buildtoc
-    $(RUN_PERL) -f -Ilib pod/buildtoc --build-toc -q
+    $(MINIPERL) -f -Ilib pod/buildtoc --build-toc -q

In the previous perl version this would cause the native miniperl to run this on the build host, however this is no longer working with the new version, seems like some external dependencies (use Text::Wrap) -> re.pm? that miniperl does not have.

---------------------------------------
POSIX.c:(.text+0x48f8): warning: the use of `tmpnam' is dangerous, better use 
`mkstemp'
./miniperl -Ilib -f -Ilib pod/buildtoc --build-toc -q
Can't locate re.pm in @INC (@INC contains: lib lib .) at lib/Text/Wrap.pm line 
50.
BEGIN failed--compilation aborted at lib/Text/Wrap.pm line 50.
Compilation failed in require at pod/buildtoc line 11.
BEGIN failed--compilation aborted at pod/buildtoc line 11.
-----------------------------------------
 line 11 is:
use Text::Wrap;
line 50 of Wrap.pm is a "use re"
for some reason miniperl cant find the re lib.

I need some help in resolving this, for the moment I am going to roll back my Mips64 cross build to the previous version of perl.

Jan



On 5/16/2011 6:21 PM, Jan Rovins wrote:
The Cross install patch needs freshening for the new version.

The attached file should fix it, but I won't know for a few hours, since I accidentally blew away my whole build, and have to wait for everything else to build before I can get to perl again.

If anyone else is at a point in their cross build to quickly test this patch, please let me know it it's good.
otherwise I will confirm it tomorrow morning, when my build is done.

Jan

--- perl-5.14.0/Makefile.SH.orig        2011-05-17 11:20:19.000000000 -0400
+++ perl-5.14.0/Makefile.SH     2011-05-17 12:46:07.000000000 -0400
@@ -627,7 +627,7 @@
        $(RUN) ./generate_uudmap$(HOST_EXE_EXT) uudmap.h bitcount.h
 
 generate_uudmap$(HOST_EXE_EXT): generate_uudmap$(OBJ_EXT)
-       $(CC) -o generate_uudmap$(EXE_EXT) $(LDFLAGS) generate_uudmap$(OBJ_EXT) 
$(libs)
+       $(HOSTCC) -o generate_uudmap$(EXE_EXT) $(LDFLAGS) generate_uudmap.c 
$(libs)
 
 miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h
        $(CCCMD) $(PLDLFLAGS) $*.c
@@ -1009,8 +1009,22 @@
 # $(PERL_EXE) and ext because buildtoc uses Text::Wrap uses re
 # But also this ensures that all extensions are built before we try to scan
 # them, which picks up Devel::PPPort's documentation.
+
+# This no longer cross builds with MINIPERL, It's currently a blocking issue
+# There is a missing dependancy
+#POSIX.c:(.text+0x48f8): warning: the use of `tmpnam' is dangerous, better use 
`mkstemp'
+#./miniperl -Ilib -f -Ilib pod/buildtoc --build-toc -q
+#Can't locate re.pm in @INC (@INC contains: lib lib .) at lib/Text/Wrap.pm 
line 50.
+#BEGIN failed--compilation aborted at lib/Text/Wrap.pm line 50.
+#Compilation failed in require at pod/buildtoc line 11.
+#BEGIN failed--compilation aborted at pod/buildtoc line 11.
+
+# line 11 is:
+#use Text::Wrap;
+
+
 pod/perltoc.pod: $(perltoc_pod_prereqs)  $(PERL_EXE) $(ext) pod/buildtoc
-       $(RUN_PERL) -f -Ilib pod/buildtoc --build-toc -q
+       $(MINIPERL) -f -Ilib pod/buildtoc --build-toc -q
 
 pod/perlapi.pod: pod/perlintern.pod
 
@@ -1063,11 +1077,11 @@
 INSTALL_DEPENDENCE = all
 
 install.perl:  $(INSTALL_DEPENDENCE) installperl
-       $(RUN_PERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) 
$(STRIPFLAGS)
+       $(MINIPERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) 
$(STRIPFLAGS)
        -@test ! -s extras.lst || $(MAKE) extras.install
 
 install.man:   all installman
-       $(RUN_PERL) installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
+       #$(RUN_PERL) installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
 
 # XXX Experimental. Hardwired values, but useful for testing.
 # Eventually Configure could ask for some of these values.
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to