Gundapaneni, Sumanth
2014-Dec-01 22:42 UTC
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
Hi, I wonder if this is a valid flag in either clang/gcc. The flag in question is "-march=aarch64". I verified with latest tip and neither clang nor gcc fail to recognize this flag. This piece of code is in cmake/config-ix.cmake in compiler-rt repo. + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64") + test_target_arch(aarch64 "-march=aarch64") Anyone have any thoughts or any suggestions ? Currently this is blocking my compiler-rt build for aarch64-linux. --Sumanth G -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141201/2016182c/attachment.html>
Gundapaneni, Sumanth
2014-Dec-04 19:48 UTC
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
Ping From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Gundapaneni, Sumanth Sent: Monday, December 01, 2014 2:43 PM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang Hi, I wonder if this is a valid flag in either clang/gcc. The flag in question is "-march=aarch64". I verified with latest tip and neither clang nor gcc fail to recognize this flag. This piece of code is in cmake/config-ix.cmake in compiler-rt repo. + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64") + test_target_arch(aarch64 "-march=aarch64") Anyone have any thoughts or any suggestions ? Currently this is blocking my compiler-rt build for aarch64-linux. --Sumanth G -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141204/3794ee4d/attachment.html>
Renato Golin
2014-Dec-10 15:06 UTC
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
Hi Sumanth, Christophe (cc'd) is seeing the same problems on his build. It seems that r181130 (by Tim) has something to do with it, but I'm not sure. I remember trying to build compiler-rt on AArch64 natively in February, and even running the test-suite with it, so I'm sure it should work (modulo regressions). We desperately need a full buildbot on AArch64, but we also need to common up all docs, especially the one in the sanitizer's page, since they're not following what the rest of the LLVM community is doing, ie. building all in one tree. cheers, --renato On 1 December 2014 at 22:42, Gundapaneni, Sumanth <sgundapa at quicinc.com> wrote:> Hi, > > I wonder if this is a valid flag in either clang/gcc. > > The flag in question is “-march=aarch64”. I verified with latest tip and > neither clang nor gcc fail to recognize this flag. > > This piece of code is in cmake/config-ix.cmake in compiler-rt repo. > > > > + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64") > > + test_target_arch(aarch64 "-march=aarch64") > > > > Anyone have any thoughts or any suggestions ? Currently this is blocking my > compiler-rt build for aarch64-linux. > > > > --Sumanth G
Christophe Lyon
2014-Dec-10 15:32 UTC
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
On 10 December 2014 at 16:06, Renato Golin <renato.golin at linaro.org> wrote:> Hi Sumanth, > > Christophe (cc'd) is seeing the same problems on his build. It seems > that r181130 (by Tim) has something to do with it, but I'm not sure. > > I remember trying to build compiler-rt on AArch64 natively in > February, and even running the test-suite with it, so I'm sure it > should work (modulo regressions). >Removing compiler-rt from projects sources enables cmake step to succeed. The error message is: [...] CMake Error at projects/compiler-rt/cmake/config-ix.cmake:87 (message): Cannot compile for aarch64: [...] Building CXX object CMakeFiles/cmTryCompileExec4274316732.dir/simple.cc.o /usr/bin/c++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -ffunction-sections -fdata-sections -march=aarch64 -o CMakeFiles/cmTryCompileExec4274316732.dir/simple.cc.o -c /home/christophe.lyon/LLVM-sanitizers/build-cmake/CMakeFiles/simple.cc /home/christophe.lyon/LLVM-sanitizers/build-cmake/CMakeFiles/simple.cc:1:0: error: unknown value 'aarch64' for -march Not sure what r181130 is supposed to do, though, since it introduces a buggy option.> We desperately need a full buildbot on AArch64, but we also need to > common up all docs, especially the one in the sanitizer's page, since > they're not following what the rest of the LLVM community is doing, > ie. building all in one tree. >I should also mention that the doc at http://clang.llvm.org/get_started.html should be updated since it seems that configure is deprecated in favor of cmake. Christophe.> cheers, > --renato > > On 1 December 2014 at 22:42, Gundapaneni, Sumanth <sgundapa at quicinc.com> wrote: >> Hi, >> >> I wonder if this is a valid flag in either clang/gcc. >> >> The flag in question is “-march=aarch64”. I verified with latest tip and >> neither clang nor gcc fail to recognize this flag. >> >> This piece of code is in cmake/config-ix.cmake in compiler-rt repo. >> >> >> >> + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64") >> >> + test_target_arch(aarch64 "-march=aarch64") >> >> >> >> Anyone have any thoughts or any suggestions ? Currently this is blocking my >> compiler-rt build for aarch64-linux. >> >> >> >> --Sumanth G
Seemingly Similar Threads
- [LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
- [LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
- [LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
- LLVMTargetMachine with optimization level passed from clang.
- [LLVMdev] C++ demangler for llvm tools