Re: testsuite broken

2016-12-01 Thread Ben Gamari
Simon Peyton Jones via ghc-devs  writes:

> Yikes.  I can’t run the testsuite on Linux (debian ? I think…).  See below.
> I installed python3 by saying
> apt-get install python3
> And indeed
>
> python3 --version
>
> Python 3.2.3

For the record I've opened #12909 to track this. There is a fix in
D2778 which I'll merge shortly.

Cheers,

- Ben



signature.asc
Description: PGP signature
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


RE: testsuite broken

2016-12-01 Thread Simon Peyton Jones via ghc-devs
Ben is on it too: #12909

From: Phyx [mailto:loneti...@gmail.com]
Sent: 01 December 2016 15:49
To: Simon Peyton Jones <simo...@microsoft.com>; ghc-devs@haskell.org
Subject: Re: testsuite broken


Bah,  String handling in python is a complete mess.

In any case,  we dropped support for 2 so we can remove the u prefixes. It 
seems that the Unicode syntax in python 3 was dropped in python 3.0 and 
reintroduced on 3.3. We were all using 3.5 to test.

To get you going again quickly,  You can either revert the commit that made 
python 3 the default and use python 2, or open the python files runtests.py 
testlib.py and testutil.py and do a global search and replace for u' and drop 
the u.

I will fix it properly later tonight.

On Thu, 1 Dec 2016, 15:27 Simon Peyton Jones via ghc-devs, 
<ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>> wrote:
Yikes.  I can’t run the testsuite on Linux (debian ? I think…).  See below.
I installed python3 by saying
apt-get install python3
And indeed

python3 --version

Python 3.2.3
This is bad.  Can anyone help?

Simon


PYTHON="python3" "python3" ../../driver/runtests.py  -e 
ghc_compiler_always_flags="'-dcore-lint -dcmm-lint -no-user-package-db -rtsopts 
 -fno-warn-missed-specialisations -fshow-warning-groups -dno-debug-output'" -e 
config.compiler_debugged=True -e ghc_with_native_codegen=1 -e 
config.have_vanilla=True -e config.have_dynamic=True -e 
config.have_profiling=False -e ghc_with_threaded_rts=1 -e 
ghc_with_dynamic_rts=1 -e config.have_interp=False -e 
config.unregisterised=False -e config.ghc_dynamic_by_default=False -e 
config.ghc_dynamic=False -e ghc_with_smp=1 -e ghc_with_llvm=0 -e windows=False 
-e darwin=False -e config.in_tree_compiler=True --threads=33 -e 
config.cleanup=True -e config.local=False --rootdir=. 
--configfile=../../config/ghc -e 'config.confdir="../../config"' -e 
'config.platform="x86_64-unknown-linux"' -e 'config.os="linux"' -e 
'config.arch="x86_64"' -e 'config.wordsize="64"' -e 'config.timeout=int() or 
config.timeout' -e 'config.exeext=""' -e 
'config.top="/5playpen/simonpj/HEAD-4/testsuite"' --config 
'compiler="/5playpen/simonpj/HEAD-4/inplace/test   spaces/ghc-stage1"' --config 
'ghc_pkg="/5playpen/simonpj/HEAD-4/inplace/test   spaces/ghc-pkg"' --config 
'haddock="/5playpen/simonpj/HEAD-4/inplace/test   spaces/haddock"' --config 
'hp2ps="/5playpen/simonpj/HEAD-4/inplace/test   spaces/hp2ps"' --config 
'hpc="/5playpen/simonpj/HEAD-4/inplace/test   spaces/hpc"' --config 'gs="gs"' 
--config 'timeout_prog="../../timeout/install-inplace/bin/timeout"' -e 
"config.stage=1" --summary-file "../../../testsuite_summary_stage1.txt" 
--no-print-summary 1  \

  \

  \

  \

  \

  \

  -e config.speed="2" \



Traceback (most recent call last):

  File "../../driver/runtests.py", line 210, in 

from testlib import *

  File "/home/simonpj/code/HEAD-4/testsuite/driver/testlib.py", line 1286

f.write(u':set prog ' + name + u'\n')

^

SyntaxError: invalid syntax
___
ghc-devs mailing list
ghc-devs@haskell.org<mailto:ghc-devs@haskell.org>
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs=02%7C01%7Csimonpj%40microsoft.com%7Cb7abd8b57b0449b88a8908d41a01a5f4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636162041786153686=oG%2BZcixivTE4TKYefyD3wmtpSXaRd2oGTHzTjpsJ3GE%3D=0>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: testsuite broken

2016-12-01 Thread Phyx
Bah,  String handling in python is a complete mess.

In any case,  we dropped support for 2 so we can remove the u prefixes. It
seems that the Unicode syntax in python 3 was dropped in python 3.0 and
reintroduced on 3.3. We were all using 3.5 to test.

To get you going again quickly,  You can either revert the commit that made
python 3 the default and use python 2, or open the python files runtests.py
testlib.py and testutil.py and do a global search and replace for u' and
drop the u.

I will fix it properly later tonight.

On Thu, 1 Dec 2016, 15:27 Simon Peyton Jones via ghc-devs, <
ghc-devs@haskell.org> wrote:

> Yikes.  I can’t run the testsuite on Linux (debian ? I think…).  See below.
>
> I installed python3 by saying
>
> apt-get install python3
>
> And indeed
>
> python3 --version
>
> Python 3.2.3
>
> This is bad.  Can anyone help?
>
>
>
> Simon
>
>
>
> PYTHON="python3" "python3" ../../driver/runtests.py  -e
> ghc_compiler_always_flags="'-dcore-lint -dcmm-lint -no-user-package-db
> -rtsopts  -fno-warn-missed-specialisations -fshow-warning-groups
> -dno-debug-output'" -e config.compiler_debugged=True -e
> ghc_with_native_codegen=1 -e config.have_vanilla=True -e
> config.have_dynamic=True -e config.have_profiling=False -e
> ghc_with_threaded_rts=1 -e ghc_with_dynamic_rts=1 -e
> config.have_interp=False -e config.unregisterised=False -e
> config.ghc_dynamic_by_default=False -e config.ghc_dynamic=False -e
> ghc_with_smp=1 -e ghc_with_llvm=0 -e windows=False -e darwin=False -e
> config.in_tree_compiler=True --threads=33 -e config.cleanup=True -e
> config.local=False --rootdir=. --configfile=../../config/ghc -e
> 'config.confdir="../../config"' -e 'config.platform="x86_64-unknown-linux"'
> -e 'config.os="linux"' -e 'config.arch="x86_64"' -e 'config.wordsize="64"'
> -e 'config.timeout=int() or config.timeout' -e 'config.exeext=""' -e
> 'config.top="/5playpen/simonpj/HEAD-4/testsuite"' --config
> 'compiler="/5playpen/simonpj/HEAD-4/inplace/test   spaces/ghc-stage1"'
> --config 'ghc_pkg="/5playpen/simonpj/HEAD-4/inplace/test   spaces/ghc-pkg"'
> --config 'haddock="/5playpen/simonpj/HEAD-4/inplace/test   spaces/haddock"'
> --config 'hp2ps="/5playpen/simonpj/HEAD-4/inplace/test   spaces/hp2ps"'
> --config 'hpc="/5playpen/simonpj/HEAD-4/inplace/test   spaces/hpc"'
> --config 'gs="gs"' --config
> 'timeout_prog="../../timeout/install-inplace/bin/timeout"' -e
> "config.stage=1" --summary-file "../../../testsuite_summary_stage1.txt"
> --no-print-summary 1  \
>
>   \
>
>   \
>
>   \
>
>   \
>
>   \
>
>   -e config.speed="2" \
>
>
>
> Traceback (most recent call last):
>
>   File "../../driver/runtests.py", line 210, in 
>
> from testlib import *
>
>   File "/home/simonpj/code/HEAD-4/testsuite/driver/testlib.py", line 1286
>
> f.write(u':set prog ' + name + u'\n')
>
> ^
>
> SyntaxError: invalid syntax
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Testsuite broken on windows

2015-03-17 Thread Thomas Miedema
Simon,

can you pull and try again.

I'm very sorry, I really screwed up what should have been a small refactoring.

Thomas


On Tue, Mar 17, 2015 at 11:55 AM, Simon Peyton Jones
simo...@microsoft.com wrote:
 Thomas

 RGH!  Windows build is broken again.

 Could you please fix?  Soon!

 I got going again by reverting the last four commits to testsuite/, but
 there’s some complication with the hpc submodule so I couldn’t do it
 mechanically.  Better to fix it properly

 Thanks

 Simon

 python ../driver/runtests.py  -e ghc_compiler_always_flags='-fforce-recomp
 -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts
 -fno-warn-tabs' -e ghc_debugged=False -e ghc_with_native_codegen=1 -e
 ghc_with_vanilla=1 -e ghc_with_dynamic=0 -e ghc_with_profiling=0 -e
 ghc_with_threaded_rts=1 -e ghc_with_dynamic_rts=0 -e ghc_with_interpreter=1
 -e ghc_unregisterised=0 -e ghc_dynamic_by_default=False -e ghc_dynamic=False
 -e ghc_with_smp=1 -e ghc_with_llvm=0 -e windows=True -e darwin=False -e
 in_tree_compiler=True --threads=5 --verbose=3 -e clean_only=False
 --rootdir=. --config=../config/ghc -e 'config.confdir=../config' -e
 'config.platform=i386-unknown-mingw32' -e 'config.os=mingw32' -e
 'config.arch=i386' -e 'config.wordsize=32' -e
 'default_testopts.cleanup=1' -e 'config.timeout=int() or config.timeout'
 -e 'config.exeext=.exe' -e 'config.top=C:/code/HEAD/testsuite' -e
 'config.compiler=\C:/code/HEAD/inplace/bin/ghc-stage2.exe\' -e
 'config.ghc_pkg=\C:/code/HEAD/inplace/bin/ghc-pkg.exe\' -e
 'config.hp2ps=\C:/code/HEAD/inplace/bin/hp2ps.exe\' -e
 'config.hpc=\C:/code/HEAD/inplace/bin/hpc.exe\' -e 'config.gs=\gs\'
 -e 'config.timeout_prog=\../timeout/install-inplace/bin/timeout.exe\'
 --output-summary ../../testsuite_summary.txt
 --rootdir=../../libraries/Win32/tests  --rootdir=../../libraries/array/tests
 --rootdir=../../libraries/base/tests  --rootdir=../../libraries/binary/tests
 --rootdir=../../libraries/bytestring/tests
 --rootdir=../../libraries/containers/tests
 --rootdir=../../libraries/deepseq/tests
 --rootdir=../../libraries/directory/tests
 --rootdir=../../libraries/filepath/tests
 --rootdir=../../libraries/ghc-prim/tests
 --rootdir=../../libraries/haskeline/tests
 --rootdir=../../libraries/hpc/tests
 --rootdir=../../libraries/parallel/tests
 --rootdir=../../libraries/pretty/tests
 --rootdir=../../libraries/process/tests  --rootdir=../../libraries/stm/tests
 --rootdir=../../libraries/template-haskell/tests
 --rootdir=../../libraries/containers/tests-ghc \

   \

   \

   \

   \

   \

   -e config.fast=1 \



 Warning: Ignoring request to use threads as running on Windows

 Traceback (most recent call last):

   File ../driver/runtests.py, line 205, in module

 pkginfo = getStdout([config.ghc_pkg, 'dump'])

   File C:\code\HEAD\testsuite\driver\testlib.py, line 2277, in getStdout

 p = subprocess.Popen(strip_quotes(cmd),

   File C:\code\HEAD\testsuite\driver\testutil.py, line 20, in strip_quotes

 return s.strip('\'')

 AttributeError: 'list' object has no attribute 'strip'

 ../mk/test.mk:261: recipe for target 'test' failed

 make[2]: *** [test] Error 1

 make[2]: Leaving directory '/cygdrive/c/code/HEAD/testsuite/tests'

 ../mk/test.mk:276: recipe for target 'fast' failed

 make[1]: *** [fast] Error 2

 make[1]: Leaving directory '/cygdrive/c/code/HEAD/testsuite/tests'

 Makefile:117: recipe for target 'fasttest' failed

 make: *** [fasttest] Error 2


___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs