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 2>&1
> >
> > 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/inc