Subject: bug#32397: GCC 4.8 Failed to build.

From: fis trivial <[email-masked]>
Date: Wed, 8 Aug 2018 11:59:30 +0000

guix Version:
     guix (GNU Guix) cc48997de56864191a4a4ed4bed8763139c3add6

Platform:
     Fedora 27

Original command:
     guix environment --ad-hoc [email-masked]

Relevant build log:

mv -f .deps/tsan_clock.Tpo .deps/tsan_clock.Plo
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:587:6: warning: always_inline function might not be inlinable [-Wattributes]
 void FuncExit(ThreadState *thr) {
      ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:557:6: warning: always_inline function might not be inlinable [-Wattributes]
 void FuncEntry(ThreadState *thr, uptr pc) {
      ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:455:6: warning: always_inline function might not be inlinable [-Wattributes]
 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr,
      ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:381:6: warning: always_inline function might not be inlinable [-Wattributes]
 void MemoryAccessImpl(ThreadState *thr, uptr addr,
      ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:355:13: warning: always_inline function might not be inlinable [-Wattributes]
 static void StoreIfNotYetStored(u64 *sp, u64 *s) {
             ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:350:13: warning: always_inline function might not be inlinable [-Wattributes]
 static void StoreShadow(u64 *sp, u64 s) {
             ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_rtl.cc:344:15: warning: always_inline function might not be inlinable [-Wattributes]
 static Shadow LoadShadow(u64 *p) {
               ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_platform_linux.cc: In function ‘int __tsan::ExtractResolvFDs(void*, int*, int)’:
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_platform_linux.cc:295:16: error: ‘statp’ was not declared in this scope
   __res_state *statp = (__res_state*)state;
                ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_platform_linux.cc:295:37: error: expected primary-expression before ‘)’ token
   __res_state *statp = (__res_state*)state;
                                     ^
../../../../gcc-4.8.5/libsanitizer/tsan/tsan_platform_linux.cc:295:38: error: expected ‘;’ before ‘state’
   __res_state *statp = (__res_state*)state;
                                      ^
make[4]: *** [Makefile:475: tsan_platform_linux.lo] Error 1

--
Jiaming