[GHC] #8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function)

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function) --------------------------------+------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: powerpc64 Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Building GHC HEAD at 569b2652 on powerpc64 Linux results in: {{{ "inplace/bin/ghc-stage1" -static -H32m -O -Werror -Wall -H64m -O0 -Iincludes \ -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist- ghcconstants/header \ -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -optc-DNOSMP -dcmm-lint \ -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen \ -O2 -c rts/PrimOps.cmm -o rts/dist/build/PrimOps.o /tmp/ghc18067_0/ghc18067_0.hc: In function 'c6o_entry': /tmp/ghc18067_0/ghc18067_0.hc:509:20: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function) /tmp/ghc18067_0/ghc18067_0.hc:509:20: note: each undeclared identifier is reported only once for each function it appears in }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8009 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function)
--------------------------------+-------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords:
Os: Linux | Architecture: powerpc64
Failure: Building GHC failed | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
Comment(by erikd):
The line containing `stg_C_FINALIZER_LIST_info` was added in commit:
commit d61c623ed6b2d352474a7497a65015dbf6a72e12[[BR]]
Author: Takano Akio

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function) --------------------------------+------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: powerpc64 Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Comment(by erikd): Looks like I need to add {{{ RTS_ENTRY(stg_C_FINALIZER_LIST); }}} to the file `rts/stgMiscClosures.h`. Testing this now. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8009#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function) --------------------------------+------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: powerpc64 Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Comment(by erikd): Now I get: {{{ "inplace/bin/ghc-stage1" -static -optc-DTHREADED_RTS -H32m -O -Werror -Wall -H64m -O0 -Iincludes \ -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist- ghcconstants/header \ -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -optc-DNOSMP -dcmm-lint -i -irts \ -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen -O2 -c \ rts/PrimOps.cmm -o rts/dist/build/PrimOps.thr_o /tmp/ghc1900_0/ghc1900_0.hc: In function 'stg_takeMVarzh': /tmp/ghc1900_0/ghc1900_0.hc:1518:30: error: 'n_capabilities' undeclared (first use in this function) }}} Working on a fix for this. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8009#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function) --------------------------------+------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: powerpc64 Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Comment(by erikd): Have a patch for this. Currently testing it on amd64. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8009#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function)
--------------------------------+-------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords:
Os: Linux | Architecture: powerpc64
Failure: Building GHC failed | Blockedby:
Blocking: | Related:
--------------------------------+-------------------------------------------
Comment(by erikd@…):
commit ffe2e22c11518994108f1f319764fe898e899086
{{{
Author: Erik de Castro Lopo

#8009: error: 'stg_C_FINALIZER_LIST_info' undeclared (first use in this function) --------------------------+------------------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Component: Compiler Version: 7.7 | Resolution: fixed Keywords: | Os: Linux Architecture: powerpc64 | Failure: Building GHC failed Blockedby: | Blocking: Related: | --------------------------+------------------------------------------------- Changes (by erikd): * status: new => closed * resolution: => fixed Comment: Patch is in gtit HEAD. Since stg_C_FINALIZER_LIST was added after the release of 7.6.3 this does need to be merged to the stable branch, so closing it. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/8009#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC