[cfe-users] CMake fails to build Clang for Visual C++ / Windows 7 - 32-bit

Kim Gräsman kim.grasman at gmail.com
Thu May 23 12:25:27 PDT 2013


Hi Asif,

It looks like a test failure.

I don't know enough about LLVM or Clang at larget to understand the
details, but I guess a 100% functioning llvm-mc isn't necessary for
Clang to do its work.

Please keep questions on the list and you might get replies from
people who know what they're talking about.

- Kim

On Thu, May 23, 2013 at 2:51 PM, asif saeed <asif.lse2 at gmail.com> wrote:
> Hi Kim,
>
> I have finally built clang with one error - but I can still run clang.exe
> and clang++.exe on my Windows7 command-line. Here is the build-error that I
> got in Visual Studio 2012 while building LLVM.sln - please see the last-line
> to see the error - I get this error in my error-list:
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 233>  FAIL: LLVM :: MC/AArch64/tls-relocs.s (4838 of 8131)
> 233>  ******************** TEST 'LLVM :: MC/AArch64/tls-relocs.s' FAILED
> ********************
> 233>  Script:
> 233>  --
> 233>  C:/llvm_clang/build/bin/Release/llvm-mc.EXE
> -triple=aarch64-none-linux-gnu -show-encoding <
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s |
> C:/llvm_clang/build/bin/Release/FileCheck.EXE
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s
> 233>  C:/llvm_clang/build/bin/Release/llvm-mc.EXE
> -triple=aarch64-none-linux-gnu -filetype=obj <
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s -o - |    llvm-readobj -r -t
> | C:/llvm_clang/build/bin/Release/FileCheck.EXE --check-prefix=CHECK-ELF
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s
> 233>  --
> 233>  Exit Code: 1
> 233>  Command Output (stdout):
> 233>  --
> 233>  Command 0: "C:/llvm_clang/build/bin/Release/llvm-mc.EXE"
> "-triple=aarch64-none-linux-gnu" "-show-encoding"
> 233>  Command 0 Result: 0
> 233>  Command 0 Output:
> 233>
> 233>
> 233>  Command 0 Stderr:
> 233>
> 233>
> 233>  Command 1: "C:/llvm_clang/build/bin/Release/FileCheck.EXE"
> "C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s"
> 233>  Command 1 Result: 1
> 233>  Command 1 Output:
> 233>
> 233>
> 233>  Command 1 Stderr:
> 233>  C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s:33:16: error:
> CHECK-NEXT: is not on the line after the previous match
> 233>  // CHECK-NEXT: movn x6, #:dtprel_g1:var // encoding:
> [0x06'A',A,0xa0'A',0x92'A']
> 233>                 ^
> 233>  <stdin>:61:2: note: 'next' match was here
> 233>   movn x6, #:dtprel_g1:var // encoding: [0x06'A',A,0xa0'A',0x92'A']
> 233>   ^
> 233>  <stdin>:59:79: note: previous match ended here
> 233>   // fixup A - offset: 0, value: :dtprel_g1:var, kind:
> fixup_a64_movw_dtprel_g1
> 233>
> ^
> 233>
> 233>
> 233>  --
> 233>
> 233>  ********************
> 233>  FAIL: LLVM :: MC/MachO/i386-large-relocations.s (5357 of 8131)
> 233>  ******************** TEST 'LLVM :: MC/MachO/i386-large-relocations.s'
> FAILED ********************
> 233>  Script:
> 233>  --
> 233>  C:/llvm_clang/build/bin/Release/llvm-mc.EXE -triple
> i386-apple-darwin10
> C:\llvm_clang\llvm\test\MC\MachO\i386-large-relocations.s -filetype=obj -o -
> | C:/llvm_clang/build/bin/Release/macho-dump.EXE |
> C:/llvm_clang/build/bin/Release/FileCheck.EXE
> C:\llvm_clang\llvm\test\MC\MachO\i386-large-relocations.s
> 233>  --
> 233>  Exit Code: 1
> 233>  Command Output (stdout):
> 233>  --
> 233>  Command 0: "C:/llvm_clang/build/bin/Release/llvm-mc.EXE" "-triple"
> "i386-apple-darwin10"
> "C:\llvm_clang\llvm\test\MC\MachO\i386-large-relocations.s" "-filetype=obj"
> "-o" "-"
> 233>  Command 0 Result: 1
> 233>  Command 0 Output:
> 233>
> 233>
> 233>  Command 0 Stderr:
> 233>CUSTOMBUILD : LLVM error : IO failure on output stream.
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Could you please help me on this one? What does it suggest? Why is clang
> still working if the whole build has failed? Is the error related to one of
> the tools/EXEs in the build/bin/release directory?
>
> Thank you very much and best regards,
> -Asif

On Thu, May 23, 2013 at 2:51 PM, asif saeed <asif.lse2 at gmail.com> wrote:
> Hi Kim,
>
> I have finally built clang with one error - but I can still run clang.exe
> and clang++.exe on my Windows7 command-line. Here is the build-error that I
> got in Visual Studio 2012 while building LLVM.sln - please see the last-line
> to see the error - I get this error in my error-list:
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 233>  FAIL: LLVM :: MC/AArch64/tls-relocs.s (4838 of 8131)
> 233>  ******************** TEST 'LLVM :: MC/AArch64/tls-relocs.s' FAILED
> ********************
> 233>  Script:
> 233>  --
> 233>  C:/llvm_clang/build/bin/Release/llvm-mc.EXE
> -triple=aarch64-none-linux-gnu -show-encoding <
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s |
> C:/llvm_clang/build/bin/Release/FileCheck.EXE
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s
> 233>  C:/llvm_clang/build/bin/Release/llvm-mc.EXE
> -triple=aarch64-none-linux-gnu -filetype=obj <
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s -o - |    llvm-readobj -r -t
> | C:/llvm_clang/build/bin/Release/FileCheck.EXE --check-prefix=CHECK-ELF
> C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s
> 233>  --
> 233>  Exit Code: 1
> 233>  Command Output (stdout):
> 233>  --
> 233>  Command 0: "C:/llvm_clang/build/bin/Release/llvm-mc.EXE"
> "-triple=aarch64-none-linux-gnu" "-show-encoding"
> 233>  Command 0 Result: 0
> 233>  Command 0 Output:
> 233>
> 233>
> 233>  Command 0 Stderr:
> 233>
> 233>
> 233>  Command 1: "C:/llvm_clang/build/bin/Release/FileCheck.EXE"
> "C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s"
> 233>  Command 1 Result: 1
> 233>  Command 1 Output:
> 233>
> 233>
> 233>  Command 1 Stderr:
> 233>  C:\llvm_clang\llvm\test\MC\AArch64\tls-relocs.s:33:16: error:
> CHECK-NEXT: is not on the line after the previous match
> 233>  // CHECK-NEXT: movn x6, #:dtprel_g1:var // encoding:
> [0x06'A',A,0xa0'A',0x92'A']
> 233>                 ^
> 233>  <stdin>:61:2: note: 'next' match was here
> 233>   movn x6, #:dtprel_g1:var // encoding: [0x06'A',A,0xa0'A',0x92'A']
> 233>   ^
> 233>  <stdin>:59:79: note: previous match ended here
> 233>   // fixup A - offset: 0, value: :dtprel_g1:var, kind:
> fixup_a64_movw_dtprel_g1
> 233>
> ^
> 233>
> 233>
> 233>  --
> 233>
> 233>  ********************
> 233>  FAIL: LLVM :: MC/MachO/i386-large-relocations.s (5357 of 8131)
> 233>  ******************** TEST 'LLVM :: MC/MachO/i386-large-relocations.s'
> FAILED ********************
> 233>  Script:
> 233>  --
> 233>  C:/llvm_clang/build/bin/Release/llvm-mc.EXE -triple
> i386-apple-darwin10
> C:\llvm_clang\llvm\test\MC\MachO\i386-large-relocations.s -filetype=obj -o -
> | C:/llvm_clang/build/bin/Release/macho-dump.EXE |
> C:/llvm_clang/build/bin/Release/FileCheck.EXE
> C:\llvm_clang\llvm\test\MC\MachO\i386-large-relocations.s
> 233>  --
> 233>  Exit Code: 1
> 233>  Command Output (stdout):
> 233>  --
> 233>  Command 0: "C:/llvm_clang/build/bin/Release/llvm-mc.EXE" "-triple"
> "i386-apple-darwin10"
> "C:\llvm_clang\llvm\test\MC\MachO\i386-large-relocations.s" "-filetype=obj"
> "-o" "-"
> 233>  Command 0 Result: 1
> 233>  Command 0 Output:
> 233>
> 233>
> 233>  Command 0 Stderr:
> 233>CUSTOMBUILD : LLVM error : IO failure on output stream.
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Could you please help me on this one? What does it suggest? Why is clang
> still working if the whole build has failed? Is the error related to one of
> the tools/EXEs in the build/bin/release directory?
>
> Thank you very much and best regards,
> -Asif
>
>
>
> On Wed, May 22, 2013 at 5:43 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
>>
>> Hi Asif,
>>
>> On Wed, May 22, 2013 at 2:21 PM, asif saeed <asif.lse2 at gmail.com> wrote:
>> >
>> > Now it emits another set of errors:
>> >
>> > ---------------------------------------------------------------
>> >
>> > ----------------------------------------------------------------------------------------------------------------------------
>> > -- Clang version: 3.4
>> > -- Found Subversion: C:/Program Files/TortoiseSVN/bin/svn.exe (found
>> > version
>> > "1.7.9")
>> > -- Expecting header to go in
>> > C:/llvm_clang/build/tools/clang/lib/Basic/SVNVersion.inc
>> > CMake Error at C:/Program Files/CMake
>> > 2.8/share/cmake-2.8/Modules/FindSubversion.cmake:83 (message):
>> >   Command "C:/Program Files/TortoiseSVN/bin/svn.exe info
>> > C:/llvm_clang/llvm"
>> >   failed with output:
>> >
>> >   svn: E155036: Please see the 'svn upgrade' command
>> >
>> >   svn: E155036: Working copy 'C:\llvm_clang\llvm' is too old (format 10,
>> >   created by Subversion 1.6)
>>
>> It looks like the working copy was created by an older SVN than the
>> one used by CMake.
>>
>> Either use SVN 1.7.9 to check out the working copy or put SVN 1.6 in
>> the PATH so that CMake uses it.
>>
>> > Could you or anybody else help me on this?
>>
>> Please keep the cfe-users list in CC, because I will soon be out of my
>> depth :-)
>>
>> - K
>
>




More information about the cfe-users mailing list