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
Created attachment 145301 [details] config.log
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.