Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212307 - dev-lang/ghc-6.8.2 fails to compile (gcc4.3, registerised build)
Summary: dev-lang/ghc-6.8.2 fails to compile (gcc4.3, registerised build)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 206643
  Show dependency tree
 
Reported: 2008-03-04 19:20 UTC by Markus Rothe (RETIRED)
Modified: 2010-07-04 13:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,7.43 KB, text/plain)
2008-03-04 19:23 UTC, Markus Rothe (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2008-03-04 19:20:42 UTC
When trying to compile ghc-6.8.2 I ran into the following error:

checking for path to top of build tree... Warning: retaining unknown function `.L.__stginit_ZCMain' in output from C compiler
Warning: retaining unknown function `.L.__stginit_Main' in output from C compiler
Warning: retaining unknown function `.L.__stginit_Main_' in output from C compiler
Warning: retaining unknown function `.L.s1E6_ret' in output from C compiler
Warning: retaining unknown function `.L.s1Dj_entry' in output from C compiler
Warning: retaining unknown function `.L.s1Em_ret' in output from C compiler
Warning: retaining unknown function `.L.s1Dg_entry' in output from C compiler
Warning: retaining unknown function `.L.s1De_entry' in output from C compiler
Warning: retaining unknown function `.L.s1D5_entry' in output from C compiler
Warning: retaining unknown function `.L.s1Ed_1_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ed_0_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ei_1_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ei_0_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ej_1_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ej_0_alt' in output from C compiler
Warning: retaining unknown function `.L.s1CZ_entry' in output from C compiler
Warning: retaining unknown function `.L.s1CX_ret' in output from C compiler
Warning: retaining unknown function `.L.s1Ee_1_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ee_0_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ef_1_alt' in output from C compiler
Warning: retaining unknown function `.L.s1Ef_0_alt' in output from C compiler
Warning: retaining unknown function `.L.s1CP_entry' in output from C compiler
Warning: retaining unknown function `.L.s1CJ_ret' in output from C compiler
Warning: retaining unknown function `.L.s1CH_dflt' in output from C compiler
Warning: retaining unknown function `.L.s1Cx_entry' in output from C compiler
Warning: retaining unknown function `.L.s1CF_entry' in output from C compiler
Warning: retaining unknown function `.L.s1Ea_ret' in output from C compiler
Warning: retaining unknown function `.L.Main_escapezuforwardslash_entry' in output from C compiler
Warning: retaining unknown function `.L.s1Ck_ret' in output from C compiler
Warning: retaining unknown function `.L.Main_escapezuquadruplezubackslash_entry' in output from C compiler
Warning: retaining unknown function `.L.s1Cc_ret' in output from C compiler
Warning: retaining unknown function `.L.ZCMain_main_entry' in output from C compiler
Warning: retaining unknown function `.L.Main_main_entry' in output from C compiler
Warning: retaining unknown function `.L.r1C2_entry' in output from C compiler
Warning: retaining unknown function `.L.r1C0_entry' in output from C compiler
pwd.o:(.text+0x0): undefined reference to `__DISCARD__'
pwd.o:(.text+0x28): undefined reference to `__DISCARD__'
pwd.o:(.text+0x50): undefined reference to `__DISCARD__'
pwd.o:(.text+0xd8): undefined reference to `__DISCARD__'
pwd.o:(.text+0x158): undefined reference to `__DISCARD__'
pwd.o:(.text+0x1ec): more undefined references to `__DISCARD__' follow
collect2: ld returned 1 exit status
./configure: line 2655: utils/pwd/pwd: No such file or directory
configure: error: cannot determine current directory


this is similar to bug #145466. unfortunately the workaround we used in 6.4.2 does not work any more.

workaround was:

if use ia64 || use ppc64; then
  echo "GhcUnregisterised=YES" >> mk/build.mk
  echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
  echo "GhcWithInterpreter=NO" >> mk/build.mk
  echo "SplitObjs=NO" >> mk/build.mk
  echo "GhcRTSWays := debug" >> mk/build.mk
fi
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2008-03-04 19:23:33 UTC
Created attachment 145301 [details]
config.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-04 13:16:10 UTC
Yeah, ghc's EvilMangler came out of sync with binautils/gcc and we have switched back to unregisterised build.

Closing as WONTFIX.

ghc-6.10.x and 6.12.x in tree should work fine.