Hi,

first of all I want to thank the devs for updating libslang and slrn. I
was playing around with the newest version of libslang a few months ago,
but I never managed to make a port of it. However I ran into a problem
at that time that still prevails in the recently committed version, I
think.

Running the regress tests of libslang yields the following errors on
amd64:

Testing array functions ...Failed: maxabs: 9.0 != 8.0 [utf8=0]
./inc.sl:29:failed:Test Error
  Local variables for failed:
        String_Type s = "maxabs: 9.0 != 8.0"
./array.sl:644:test_eqs:Test Error
  Local variables for test_eqs:
        String_Type what = "maxabs"
        Double_Type a = 9.0
        Double_Type b = 8.0
./array.sl:670:test_min_maxabs:Test Error
  Local variables for test_min_maxabs:
        Array_Type a = Double_Type[9]
./array.sl:699:<top-level>:Test Error
Testing array functions [UTF-8 mode] ...Failed: maxabs: 9.0 != 8.0 [utf8=1]
./inc.sl:29:failed:Test Error
  Local variables for failed:
        String_Type s = "maxabs: 9.0 != 8.0"
./array.sl:644:test_eqs:Test Error
  Local variables for test_eqs:
        String_Type what = "maxabs"
        Double_Type a = 9.0
        Double_Type b = 8.0
./array.sl:670:test_min_maxabs:Test Error
  Local variables for test_min_maxabs:
        Array_Type a = Double_Type[9]
./array.sl:699:<top-level>:Test Error

Due to lack of hardware I couldn't test it on other platforms but upon
further investigation I've found out that this is probably a bug of the
gcc-3.4 on amd64 when optimization is enabled. I fear I cannot provide
more details, it has been a while since I looked into this and I don't
remember all that much :(

Could someone with some other platforms confirm that their regress tests
are working? I can get my tests to succeed with either using gcc-4.2 or
disabling optimization.

If I'm not mistaken in my assumptions I would propose the following
change:

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/libslang/Makefile,v
retrieving revision 1.46
diff -u Makefile
--- Makefile    13 Oct 2009 21:46:20 -0000      1.46
+++ Makefile    15 Oct 2009 16:45:19 -0000
@@ -28,6 +28,10 @@
 AUTOCONF_DIR=          ${WRKSRC}/autoconf
 MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/autoconf
 
+MODULES+=      gcc4
+MODGCC4_ARCHES=        amd64
+MODGCC4_LANGS= c
+
 REGRESS_TARGET=                runtests
 REGRESS_FLAGS=         TCAPLIB="-ltermlib"
 

Please CC me in your answers since I'm not subscribed to po...@.

-- 
Simon Nicolussi, <simon.nicolu...@student.uibk.ac.at>
http://homepage.uibk.ac.at/~csag9583/

Reply via email to