Ticket #1361 (closed bug: wontfix)

Opened 6 years ago

Last modified 6 years ago

When trying to run yi, it fails to compile main, and exits with an error

Reported by: guest Owned by:
Priority: normal Milestone: 6.8.1
Component: Compiler Version: 6.6.1
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I am using ghc-6.6.1 installed in a non-standard location, and I just built yi-0.2 also for a non-standard location, and the first time I run it I get:

<interactive>:1:33:
    Failed to load interface for `Yi':
      Use -v to see a list of the files searched for.
yi: panic! (the 'impossible' happened)
  (GHC version 6.6.1 for i386-unknown-linux):
        Could not compile Yi.main!

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

The output from the configuration and build is:

$ runhaskell Setup.hs configure --prefix=/design/local/yi
Configuring yi-0.2...
configure: Dependency ghc>=6.6: using ghc-6.6.1
configure: Dependency base-any: using base-2.1.1
configure: Dependency mtl-any: using mtl-1.0.1
configure: Dependency regex-posix-any: using regex-posix-0.71
configure: Using install prefix: /design/local/yi
configure: Binaries installed in: /design/local/yi/bin
configure: Libraries installed in: /design/local/yi/lib/yi-0.2/ghc-6.6.1
configure: Private binaries installed in: /design/local/yi/libexec
configure: Data files installed in: /design/local/yi/share/yi-0.2
configure: Using compiler: /design/local/ghc-6.6.1/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.6.1
configure: Using package tool: /design/local/ghc-6.6.1/bin/ghc-pkg
configure: Using ar found on system at: /usr/bin/ar
configure: No haddock found
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /design/local/ghc-6.6.1/bin/runghc
configure: No runhugs found
configure: No happy found
configure: No alex found
configure: Using hsc2hs: /design/local/ghc-6.6.1/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
$ runhaskell Setup.hs build
Preprocessing executables for yi-0.2...
Building yi-0.2...
[1 of 4] Compiling Yi.Kernel        ( Yi/Kernel.hs, dist/build/yi/yi-tmp/Yi/Kernel.o
 )
[2 of 4] Compiling Yi.Debug         ( Yi/Debug.hs, dist/build/yi/yi-tmp/Yi/Debug.o )
[3 of 4] Compiling Yi.Boot          ( Yi/Boot.hs, dist/build/yi/yi-tmp/Yi/Boot.o )
[4 of 4] Compiling Main             ( Main.hs, dist/build/yi/yi-tmp/Main.o )
Linking dist/build/yi/yi ...
$ runhaskell Setup.hs install
Installing: /design/local/yi/lib/yi-0.2/ghc-6.6.1 & /design/local/yi/bin yi-0.2...

My machine is:

$ cat /etc/redhat-release
Red Hat Enterprise Linux WS release 3 (Taroon Update 7)
$ uname -a
Linux carl 2.4.21-40.ELhugemem #1 SMP Thu Feb 2 22:14:10 EST 2006 i686 i686 i386 GNU/Linux

Let me know if there is any more info I can provide.

Change History

Changed 6 years ago by igloo

  • milestone set to 6.8

Has anyone either reproduced this or failed to reproduce it?

Does anyone know if it's expected to work?

Changed 6 years ago by guest

I have a similar setup and a similar problem. It manifests itself slightly differently. I have a gentoo system with my own ebuilds for ghc-6.6.1 (simply renaming the 6.6 ebuild from the haskell overlay) and cabal-1.1.6.2 (likewise). When I try to install yi (using the 0.2 ebuild from the overlay) everything goes (apparently) fine until the linking stage when the following output ensues:

1 of 4] Compiling Yi.Kernel        ( Yi/Kernel.hs, dist/build/yi/yi-tmp/Yi/Kernel.o )
[2 of 4] Compiling Yi.Debug         ( Yi/Debug.hs, dist/build/yi/yi-tmp/Yi/Debug.o )
[3 of 4] Compiling Yi.Boot          ( Yi/Boot.hs, dist/build/yi/yi-tmp/Yi/Boot.o )
[4 of 4] Compiling Main             ( Main.hs, dist/build/yi/yi-tmp/Main.o )
Linking dist/build/yi/yi ...
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o): In function `r6kr_info':
: undefined reference to `Cabalzm1zi1zi6zi2_LanguageziHaskellziExtension_optional_info'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o): In function `s6sB_info':
: undefined reference to `Cabalzm1zi1zi6zi2_LanguageziHaskellziExtension_zdwshowsPrec_info'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o): In function `s6ub_info':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziCompiler_lvl31_info'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o): In function `s6uf_info':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziCompiler_zddEq_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o): In function `s6Ka_0_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziCompiler_polyzugo_info'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o): In function `s6Kd_0_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziCompiler_polyzugo1_info'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o):(.rodata+0x0): undefined reference to `Cabalzm1zi1zi6zi2_LanguageziHaskellziExtension_optional_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o):(.rodata+0x1cc): undefined reference to `Cabalzm1zi1zi6zi2_LanguageziHaskellziExtension_zdwshowsPrec_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(HeaderInfo.o):(.rodata+0x1dc): undefined reference to `Cabalzm1zi1zi6zi2_DistributionziCompiler_lvl31_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(PackageConfig.o): In function `s23p_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Packages.o): In function `s79o_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Packages.o): In function `s7be_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Packages.o): In function `s7jH_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Packages.o): In function `s7xm_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Packages.o): In function `s7zp_info':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_zeze_info'
/usr/lib/ghc-6.6.1/libHSghc.a(Packages.o): In function `s7HJ_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Linker.o): In function `s93a_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Linker.o): In function `s94C_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
/usr/lib/ghc-6.6.1/libHSghc.a(Finder.o): In function `s7lE_1_alt':
: undefined reference to `Cabalzm1zi1zi6zi2_DistributionziPackage_a_closure'
collect2: ld returned 1 exit status

Getting the darcs version and making with "make emacs" ends the same way. Is this the same issue?

Changed 6 years ago by jpbernardy

  • status changed from new to closed
  • resolution set to wontfix

Changed 6 years ago by jpbernardy

These are absolutely NOT bugs in GHC. Please report to the Yi people instead:

 http://code.google.com/p/yi-editor/issues/list

mailing list: yi-devel@…

Changed 6 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.1
Note: See TracTickets for help on using tickets.