<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW " title="NEW --- - bootstrap failure on Linux with gcc 5.1" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24093&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=LFboH3_LVM3FtdDe_QbxDyc1hjzNHUnbvy6bNOag_wA&s=86UkuWwb0tM8yq_t062zRgpisG4fGqjfJIjBrl_KpBk&e=">24093</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bootstrap failure on Linux with gcc 5.1
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bero@linaro.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Trying to build llvm with all the extras (compiler-rt, clang, libc++, ...) in
the tree with gcc 5.1 fails with a sizeof(OFF_T) == sizeof(off_t) assert:

cd
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/build/projects/compiler-rt/lib/interception
&& /usr/bin/g++   -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wnon-virtual-dtor -Wno-comment -std=c++1y
-ffunction-sections -fdata-sections -Wall -std=c++11 -Os -gdwarf-4
-Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector --param=ssp-buffer-size=4  -fPIC
-I/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/build/projects/compiler-rt/lib/interception
-I/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception
-I/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/build/include
-I/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/include
-I/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/..
    -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4  -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wnon-virtual-dtor -Wno-comment -std=c++1y
-ffunction-sections -fdata-sections -Wall -std=c++11 -m32 -fPIC -fno-builtin
-fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector
-fvisibility=hidden -fno-function-sections -fno-lto -Os -g -Wno-variadic-macros
-Wno-non-virtual-dtor -fno-rtti -o
CMakeFiles/RTInterception.i386.dir/interception_type_test.cc.o -c
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/interception_type_test.cc
In file included from
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/interception.h:23:0,
                 from
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/interception_type_test.cc:17:
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/../sanitizer_common/sanitizer_internal_defs.h:253:72:
error: size of array 'assertion_failed__36' is negative
     typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
                                                                        ^
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/../sanitizer_common/sanitizer_internal_defs.h:247:30:
note: in expansion of macro 'IMPL_COMPILER_ASSERT'
 #define COMPILER_CHECK(pred) IMPL_COMPILER_ASSERT(pred, __LINE__)
                              ^
/home/bero/abf/llvm/BUILD/llvm-3.7.0.src/projects/compiler-rt/lib/interception/interception_type_test.cc:36:1:
note: in expansion of macro 'COMPILER_CHECK'
 COMPILER_CHECK(sizeof(::OFF_T) == sizeof(off_t));
 ^
projects/compiler-rt/lib/interception/CMakeFiles/RTInterception.i386.dir/build.make:137:
recipe for target
'projects/compiler-rt/lib/interception/CMakeFiles/RTInterception.i386.dir/interception_type_test.cc.o'
failed
make[2]: ***
[projects/compiler-rt/lib/interception/CMakeFiles/RTInterception.i386.dir/interception_type_test.cc.o]
Error 1


This is on x86_64, looks like it happens while building x86_32 compat libraries
in the sanitizer.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>