Displaying 4 results from an estimated 4 matches for "cc7jazv".
Did you mean:
cc7jazve
2009 Feb 26
3
[LLVMdev] LLVM compile with -emit-llvm
...ation. If you remove the -g flag from
the command I posted previously, the problem remains. Either way, I
updated my tree recently.
Oddly enough, -emit-llvm affects the compile for me without -c or -S.
When I run the aforementioned command, llvm-gcc outputs the following:
ld warning: in /var/tmp//cc7JazVe.o, file is not of required architecture
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
On Thu, Feb 26, 2009 at 12:39 PM, Dale Johannesen <dalej at apple.com> wrote:
>
> On Feb 26, 2009, at...
2009 Feb 26
0
[LLVMdev] LLVM compile with -emit-llvm
...from
> the command I posted previously, the problem remains. Either way, I
> updated my tree recently.
>
> Oddly enough, -emit-llvm affects the compile for me without -c or -S.
> When I run the aforementioned command, llvm-gcc outputs the following:
>
> ld warning: in /var/tmp//cc7JazVe.o, file is not of required
> architecture
> Undefined symbols:
> "_main", referenced from:
> start in crt1.10.5.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>> On Feb 26, 2009, at 10:16 AMPST, Brice Lin wrote:
>>
>>> I...
2009 Feb 26
0
[LLVMdev] LLVM compile with -emit-llvm
On Feb 26, 2009, at 10:16 AMPST, Brice Lin wrote:
> Is it possible to add any flags to this command so that the resulting
> compile runs perfectly fine (-c builds, but does not work)?
>
> llvm-gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized
> -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset
> -emit-llvm <filename.c>
>
> where
2009 Feb 26
2
[LLVMdev] LLVM compile with -emit-llvm
Is it possible to add any flags to this command so that the resulting
compile runs perfectly fine (-c builds, but does not work)?
llvm-gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset
-emit-llvm <filename.c>
where <filename.c> contains
#include <stdio.h>
int main() {
exit(0);
}
Thanks