Simone Atzeni via llvm-dev
2015-Nov-25 17:19 UTC
[llvm-dev] Compiling for AARCH64 (VMA=42)
Hi, I am trying to compile LLVM for AARCH (VMA=42), here my cmake command: cmake -G "Ninja" -D SANITIZER_AARCH64_VMA=42 .. But I get the following warning: ------------------------------------------------------------------------------------------ CMake Warning: Manually-specified variables were not used by the project: SANITIZER_AARCH64_VMA ------------------------------------------------------------------------------------------ is it wrong the way I’m defining the SANITIZER_AARCH64_VMA value? Thanks. Best, Simone
Hi Simone, Can I check- you do have compiler-rt checked out into projects/, right? James On Wed, 25 Nov 2015 at 17:20, Simone Atzeni via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi, > > I am trying to compile LLVM for AARCH (VMA=42), here my cmake command: > > cmake -G "Ninja" -D SANITIZER_AARCH64_VMA=42 .. > > But I get the following warning: > > > ------------------------------------------------------------------------------------------ > CMake Warning: > Manually-specified variables were not used by the project: > > SANITIZER_AARCH64_VMA > > ------------------------------------------------------------------------------------------ > > is it wrong the way I’m defining the SANITIZER_AARCH64_VMA value? > > Thanks. > Best, > Simone > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151125/ee5a60c3/attachment.html>
Simone Atzeni via llvm-dev
2015-Nov-25 17:23 UTC
[llvm-dev] Compiling for AARCH64 (VMA=42)
Yes, I do. Simone> On Nov 25, 2015, at 10:22, James Molloy <james at jamesmolloy.co.uk> wrote: > > Hi Simone, > > Can I check- you do have compiler-rt checked out into projects/, right? > > James > On Wed, 25 Nov 2015 at 17:20, Simone Atzeni via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > Hi, > > I am trying to compile LLVM for AARCH (VMA=42), here my cmake command: > > cmake -G "Ninja" -D SANITIZER_AARCH64_VMA=42 .. > > But I get the following warning: > > ------------------------------------------------------------------------------------------ > CMake Warning: > Manually-specified variables were not used by the project: > > SANITIZER_AARCH64_VMA > ------------------------------------------------------------------------------------------ > > is it wrong the way I’m defining the SANITIZER_AARCH64_VMA value? > > Thanks. > Best, > Simone > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151125/415146a1/attachment.html>
On 25 November 2015 at 17:19, Simone Atzeni via llvm-dev <llvm-dev at lists.llvm.org> wrote:> cmake -G "Ninja" -D SANITIZER_AARCH64_VMA=42 ..Hi Simone, That should actually be in CFLAGS: -DCMAKE_C_FLAGS='-DSANITIZER_AARCH64_VMA=42' -DCMAKE_CXX_FLAGS='-DSANITIZER_AARCH64_VMA=42' It's a bit messy, sorry about that, but we're working on making the VMA settings automatic without flags. cheers, --renato
Simone Atzeni via llvm-dev
2015-Nov-25 17:34 UTC
[llvm-dev] Compiling for AARCH64 (VMA=42)
Oh great thanks! I actually have to do the same for PPC64 (44 and 46 bits). Right now I am doing it in the same way you do for AARCH, so I am defining a SANITIZER_PPC64_VMA variable. The problem is that the check needs to be done at compile time in order to select for example the right memory mapping in san_platform.h. Do you guys have already an idea how to automize that? Best, Simone> On Nov 25, 2015, at 10:29, Renato Golin <renato.golin at linaro.org> wrote: > > On 25 November 2015 at 17:19, Simone Atzeni via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> cmake -G "Ninja" -D SANITIZER_AARCH64_VMA=42 .. > > Hi Simone, > > That should actually be in CFLAGS: > > -DCMAKE_C_FLAGS='-DSANITIZER_AARCH64_VMA=42' > -DCMAKE_CXX_FLAGS='-DSANITIZER_AARCH64_VMA=42' > > It's a bit messy, sorry about that, but we're working on making the > VMA settings automatic without flags. > > cheers, > --renato