
#7652: Testing freezes on FreeBSD 9.1. ---------------------------------+------------------------------------------ Reporter: kazu-yamamoto | Owner: pgj Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: FreeBSD Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by pgj): Replying to [comment:7 kazu-yamamoto]:
After commenting out of {{{ SRC_CC_WARNING_OPTS += -Werror=unused-but-set-variable }}} in mk/validate-settings.mk, "validate" finished.
I am not sure that this is the right solution as `gcc47` shall support this flag. I believe this is just a consequence of the problem you have mentioned here: `gcc`, i.e. the base compiler is invoked instead of `gcc47`. The base `gcc` does not support the flag as it is of version 4.2.1. Note that invoking `cc` is the same as invoking `gcc` (4.2.1). By the way, you may want to try setting the `CC` environment variable to `/usr/local/bin/gcc47` as well.
We should write an document about python on FreeBSD.
I have tracked down the source of the problem: it turned out the aforementioned modification for the run-time system [http://lists.freebsd.org/pipermail/freebsd-python/2013-April/005376.html is not needed] so if you just remove the associated patch and rebuild your `lang/python27` port without `PTH` everything shall just work. I am hoping to see this issue fixed in the Ports Collection so users will not be affected by this any more. However, I can mention this in the [wiki:Building/Preparation/FreeBSD FreeBSD Building Guide]. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7652#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler