[GHC] #8880: Configured gcc not used for some build steps

GHC ghc-devs at haskell.org
Thu Mar 13 09:00:17 UTC 2014


#8880: Configured gcc not used for some build steps
------------------------------------+-------------------------------------
       Reporter:  tibbe             |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Build System      |           Version:  7.9
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 The gcc passed to `./configure --with-gcc` isn't used for all gcc
 invocations, leadings to warnings (and potentially problems) on OS X where
 the default gcc is llvm. Here's an example, the call to `gcc -E` doesn't
 use my configure gcc, `/usr/local/bin/gcc-4.9`:

 {{{
 sed -e 's|\\|/|g' -e 's| /$| \\|' -e "1s|\.o|\.o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.dyn_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.l_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.debug_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.thr_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.thr_debug_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.thr_l_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.debug_dyn_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.thr_dyn_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.thr_debug_dyn_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.l_dyn_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && sed -e 's|\\|/|g' -e
 's| /$| \\|' -e "1s|\.o|\.thr_l_dyn_o|" -e "1s|^|rts/|" -e
 "1s|rts/|rts/dist/build/|" -e "1s|dist/build/dist/build|dist/build|g" -e
 "s|/Users/tibbe/src/ghc/||g" rts/dist/build/.depend-v-dyn-l-debug-thr-
 thr_debug-thr_l-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 >> rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.tmp && true
 gcc -E  -m64 -DPROFILING -DTHREADED_RTS -DDEBUG -Irts/dist/build  -m64
 -fno-stack-protector  -Wall -Wextra -Wstrict-prototypes  -Wmissing-
 prototypes  -Wmissing-declarations -Winline -Waggregate-return -Wpointer-
 arith -Wmissing-noreturn -Wnested-externs -Wredundant-decls  -Iincludes
 -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-
 ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -fno-strict-
 aliasing -fno-common -DDTRACE        -O2 -fomit-frame-pointer
 -DRtsWay=\"rts_v\" -Wno-strict-prototypes     -MM -x c rts/WSDeque.c -MF
 rts/dist/build/.depend-v-dyn-l-debug-thr-thr_debug-thr_l-debug_dyn-
 thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
 no
 checking for sigaction... In file included from rts/WSDeque.c:44:
 In file included from rts/RtsUtils.h:12:
 rts/BeginPrivate.h:9:13: warning: unknown pragma ignored [-Wunknown-
 pragmas]
 #pragma GCC visibility push(hidden)
             ^
 In file included from rts/WSDeque.c:44:
 In file included from rts/RtsUtils.h:48:
 rts/EndPrivate.h:2:13: warning: unknown pragma ignored [-Wunknown-pragmas]
 #pragma GCC visibility pop
             ^
 2 warnings generated.
 }}}

 I can't quite tell from which part of the build this is. Looks RTS
 related.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8880>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list