Questions tagged [llvm-gcc]

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

llvm-gcc is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.

218 questions
1
vote
1 answer

LLVM calling Loop Pass from function Pass

I am writing an LLVM Function pass. I would like to call Loop Pass on each of Loops in the function. However I am not able to call a Loop Pass from Function Pass. When I add addRequired for required loop pass, it gives error that it can't schedule…
coder hacker
  • 4,819
  • 1
  • 25
  • 50
1
vote
0 answers

bignum.c compiler error building MRI ruby 1.9.3 on mavericks: expected '=' ... before '{' token

I am new to ruby rvm .bash_profile etc. I am trying to install ruby 1.9.3 because I need to use some knife commands and I am unable to do so. Here is my terminal output BELC02LL1MLFD58:~ vananthraman$ rvm install 1.9.3 Warning! PATH is not properly…
Vijay kris
  • 11
  • 2
1
vote
0 answers

llvm-g++ compile "hello world" error: internal compiler error: Segmentation fault

I am quite new to c++,and this is my development configuration: llvm 3.5 gcc+ 4.8 ubuntu 14.04 64bit eclipse 4.3 This is a "hello world" content generated by eclipse #include using namespace std; int main() { cout << "!!!Hello…
Alex Luya
  • 9,412
  • 15
  • 59
  • 91
1
vote
1 answer

problem with link-time optimization in Xcode

Should I turn on "Generate Debug Symbols" in Xcode for release configuration? When it and "Link Time Optimization" are turned on Xcode show warning: GenerateDSYMFile build/Release/cocoa_tutorial5.app.dSYM…
Ariel
  • 668
  • 8
  • 16
1
vote
0 answers

Integrating ffmpeg in xcode5, Cannot find gcc

I have been trying to integrate ffmpeg in xcode5. The step [here][1] [1]: FFMPEG integration on iphone/ ipad project says that cc parameter needs to be gcc in iphoneOs.platform. But I could not find it in my xcode5. It is present in xcode 4.6.3 that…
1
vote
1 answer

KLEE WARNING undefined function

I've compiled Wireshark into LLVM then I proceeded to link against some libraries which I also compiled into LLVM. The libraries I linked were libwsutil, libz and libpcap. However KLEE still gives me a warning for undefined function for libpcap. I…
drum
  • 5,416
  • 7
  • 57
  • 91
1
vote
1 answer

cross-compile Jansson C library for iOS

I am trying to cross compile Jansson for iOS (armv7) from my machine (x86_64). I have learned that with xcode 5, apple has removed llvm-gcc and thus, armv7-apple-darwin-gcc can't be found. The result lib is compiled for x86_64 instead. This is my…
KDaker
  • 5,899
  • 5
  • 31
  • 44
1
vote
2 answers

GCC Undefined symbols

I recently ditched MacPorts for Homebrew, as a result im now experiencing some issues with make. Namely this error: /Developer/usr/bin/llvm-gcc -rdynamic -o zsh main.o `cat stamp-modobjs` -liconv -ldl -ltermcap -lm -lc Undefined symbols: …
JP Silvashy
  • 46,977
  • 48
  • 149
  • 227
1
vote
1 answer

Why does builtin_expect taken in a long instead of a bool?

I was going through the GCC manual http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html I had the following question about builtin_expect long __builtin_expect (long exp, long c) Why is the exp of long type when the type should have been bool…
KodeWarrior
  • 3,538
  • 3
  • 26
  • 40
1
vote
1 answer

Command 'llvm-gcc-4.2' failed with exit status 1

I'm installing a package through pip and it's failing due to the following error: Running setup.py install for pylibmc running install running build running build_py running build_ext building '_pylibmc' extension …
AlexQueue
  • 6,353
  • 5
  • 35
  • 44
1
vote
3 answers

How to see the changes made by llvm transformation passes

How to see the changes made by transformation passes(like dead code elimination) in the c program.Like if I run following command on terminal it create a .bc file by which I can see the IR. But how to see the changes made by -dce in c…
user2167322
  • 139
  • 1
  • 1
  • 8
1
vote
1 answer

Objective C chaining properties

While this may be a total n00b question, I haven't encountered a situation like this before and was a bit stunned. I have a few Objective C classes and each has a few properties declared. All properties are properly declared and synthesized. …
Maggie
  • 7,823
  • 7
  • 45
  • 66
1
vote
1 answer

Undefined symbols for architecture x86_64: Mac OS 10.8

So generally, I know what this error means. But here's what's unique to my issue - I do have the (static) library with the symbols the linker is unable to find. I ran the 'nm' to verify this, explicitly looking for the x86_64 symbols. They're…
1
vote
1 answer

Link Mosquitto with gcc on OSX

I am new to Mosquitto and I am tying to write a simple C client connecting to Mosquitto's test server: http://test.mosquitto.org/ Here is the code of the simple C client which is 99.9% of an example found on Mosquitto's site:…
1
vote
1 answer

LLVM : inject debugging lines in C++ source code

I have downloaded LLVM 3.1 and build it successfully. My requirement is to add some few debugging lines in a C++ source code files. I have coded module using CLANG 3.1. But CLANG reports a lot of AST error which gcc does not. Note my code compiles…
Programmer
  • 8,303
  • 23
  • 78
  • 162