Multiple failures with 0.9.1

Reini Urban rurban at x-ray.at
Wed Feb 18 07:37:41 UTC 2009


2009/2/18 Andy Dougherty <doughera at lafayette.edu>:
> I'm afraid I have to report failures -- some minor, some major -- with the
> released version of 0.9.1.  I'll open individual tickets as necessary
> tomorrow afternoon as I get the time, but here's a heads up in the
> meantime:

Many thanks for testing!

> Linux/x86/gcc-4.1.2:
>
> Failed Test            Stat Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------
> t/native_pbc/integer.t    3   768     5    3  60.00%  1-3
> t/native_pbc/number.t     3   768     5    3  60.00%  1-3
> 10 tests and 597 subtests skipped.
> Failed 2/392 test scripts, 99.49% okay. 6/11690 subtests failed, 99.95% okay.

Those are expected on 64-bit reading 32-bit pbcs. Sorry, will mark as TODO
or better find the fix in the next month.

> Solaris/SPARC/Sun cc:
>
> Fails compiling because
>    1.  include/parrot/packfile.h and src/packfile/pf_items.c have DOS
>    line-endings, which yield the following sorts of errors:
>
>    "./include/parrot/packfile.h", line 14: warning: invalid white space character in directive

This must have happened when kj added those two files on windows.
I detected a Solaris/SPARC error by looking at the source (forgot two
other converters)
and added a quickfix for you.
Unfortunately I cannot test it there.

>    2.  Even manually fixing those, it fails to link:
>
> CC -o miniparrot src/main.o src/null_config.o \
> -R/net/kepler/export/home/doughera/src/parrot/parrot-0.9.1/blib/lib -L/net/kepler/export/home/doughera/src/parrot/parrot-0.9.1/blib/lib -lparrot  -lsocket -lnsl -ldl -lm -lpthread -lrt -lintl -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/SC4.2/lib -L/usr/local/lib -xlibmieee
> Undefined                       first referenced
>  symbol                             in file
> cvt_num12_num8_le                   /net/kepler/export/home/doughera/src/parrot/parrot-0.9.1/blib/lib/libparrot.so

Oops, my error. I mixed up BE with LE.
It seems to be that you are the only one who is using 64bit big-endian.
I wish I could add a virtualization which crosses ptrsize and endianness.
(darwin/PPC and Sparc). Maybe inside one of my vmware images.
Is there nothing for Solaris/x86 to virtualize a Solaris/Sparc?

Please use this patch, applied as r36854.

Index: src/packfile/pf_items.c
===================================================================
--- src/packfile/pf_items.c     (revision 36853)
+++ src/packfile/pf_items.c     (working copy)
@@ -651,7 +652,7 @@

 */

-#if !PARROT_BIGENDIAN
+#if PARROT_BIGENDIAN
 static void
 cvt_num12_num8_le(ARGOUT(unsigned char *dest), ARGIN(unsigned char *src))
 {


> ld: fatal: Symbol referencing errors. No output written to miniparrot
> *** Error code 1
> make: Fatal error: Command failed for target `miniparrot'
>
> Solaris/SPARC/gcc:
>
>    1.  Fails due to -rpath error in hints file, see TT #317.

ld: fatal: option -dn and -P are incompatible
Sorry, I forgot to check this.

But does replacing -Wl,-rpath= with a plain -R really fix the -dn <=>
-P conflict?

>    2.  Even if that were fixed, I suspect it would fail due to the same
>        linking error as cc, but I haven't tested that yet.

-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/


More information about the parrot-dev mailing list