id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
2752	Parse error in STM.c	jputcu	igloo	"Building failed.

 * Red Hat 7.3
 * ghc-6.6.1
 * gcc-2.96
 * GNU make-3.80
 * perl-5.6.1

rst/STM.c line 392 ""StgTVarWatchQueue *trail""

{{{
...
/home/jorisp/ghc5042_rh72/ghc-6.10.1/ghc/stage1-inplace/ghc -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I../gmp/gmpbuild -optc-I../libffi/build/include -optc-fno-strict-aliasing  -H32m -O -optc-O2 -I../includes -I. -Iparallel -Ism -DCOMPILING_RTS -package-name rts -static  -I../gmp/gmpbuild -I../libffi/build/include -I. -dcmm-lint     -c STM.c -o STM.o
In file included from ../includes/Rts.h:179,

                 from STM.c:86:0: 
../includes/SMPClosureOps.h: In function `unlockClosure':

../includes/SMPClosureOps.h:54:0:  warning: unused parameter `p'

../includes/SMPClosureOps.h:54:0:  warning: unused parameter `info'
In file included from ../includes/Rts.h:180,

                 from STM.c:86:0: 
../includes/SpinLock.h: In function `initSpinLock':

../includes/SpinLock.h:99:0:  warning: unused parameter `p'
In file included from Schedule.h:14,

                 from STM.c:90:0: 
Capability.h: In function `releaseCapability':

Capability.h:150:0:  warning: unused parameter `cap'
Capability.h: In function `releaseCapability_':

Capability.h:151:0:  warning: unused parameter `cap'
STM.c: In function `lock_stm':

STM.c:183:0:  warning: unused parameter `trec'
STM.c: In function `unlock_stm':

STM.c:187:0:  warning: unused parameter `trec'
STM.c: In function `lock_tvar':

STM.c:191:0:  warning: unused parameter `trec'
STM.c: In function `unlock_tvar':

STM.c:199:0:  warning: unused parameter `trec'
STM.c: In function `cond_lock_tvar':

STM.c:209:0:  warning: unused parameter `trec'
STM.c: In function `lock_inv':

STM.c:219:0:  warning: unused parameter `inv'
STM.c: In function `unlock_inv':

STM.c:224:0:  warning: unused parameter `inv'
STM.c: In function `unpark_waiters_on':

STM.c:392:0:  parse error before `*'

STM.c:394:0:  `trail' undeclared (first use in this function)

STM.c:394:0:  (Each undeclared identifier is reported only once

STM.c:394:0:  for each function it appears in.)

STM.c:394:0:  warning: value computed is not used

STM.c:390:0:
     warning: `q' might be used uninitialized in this function
STM.c: In function `revert_ownership':

STM.c:763:0:  warning: unused parameter `trec'

STM.c:764:0:  warning: unused parameter `revert_all'
STM.c: In function `check_read_only':

STM.c:858:0:  warning: unused parameter `trec'
STM.c: In function `getToken':

STM.c:930:0:  warning: unused parameter `cap'
STM.c: In function `stmWaitUnlock':

STM.c:1529:0:  warning: unused parameter `cap'
STM.c: In function `read_current_value':

STM.c:1571:0:  warning: unused parameter `trec'
make[1]: *** [STM.o] Error 1
make[1]: Leaving directory `/home/jorisp/ghc5042_rh72/ghc-6.10.1/rts'
make: *** [stage1] Error 2
}}}
"	merge	closed	normal	6.10.2	Build System	6.10.1	fixed		joris.putcuyps@…	Linux	x86		Unknown				
