[GHC] #8166: Undefined references in HEAD object files

#8166: Undefined references in HEAD object files ----------------------------------+--------------------------------- Reporter: joelteon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ----------------------------------+--------------------------------- {{{ $ uname -a Linux default-centos-64.vagrantup.com 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux }}} When I try to bootstrap cabal-install using GHC HEAD: {{{ Checking installed packages for ghc-7.7.20130823... Cabal is already installed and the version is ok. transformers is already installed and the version is ok. mtl-2.1.2 will be downloaded and installed. deepseq is already installed and the version is ok. text-0.11.2.3 will be downloaded and installed. parsec-3.1.3 will be downloaded and installed. network-2.4.1.0 will be downloaded and installed. time is already installed and the version is ok. HTTP-4000.2.5 will be downloaded and installed. zlib-0.5.4.0 will be downloaded and installed. random-1.0.1.1 will be downloaded and installed. stm-2.4.2 will be downloaded and installed. Downloading mtl-2.1.2... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0 100 13723 100 13723 0 0 2432 0 0:00:05 0:00:05 --:--:-- 40964 [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `cbw5_info': (.text+0x83f): undefined reference to `r9F5_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `sapv_info': (.text+0x1623): undefined reference to `r9F5_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `cbD6_info': (.text+0x17a9): undefined reference to `r9F5_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `cbHC_info': (.text+0x24ff): undefined reference to `r9F5_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `cbN4_info': (.text+0x3257): undefined reference to `r9F5_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o):(.text+0x3faf): more undefined references to `r9F5_info' follow /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `ccEX_info': (.text+0xb63c): undefined reference to `r9F3_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `ScJo_srt': (.data+0x38): undefined reference to `r9F5_closure' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Simple__63.o): In function `ScJo_srt': (.data+0x180): undefined reference to `r9F3_closure' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `s3WN_info': (.text+0x8a): undefined reference to `r3Eg_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `c5NF_info': (.text+0x118): undefined reference to `r3Eh_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `s3XR_info': (.text+0xc35): undefined reference to `r3Ei_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `s3YA_info': (.text+0xefe): undefined reference to `r3E8_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `s3Z6_info': (.text+0x100e): undefined reference to `r3E8_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `s3Zb_info': (.text+0x1095): undefined reference to `r3Ei_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `c5X3_info': (.text+0x16d6): undefined reference to `r3E8_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `c5Xj_info': (.text+0x19d3): undefined reference to `r3E8_info' /usr/local/lib/ghc-7.7.20130823/Cabal-1.17.0/libHSCabal-1.17.0.a(Command__114.o): In function `S60p_srt': (.data+0x18): undefined reference to `r3E8_closure' (repeats ad nauseam) collect2: ld returned 1 exit status Error during cabal-install bootstrap: Compiling the Setup script failed }}} The full output can be found at https://gist.github.com/anonymous/e30cda2ca16f1e90e13e/raw/eb9b2d10db44d0288... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by rwbarton): * cc: rwbarton@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Comment (by rwbarton): I get similar errors just trying to link anything with a recent HEAD. See http://lpaste.net/92183 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files
---------------------------------+----------------------------------
Reporter: joelteon | Owner: jstolarek
Type: bug | Status: new
Priority: high | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
---------------------------------+----------------------------------
Changes (by thoughtpolice):
* owner: => jstolarek
* priority: normal => high
* milestone: => 7.8.1
Comment:
Reid confirmed this morning that reverting Jan's commits
e5374a1b3ac11851576f8835e19d9fc92d7735c3 and
388e14e28c2ab70419dc3be610da9806a8e38325 fixed this problem:
{{{
commit 388e14e28c2ab70419dc3be610da9806a8e38325
Author: Jan Stolarek

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: jstolarek Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Comment (by rwbarton): After further experimentation, reverting just 388e14e2 "Merge cgTailCall and cgLneJump into one function" is enough to solve my problems. And it looks wrong: the structure of the old code is not as described in the commit message: the `fun_id` that used to be passed to `cgTailCall` is not the same as the one in `cgIdApp`, as explained in a comment in the old code. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: jstolarek Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by Fuuzetsu): * cc: fuuzetsu@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: jstolarek Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Comment (by Fuuzetsu): Confirming on 32-bit install as well, trying to build ghc-paths. `Linux misaki 3.9.0-rc6 #1 SMP Tue Apr 9 10:51:07 BST 2013 i686 Intel(R) Core(TM)2 Duo CPU L7700 @ 1.80GHz GenuineIntel GNU/Linux` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files
---------------------------------+----------------------------------
Reporter: joelteon | Owner: jstolarek
Type: bug | Status: new
Priority: high | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
---------------------------------+----------------------------------
Comment (by Austin Seipp

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: jstolarek Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Comment (by jstolarek): Sorry about that guys - I don't know how this change validated in my tree. Austin, thanks for fix. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: jstolarek Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed Comment: Right, no worries. I'm not sure how it took me so long to get it happening for me, either... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files ---------------------------------+---------------------------------- Reporter: joelteon | Owner: jstolarek Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+---------------------------------- Comment (by simonpj): Also I've checked your fix and it's the Right Thing to do. Thanks Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8166#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8166: Undefined references in HEAD object files
---------------------------------+----------------------------------
Reporter: joelteon | Owner: jstolarek
Type: bug | Status: closed
Priority: high | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Resolution: fixed | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
---------------------------------+----------------------------------
Comment (by Simon Peyton Jones
participants (1)
-
GHC