Re: ghc-6.6.1 testsuite on arm eabi: TestStub_stub.h: No such file or directory

2007-11-21 Thread Simon Marlow

Martin Guy wrote:

2007/11/20, Simon Marlow [EMAIL PROTECTED]:

Martin Guy wrote:

$ .../ghc6-6.6.1/testsuite/tests/ghc-regress$ make stage=2 fast 
make-fast-stage=2.errs 21

Wrong exit code (expected 0 , actual 2 )
/tmp/ghc27396_0/ghc27396_0.hc:5:27:
 error: TestStub_stub.h: No such file or directory

This could be a difference in how gcc on your platform is finding header
files, perhaps.  Could you add -v to the GHC command line and send us the
output?


I find I get the same behaviour in x86 when using -fvia-C, and arm is
always via-C so I've decided not to worry about it, but here is the -v
output when running the guts of driver035 manually:


This is a bug that was fixed in 6.8.1.  The testsuite now has extra tests 
for this case (-stubdir and -fvia-C).


Cheers,
Simon
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: ghc-6.6.1 testsuite on arm eabi: TestStub_stub.h: No such file or directory

2007-11-20 Thread Martin Guy
2007/11/20, Simon Marlow [EMAIL PROTECTED]:
 Martin Guy wrote:
  $ .../ghc6-6.6.1/testsuite/tests/ghc-regress$ make stage=2 fast 
  make-fast-stage=2.errs 21
 
  Wrong exit code (expected 0 , actual 2 )
  /tmp/ghc27396_0/ghc27396_0.hc:5:27:
   error: TestStub_stub.h: No such file or directory

 This could be a difference in how gcc on your platform is finding header
 files, perhaps.  Could you add -v to the GHC command line and send us the
 output?

I find I get the same behaviour in x86 when using -fvia-C, and arm is
always via-C so I've decided not to worry about it, but here is the -v
output when running the guts of driver035 manually:

.../ghc6-6.6.1/testsuite/tests/ghc-regress/driver$ rm F.hi F.o
stub/TestStub_stub.c stub/TestStub_stub.h stub/TestStub_stub.o
F_stub.o
.../ghc6-6.6.1/testsuite/tests/ghc-regress/driver$ /usr/bin/ghc -v -c
F.hs -stubdir stub
Glasgow Haskell Compiler, Version 6.6.1, for Haskell 98, compiled by
GHC version 6.6.1
Using package config file: /usr/lib/ghc-6.6.1/package.conf
Using package config file: /home/martin/.ghc/arm-linux-6.6.1/package.conf
wired-in package base mapped to base-2.1.1
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.1
Hsc static flags: -funregisterised -static
Created temporary directory: /tmp/ghc4841_0
*** Checking old interface for main:TestStub:
*** Parser:
*** Renamer/typechecker:
*** Desugar:
Result size = 18
*** Simplify:
Result size = 22
Result size = 22
*** Tidy Core:
Result size = 22
*** CorePrep:
Result size = 24
*** Stg2Stg:
*** CodeGen:
*** CodeOutput:
*** C Compiler:
gcc -x c stub/TestStub_stub.c -o /tmp/ghc4841_0/ghc4841_0.s -v -S
-Wimplicit -O -D__GLASGOW_HASKELL__=606 -DNO_REGS
-DUSE_MINIINTERPRETER -I . -I /usr/lib/ghc-6.6.1/include -fwrapv
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--disable-libssp --disable-sjlj-exceptions --enable-checking=release
--build=arm-linux-gnueabi --host=arm-linux-gnueabi
--target=arm-linux-gnueabi
Thread model: posix
gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
 /usr/lib/gcc/arm-linux-gnueabi/4.2.3/cc1 -quiet -v -I . -I
/usr/lib/ghc-6.6.1/include -D__GLASGOW_HASKELL__=606 -DNO_REGS
-DUSE_MINIINTERPRETER stub/TestStub_stub.c -quiet -dumpbase
TestStub_stub.c -auxbase-strip /tmp/ghc4841_0/ghc4841_0.s -O
-Wimplicit -version -fwrapv -o /tmp/ghc4841_0/ghc4841_0.s
ignoring nonexistent directory /usr/local/include/arm-linux-gnueabi
ignoring nonexistent directory
/usr/lib/gcc/arm-linux-gnueabi/4.2.3/../../../../arm-linux-gnueabi/include
ignoring nonexistent directory /usr/include/arm-linux-gnueabi
#include ... search starts here:
#include ... search starts here:
 .
 /usr/lib/ghc-6.6.1/include
 /usr/local/include
 /usr/lib/gcc/arm-linux-gnueabi/4.2.3/include
 /usr/include
End of search list.
GNU C version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) (arm-linux-gnueabi)
compiled by GNU C version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3).
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15837
Compiler executable checksum: cca392b8baa650ca09db5e1dfdcba292
*** Assembler:
gcc -I. -c /tmp/ghc4841_0/ghc4841_0.s -o F_stub.o
*** C Compiler:
gcc -x c /tmp/ghc4841_0/ghc4841_0.hc -o /tmp/ghc4841_0/ghc4841_1.s
-fno-strict-aliasing -v -S -Wimplicit -O -D__GLASGOW_HASKELL__=606
-DNO_REGS -DUSE_MINIINTERPRETER -I . -I /usr/lib/ghc-6.6.1/include
-fwrapv
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--disable-libssp --disable-sjlj-exceptions --enable-checking=release
--build=arm-linux-gnueabi --host=arm-linux-gnueabi
--target=arm-linux-gnueabi
Thread model: posix
gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
 /usr/lib/gcc/arm-linux-gnueabi/4.2.3/cc1 -quiet -v -I . -I
/usr/lib/ghc-6.6.1/include -D__GLASGOW_HASKELL__=606 -DNO_REGS
-DUSE_MINIINTERPRETER /tmp/ghc4841_0/ghc4841_0.hc -quiet -dumpbase
ghc4841_0.hc -auxbase-strip /tmp/ghc4841_0/ghc4841_1.s -O -Wimplicit
-version -fno-strict-aliasing -fwrapv -o /tmp/ghc4841_0/ghc4841_1.s
ignoring nonexistent directory /usr/local/include/arm-linux-gnueabi
ignoring nonexistent directory
/usr/lib/gcc/arm-linux-gnueabi/4.2.3/../../../../arm-linux-gnueabi/include
ignoring nonexistent directory /usr/include/arm-linux-gnueabi
#include ... 

ghc-6.6.1 testsuite on arm eabi: TestStub_stub.h: No such file or directory

2007-11-19 Thread Martin Guy
Hi
   I just ported ghc-6.6.1 to the new Debian port for ARM EABI and all
seems to have gone well, but I am mystified by two failing tests when
I run the testsuite:
$ .../ghc6-6.6.1/testsuite/tests/ghc-regress$ make stage=2 fast 
make-fast-stage=2.errs 21

I get 7 internal error: adjustor creation not supported on this
platform and a ghc-6.6.1: not built for interactive use, which I am
happy with, but two tests, driver017 and driver035 fail, saying

Wrong exit code (expected 0 , actual 2 )
/tmp/ghc27396_0/ghc27396_0.hc:5:27:
 error: TestStub_stub.h: No such file or directory

although the file is there
(testsuite/tests/ghc-regress/driver/stub/TestStub_stub.h) and is
readable, exactly the same as in the version I built and tested in
parallel on x86 for comparison.

Access to the machine via ssh on request, or browsable under
http://martinwguy.co.uk/martin/arm/ghc6-6.6.1/testsuite/tests/ghc-regress

I am at a loss as to the why of the difference. Can anyone throw any
light on this?
Do I need to worry about it?

Cheers

   M
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs