RE: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86
Grrr. According to the SUS/POSIX, stderr is supposed to be defined by extern FILE *stderr; According to C99, it is an expression of type 'pointer to FILE'. However, POSIX does say that it defers to ISO C on this, so I guess the C99 version is the right one. This is a real nuisance. We'll have to store stderr in a global variable, or have a get_stderr() function. Cheers, Simon On 26 April 2005 19:14, Sigbjorn Finne wrote: Ditto w/ HEAD -- the compilation error refers to 'stderr'. For that to work, 'stderr' has to be an lvalue, which is an unsound assumption (mingw defines it as (_iob[STDERR_FILENO]).) --sigbjorn - Original Message - From: Conal Elliott [EMAIL PROTECTED] To: glasgow-haskell-bugs@haskell.org Sent: Tuesday, April 26, 2005 09:46 Subject: FW: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86 I am getting this same barfage on WinXP (invalid lvalue in unary `' while compiling raisezh_fast in Exception.cmm). From cvs-ghc mail, it looks like this one has been coming up for a few days now. - Conal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Donald Bruce Stewart Sent: Tuesday, April 26, 2005 2:25 AM To: [EMAIL PROTECTED] Subject: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86 Build description = HEAD on OpenBSD/x86 Build location= /home/dons/head-gcc3 Build config file = /home/dons/head-gcc3/nightly/site/pls/conf-HEAD-manzano Nightly build started on manzano at Tue Apr 26 19:00:17 EST 2005. using existing source tree... ok. (GHC Version 6.5) Updating source tree ... ok. Building stage 1 compiler... failed; relevant barfage is below. Building Haddock ... ok. Building Alex... ok. Building Happy ... ok. No successfully built compilers to test; aborting. The last 30 lines of /home/dons/head-gcc3/logs/i386-unknown-openbsd-stage1 are ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c Weak.c -o Weak.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/FlagDefaults.c -o hooks/FlagDefaults.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/InitEachPE.c -o hooks/InitEachPE.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc
RE: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86
I've now fixed this, I hope. Cheers, Simon On 27 April 2005 10:06, Simon Marlow wrote: Grrr. According to the SUS/POSIX, stderr is supposed to be defined by extern FILE *stderr; According to C99, it is an expression of type 'pointer to FILE'. However, POSIX does say that it defers to ISO C on this, so I guess the C99 version is the right one. This is a real nuisance. We'll have to store stderr in a global variable, or have a get_stderr() function. Cheers, Simon On 26 April 2005 19:14, Sigbjorn Finne wrote: Ditto w/ HEAD -- the compilation error refers to 'stderr'. For that to work, 'stderr' has to be an lvalue, which is an unsound assumption (mingw defines it as (_iob[STDERR_FILENO]).) --sigbjorn - Original Message - From: Conal Elliott [EMAIL PROTECTED] To: glasgow-haskell-bugs@haskell.org Sent: Tuesday, April 26, 2005 09:46 Subject: FW: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86 I am getting this same barfage on WinXP (invalid lvalue in unary `' while compiling raisezh_fast in Exception.cmm). From cvs-ghc mail, it looks like this one has been coming up for a few days now. - Conal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Donald Bruce Stewart Sent: Tuesday, April 26, 2005 2:25 AM To: [EMAIL PROTECTED] Subject: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86 Build description = HEAD on OpenBSD/x86 Build location= /home/dons/head-gcc3 Build config file = /home/dons/head-gcc3/nightly/site/pls/conf-HEAD-manzano Nightly build started on manzano at Tue Apr 26 19:00:17 EST 2005. using existing source tree... ok. (GHC Version 6.5) Updating source tree ... ok. Building stage 1 compiler... failed; relevant barfage is below. Building Haddock ... ok. Building Alex... ok. Building Happy ... ok. No successfully built compilers to test; aborting. The last 30 lines of /home/dons/head-gcc3/logs/i386-unknown-openbsd-stage1 are ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c Weak.c -o Weak.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/FlagDefaults.c -o hooks/FlagDefaults.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/InitEachPE.c -o hooks/InitEachPE.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations
Re: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86
Ditto w/ HEAD -- the compilation error refers to 'stderr'. For that to work, 'stderr' has to be an lvalue, which is an unsound assumption (mingw defines it as (_iob[STDERR_FILENO]).) --sigbjorn - Original Message - From: Conal Elliott [EMAIL PROTECTED] To: glasgow-haskell-bugs@haskell.org Sent: Tuesday, April 26, 2005 09:46 Subject: FW: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86 I am getting this same barfage on WinXP (invalid lvalue in unary `' while compiling raisezh_fast in Exception.cmm). From cvs-ghc mail, it looks like this one has been coming up for a few days now. - Conal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Donald Bruce Stewart Sent: Tuesday, April 26, 2005 2:25 AM To: [EMAIL PROTECTED] Subject: [nightly] 26-Apr-2005 build of HEAD on OpenBSD/x86 Build description = HEAD on OpenBSD/x86 Build location= /home/dons/head-gcc3 Build config file = /home/dons/head-gcc3/nightly/site/pls/conf-HEAD-manzano Nightly build started on manzano at Tue Apr 26 19:00:17 EST 2005. using existing source tree... ok. (GHC Version 6.5) Updating source tree ... ok. Building stage 1 compiler... failed; relevant barfage is below. Building Haddock ... ok. Building Alex... ok. Building Happy ... ok. No successfully built compilers to test; aborting. The last 30 lines of /home/dons/head-gcc3/logs/i386-unknown-openbsd-stage1 are ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c Weak.c -o Weak.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/FlagDefaults.c -o hooks/FlagDefaults.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/InitEachPE.c -o hooks/InitEachPE.p_o ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h -#include Sanity.h -#include STM.h -#include Storage.h -#include SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h -#include LdvProfile.h -#include Profiling.h -#include StoragePriv.h -#include OSThreads.h -#include Apply.h -fvia-C -dcmm-lint -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -c hooks/MallocFail.c -o hooks/MallocFail.p_o ../../ghc