Dennis Nguyen via llvm-dev
2019-Oct-03 18:56 UTC
[llvm-dev] LLVM - compile error - error: invalid integral value 'size' in '-Osize'
Hello everyone, I was using LLVM 4.0.3 compiler and able to build my code. When I switch to LLVM 9.0.0, I got the following error:error: invalid integral value 'size' in '-Osize' I use sizeof() function but there is no variable defined as "size".How to resolve the error?Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191003/2f9ffd27/attachment.html>
Nemanja Ivanovic via llvm-dev
2019-Oct-03 19:02 UTC
[llvm-dev] LLVM - compile error - error: invalid integral value 'size' in '-Osize'
Does your invocation of clang involve -Osize? You probably mean -Os -Oz. On Thu, Oct 3, 2019 at 2:56 PM Dennis Nguyen via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello everyone, > > I was using LLVM 4.0.3 compiler and able to build my code. When I switch > to LLVM 9.0.0, I got the following error: > error: invalid integral value 'size' in '-Osize' > > I use sizeof() function but there is no variable defined as "size". > How to resolve the error? > Thanks > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://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/20191003/5c703cca/attachment.html>
Dennis Nguyen via llvm-dev
2019-Oct-03 19:20 UTC
[llvm-dev] LLVM - compile error - error: invalid integral value 'size' in '-Osize'
Thanks Nemanja for quick response.Yes, I just realized that I used -Osize.The
issue is resolved.Regards,Dennis
On Thursday, October 3, 2019, 12:02:40 PM PDT, Nemanja Ivanovic
<nemanja.i.ibm at gmail.com> wrote:
Does your invocation of clang involve -Osize?
You probably mean -Os -Oz.
On Thu, Oct 3, 2019 at 2:56 PM Dennis Nguyen via llvm-dev <llvm-dev at
lists.llvm.org> wrote:
Hello everyone,
I was using LLVM 4.0.3 compiler and able to build my code. When I switch to LLVM
9.0.0, I got the following error:error: invalid integral value 'size' in
'-Osize'
I use sizeof() function but there is no variable defined as "size".How
to resolve the error?Thanks_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
https://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/20191003/d0198b12/attachment.html>