#3668: PIE-enabled hardened gcc might broke GHC.
---------------------------+------------------------------------------------
  Reporter:  secludedsage  |          Owner:        
      Type:  bug           |         Status:  new   
  Priority:  normal        |      Milestone:        
 Component:  Compiler      |        Version:  6.10.4
Resolution:                |       Keywords:        
Difficulty:                |             Os:  Linux 
  Testcase:                |   Architecture:  x86   
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------
Comment (by secludedsage):

 Well, I add "SRC_LD_OPTS+= -fno-PIE" here and the build failed at:

 ------------------------------------------------------------------------
 == make boot - --no-print-directory -r --jobserver-fds=3,4 - --jobserver-
 fds=3,4 -j;
  in /var/tmp/portage/dev-lang/ghc-6.10.4/work/ghc-6.10.4/utils/genapply
 ------------------------------------------------------------------------
 /var/tmp/portage/dev-lang/ghc-6.10.4/work/usr/bin/ghc -package-conf
 /var/tmp/portage/dev-
 lang/ghc-6.10.4/work/ghc-6.10.4/libraries/bootstrapping.conf -H32m -O
 -optc-march=native -opta-march=native -optc-nopie -optl-nopie -opta-Wa,--
 noexecstack -w -package pretty -fforce-recomp    -c GenApply.hs -o
 GenApply.o  -ohi GenApply.hi
 /var/tmp/portage/dev-lang/ghc-6.10.4/work/usr/bin/ghc -M -dep-makefile
 .depend  -osuf o -package-conf /var/tmp/portage/dev-
 lang/ghc-6.10.4/work/ghc-6.10.4/libraries/bootstrapping.conf    -package-
 conf /var/tmp/portage/dev-
 lang/ghc-6.10.4/work/ghc-6.10.4/libraries/bootstrapping.conf -H32m -O
 -optc-march=native -opta-march=native -optc-nopie -optl-nopie -opta-Wa,--
 noexecstack -w -package pretty -fforce-recomp GenApply.hs
 /var/tmp/portage/dev-lang/ghc-6.10.4/work/usr/bin/ghc -o genapply
 -package-conf /var/tmp/portage/dev-
 lang/ghc-6.10.4/work/ghc-6.10.4/libraries/bootstrapping.conf -H32m -O
 -optc-march=native -opta-march=native -optc-nopie -optl-nopie -opta-Wa,--
 noexecstack -w -package pretty -fforce-recomp    -fno-PIE   GenApply.o
 ghc: unrecognised flags: -fno-PIE
 Usage: For basic information, try the `--help' option.
 make[2]: *** [genapply] Error 1
 Failed making boot in genapply: 1
 make[1]: *** [boot] Error 1
 make: *** [stage1] Error 1

 notice that -fno-PIE is directly sent here, unlike other commands listed
 above. Why it is sent here? SRC_LD_OPTS should be sent directly to ld,
 shouldn't it?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3668#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to