[cfe-dev] !!! 3.2 Release RC3 source code available for download and testing

Alexey Samsonov samsonov at google.com
Mon Dec 10 00:33:30 PST 2012


On Sun, Dec 9, 2012 at 11:10 PM, Marc J. Driftmeyer <mjd at reanimality.com>wrote:

>  With the latest from Debian 4.7.2-13 for GCC.
>
> Checkout of llvm trunk, clang trunk, compiler-rt, test-suite, lldb, libcxx
> [neither lldb/libcxx impacted as they aren't presently ready for llvm/clang
> on Linux] at revision 169724
>
> Given: defaults to x86 amd64 but using a default build of all available
> targets in cmake's configuration.
>
> Results:
>
> [100%] [100%] Generating asan_benchmarks_test.cc.asan.o
> Generating asan_test.cc.asan.o
>
> In file included from
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:
> In file included from
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10:
> fatal error:
>       'vector' file not found
> #include <vector>
>          ^
> In file included from
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:31:
>
> In file included from
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10:
> fatal error:
>       'vector' file not found
> #include <vector>
>          ^
> Linking CXX executable ../../../../bin/c-index-test
> [100%] Built target c-index-test
> [100%] 1 error generated.
>
> make[2]: ***
> [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o] Error 1
> make[1]: ***
> [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all]
> Error 2
> make[1]: *** Waiting for unfinished jobs....
> Generating asan_globals_test.cc.asan.o
>
> 1 error generated.
> make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o]
> Error 1
> make[1]: ***
> [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all] Error 2
> make: *** [all] Error 2
> mdriftmeyer at horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$
>
>
>
>  I run into the error of not finding <vector>
>

What would happen if you:
1) configure cmake build directory
2) run "make clang" in it
3) try to use fresh ./bin/clang to compile some random file which has
"#include <vector>" or "#include <stdio.h>"?


>
>
>
> On 12/08/2012 10:50 AM, Alexey Samsonov wrote:
>
> If this helps: compilation of asan_globals_test.cc and asan_test.cc differ
> in the sense that they are
> compiled with just-built Clang. Don't know if it makes any difference for
> header lookup.
> Can you check if fresh Clang can build regular .cc file which includes
> stdio.h?
>
>
> On Fri, Dec 7, 2012 at 8:27 PM, Marc J. Driftmeyer <mjd at reanimality.com>wrote:
>
>>  Unfortunately that just produced more errors:
>>
>> Generating asan_globals_test.cc.asan.o
>>
>> In file included from
>> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:
>> In file included from
>> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
>> In file included from
>> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:
>> In file included from
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/vector:60:
>>  In file included from
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_algobase.h:60:
>> In file included from
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/bits/c++config.h:414:
>> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/bits/os_defines.h:40:10:
>> fatal error:
>>       'features.h' file not found
>> #include <features.h>
>>
>>          ^
>> /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:13:10:
>> fatal error:
>>       'stdio.h' file not found
>> #include <stdio.h>
>>          ^
>>  1 error generated.
>> make[2]: ***
>> [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o] Error 1
>> make[1]: ***
>> [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all]
>> Error 2
>> make[1]: *** Waiting for unfinished jobs....
>> 1 error generated.
>> make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o]
>> Error 1
>> make[1]: ***
>> [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all] Error 2
>> make: *** [all] Error 2
>> mdriftmeyer at horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$
>>
>>  This is how Debian experimental currently has their stdc++ headers:
>>
>> http://packages.debian.org/experimental/amd64/libstdc++6-4.7-dev/filelist
>>
>> I imagine the maintainer at Debian will pick this up with your patch and
>> test to get this resolved.
>>
>>
>> - Marc
>>
>>
>> On 12/07/2012 04:04 PM, Joerg Sonnenberger wrote:
>>
>> On Fri, Dec 07, 2012 at 03:29:25PM -0800, Marc J. Driftmeyer wrote:
>>
>>  For a couple weeks on trunk since Debian made some pathway changes
>> with GCC I can't compile the Unit Tests for LLVM because the pathway
>> to bits/c++config.h cannot be found.
>>
>>  http://www.netbsd.org/~joerg/ToolChains.cpp.diff as workaround.
>>
>> Joerg
>> _______________________________________________
>> cfe-dev mailing listcfe-dev at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>>   --
>> Marc J. Driftmeyer
>> Email :: mjd at reanimality.com
>> Web :: http://www.reanimality.com
>> Cell :: (509) 435-5212
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>>
>
>
>  --
> Alexey Samsonov, MSK
>
>
> --
> Marc J. Driftmeyer
> Email :: mjd at reanimality.com
> Web :: http://www.reanimality.com
> Cell :: (509) 435-5212
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121210/8a4b1452/attachment.html>


More information about the cfe-dev mailing list