Opened 9 years ago

Closed 9 years ago

#5176 closed bug (fixed)

RTS build failure with gcc-4.6.1

Reported by: erikd Owned by: igloo
Priority: highest Milestone: 7.2.1
Component: Runtime System Version: 7.1
Keywords: Cc: dterei
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Building ghc from git HEAD on x86_64-linux (Debian unstable) with gcc-4.6 and getting:

"inplace/bin/ghc-stage1" -optc-Wall -optc-Werror -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Iincludes -optc-Irts -optc-DCOMPILING_RTS -optc-fno-strict-aliasing -optc-fno-common -optc-Ilibffi/build/include -optc-fomit-frame-pointer -optc-DRtsWay=\"rts_thr\" -optc-DTHREADED_RTS  -H32m -O -Wall -Werror -H64m -O0 -Iincludes -Irts -DCOMPILING_RTS -package-name rts  -dcmm-lint  -Ilibffi/build/include     -i -irts -irts/dist/build -irts/dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen           -optc-O2   -c rts/Capability.c -o rts/dist/build/Capability.thr_o
rts/Capability.c: In function 'releaseCapability_':

rts/Capability.c:341:1:
     error: inlining failed in call to 'giveCapabilityToTask.isra.12.part.13': call is unlikely and code size would grow [-Werror=inline]

rts/Capability.c:368:1:  error: called from here [-Werror=inline]

rts/Capability.c:341:1:
     error: inlining failed in call to 'giveCapabilityToTask.isra.12.part.13': call is unlikely and code size would grow [-Werror=inline]

rts/Capability.c:368:1:  error: called from here [-Werror=inline]

rts/Capability.c:341:1:
     error: inlining failed in call to 'giveCapabilityToTask.isra.12.part.13': call is unlikely and code size would grow [-Werror=inline]

rts/Capability.c:368:1:  error: called from here [-Werror=inline]
cc1: all warnings being treated as errors

make[1]: *** [rts/dist/build/Capability.thr_o] Error 1

Attachments (1)

0001-Fix-validation-errors-with-GCC-4.6.patch (14.0 KB) - added by dterei 9 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by simonmar

Milestone: 7.2.1
Priority: normalhigh

comment:2 Changed 9 years ago by dterei

So I've added a patch that fixes the validation errors. Unfortunately it causes a bug where the stage2 compiler freezes when compiling the utils/ghctags/Main.hs file.

comment:3 Changed 9 years ago by dterei

Cc: dterei added

comment:4 Changed 9 years ago by igloo

Status: newpatch

comment:5 Changed 9 years ago by igloo

Priority: highhighest

comment:6 Changed 9 years ago by igloo

Owner: set to igloo

comment:7 Changed 9 years ago by igloo@…

commit 0a6f26f6d29c8762b254e2f1040fce5c3571feea Author: Ian Lynagh <igloo@…> Date: Fri Jun 24 20:51:13 2011 +0100

Fix gcc 4.6 warnings; fixes #5176

Based on a patch from David Terei.

Some parts are a little ugly (e.g. defining things that only ASSERTs use only when DEBUG is defined), so we might want to tweak things a little.

I've also turned off -Werror for didn't-inline warnings, as we now get a few such warnings.

comment:8 Changed 9 years ago by igloo

Resolution: fixed
Status: patchclosed

Fixed

Note: See TracTickets for help on using tickets.