Linux/ARM: Bus error with -O3 flag of clang/llvm-3.6 while running unit-test of .NET Core

Geunsik Lim via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 18 04:33:56 PDT 2016


> There's also this:
http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html#alignment
Thanks.

>  Like, which -march -target -mcpu -mfpu options?
Below is all flags of clang-3.6 while building 'twowaypipe.cpp'  file as
one example.

* With -O3 of clang/llvm-3.6:
cd /work/dotnet/coreclr.git/bin/obj/Linux.arm.Release/src/debug/debug-pal
&& /usr/bin/clang++-3.6
-DARM -DDISABLE_CONTRACTS -DFEATURE_PAL -DLINUX32 -DNDEBUG
-DPAL_IMPLEMENTATION
-DPAL_STDC     PP_COMPAT=1 -DPLATFORM_UNIX=1 -DURTBLDENV_FRIENDLY=Retail
-D_ARM_ -D_POSIX_C_SOURCE=200809L -Wa     ll -Wno-null-conversion
-std=c++11
-g -O3 -I/work/dotnet/coreclr.git/src/debug/debug-pal/../inc
-I/work/dotnet/coreclr.git/src/debug/debug-pal/../../pal/inc
-target armv7-linux-gnueabihf -mthumb -mfpu=vfpv3
--sysroot=/work/dotnet/rootfs-coreclr/arm
-fno-omit-frame-pointer -fms-extensions -fwrapv -fstack-protector-strong
-ferror-limit=4096
-Werror -Wno-unused-private-field -Wno-unused-variable -Wno-microsoft
-Wno-tautological-compare
-Wno-constant-logical-operand -Wno-unknown-warning-option
-Wno-invalid-offsetof
-Wno-incompatible-ms-struct -fsigned-char -fPIC
-o  CMakeFiles/debug-pal.dir/unix/twowaypipe.cpp.o
-c /work/dotnet/coreclr.git/src/debug/debug-pal/unix/twowaypipe.cpp

BRs,
Geunsik Lim.

On Sat, Jun 18, 2016 at 8:17 PM, Renato Golin <renato.golin at linaro.org>
wrote:

> On 18 June 2016 at 12:09, Geunsik Lim <leemgs at gmail.com> wrote:
>
>> Thank you for you opinion. Could you share me the revision numbers of the
>> some fixes from the http://llvm.org/viewvc/llvm-project/ (viewvc)?
>>
>
> Hi,
>
> I don't remember exact commits, these are things I saw mostly post-commit
> review, in the ARM back-end to fix mostly embedded stuff.
>
> There's also this:
> http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html#alignment
>
> This is a big change, cherry-picking won't work...
>
>
> * CPU:
>> ---------------
>> Broadcom BCM2836 SoC, with quad-core ARM Cortex-A7 900 MHz processor
>> ( ARMv7 processor)
>>
>
> Ok, but what are the CPU options you guys are using on the compiler
> itself? Like, which -march -target -mcpu -mfpu options?
>
>
> GNU C Library (Ubuntu EGLIBC 2.19-0ubuntu6.7) stable release version 2.19,
>> by Roland McGrath et al.
>> Compiled by GNU CC version 4.8.2.
>>
>
> I'm guessing Ubuntu Trusty, same as mine.
>
> cheers,
> --renato
>



-- 
http://leemgs.fedorapeople.org
Don't try to avoid pain if you fail.
If you decided to face the challenges in life,
you can gain a lot by giving your best.
Cheolsang Jeong's Book & life
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160618/8ecaf2e0/attachment.html>


More information about the llvm-commits mailing list