Opened 2 months ago

Last modified 10 days ago

#8768 new bug

Internal compiler error on haskell-src-exts 1.14.01 (profiling)

Reported by: MagnusTherning Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.8.1-rc2
Keywords: Cc: gregmainland@…
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Compile-time crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I'm configuring and building haskell-src-exts like this:

runhaskell Setup configure -O -p  --enable-shared \
        -fbase4
runhaskell Setup build

It builds the ordinary bits just fine, but when it gets to compiling for profiling:

[ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax ( src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.p_o )

/tmp/ghc340_0/ghc340_8.s:1:0:
     internal compiler error: Segmentation fault
     .section .rodata
     ^
Please submit a full bug report,
with preprocessed source if appropriate.

Change History (7)

comment:1 follow-up: Changed 2 months ago by thoughtpolice

What GCC and binutils (or associated compiler/assembler tools) are you using exactly?

The thing is, this is actually a bug in GNU as or GCC it seems, as the choke happens when compiling the resulting profiled assembly code created by GHC - GHC has already done its job. There may be a possible way to work around this, but I'll need to know exactly what system you're on first to be sure I can reproduce it.

comment:2 in reply to: ↑ 1 Changed 2 months ago by MagnusTherning

Replying to thoughtpolice:

What GCC and binutils (or associated compiler/assembler tools) are you using exactly?

The thing is, this is actually a bug in GNU as or GCC it seems, as the choke happens when compiling the resulting profiled assembly code created by GHC - GHC has already done its job. There may be a possible way to work around this, but I'll need to know exactly what system you're on first to be sure I can reproduce it.

It's an up-to-date ArchLinux? system:

# pacman -Q binutils gcc
binutils 2.24-2
gcc 4.8.2-8

Let me know if there is more information you need from me.

comment:3 Changed 6 weeks ago by dmbergey

I'm encountering the same error. I'm running debian sid.

  • ghc-7.8.1-rc2
  • gcc-4.8.2-2
  • binutils 2.24-3

Let me know if there's anything else I can do to help diagnose this.

comment:4 Changed 6 weeks ago by dmbergey

  • Version changed from 7.8.1-rc1 to 7.8.1-rc2

comment:5 Changed 6 weeks ago by octoploid

See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60436
Adding "-nostdinc" to the gcc invocation is a workaround.

comment:6 Changed 4 weeks ago by volodya

It is still producing the same error. I'm trying to compile the package with the flag as follows:

cabal build --gcc-options=-nostdinc

and as follows:

runhaskell Setup.hs build --gcc-options=-nostdinc

What have I missed?

Debian testing
ghc 7.8.20140228-1
gcc 4.8.2-2
biinutils 2.24-4

comment:7 Changed 10 days ago by ghorn

  • Cc gregmainland@… added
Note: See TracTickets for help on using tickets.