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
7
votes
2 answers

Compiling boost::program_options on Mac OS X with g++ 4.8 (Mac Ports)

I'm trying to compile one of the boost::program_options examples, http://svn.boost.org/svn/boost/trunk/libs/program_options/example/first.cpp, using gcc 4.8 (installed via MacPorts). However, I keep getting errors: Undefined symbols for…
htailor
  • 73
  • 1
  • 5
7
votes
2 answers

Using gold in the place of ld as a system linker on fedora

I want to use gold as my system linker instead of ld as ld doesn't support -fPIC and -shared. I followed this particular url to do so, gold-plugin As per the documentation, I ran gcc -v filename.c to find out what link command gcc would run. Then…
6
votes
1 answer

Map between LLVM IR instruction and line of source

How can i store the map between LLVM IR instruction and line of source code if llvm-gcc or dragonegg are used?
Vlad Krylov
  • 2,684
  • 3
  • 21
  • 23
6
votes
1 answer

__float128 is not supported on this target

I am trying to install sentry server on windows via cygwin. While installing it , it fails with the error: /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/c++/type_traits:311:39: error: __float128 is not supported on this target struct…
6
votes
1 answer

Is GCC being replaced by LLVM?

I wonder whether LLVM by virtue of its newer design is to replace GCC in the open-source world? LLVM should feature several techniques of inspecting code, so that IDE's are easier to program etc. However, GCC should still be good in terms of…
Shuzheng
  • 11,288
  • 20
  • 88
  • 186
6
votes
2 answers

Return Void from function LLVM

I have created a function in LLVM IR. Now I want to create a return instruction return void. I saw the function Create ReturnInst::(LLVMContext &C, Value *retVal, BasicBlock *InsertAtEnd) But I don't know what should retVal should be so that it…
coder hacker
  • 4,819
  • 1
  • 25
  • 50
6
votes
3 answers

iOS xCode5 Unsupported compiler 'com.apple.compilers.llvmgcc42' error when compiler set to LLVM 5.0

I'm trying to open one of my older projects, that was built using iOS 6.0. The project used to compile fine, but when opened under xCode 5, I get this cryptic error message. Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
6
votes
2 answers

Java 1.6 Segmentation fault 11 (OSX 10.7.4)

I have .jar file which during runtime reads one .dylib library which I compiled in OSX with GCC compiler. Application runs without any problems on OSX 10.6.8. Java version: java version "1.6.0_33" Java(TM) SE Runtime Environment (build …
uerceg
  • 4,637
  • 6
  • 45
  • 63
5
votes
2 answers

Why does the pip installer expect gcc-4.2 to be the name of the gcc compiler in OS X Lion?

When installing packages in Python using pip, I came across the following error: unable to execute gcc-4.2: No such file or directory Clearly, pip is trying to use gcc-4.2 which is not in any of the binary directories, namely /usr/bin. After…
emish
  • 2,813
  • 5
  • 28
  • 34
5
votes
1 answer

Impact of using LLVM-GCC to resolve issues on 2nd generation device running iOS 4.2.1

I have an app that uses touch events to draw on the screen. I use UITouch locationInView to return the CGPoint of the touch. The problem is that the x and y coordinates are always the same — BUT only on 2nd generation devices running iOS 4.2.1 AND…
jenonen
  • 573
  • 1
  • 5
  • 8
5
votes
2 answers

-[NSDate timeIntervalSinceDate:] returns very small number on GCC 4.2, but works as expected on LLVM-GCC 4.2 on iOS4.3 Simulator

On iOS 4.3 Simulator, the following code returns a very small number: 1e-700 on GCC 4.2, but works as expected on LLVM-GCC 4.2. Any ideas? NSDate *selectedDate = self.datepicker.date; // guaranteed to be before now NSTimeInterval interval =…
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
5
votes
1 answer

Why does Homebrew report "couldn't understand kern.osversion `14.0.0'"?

When I run brew -- config I get HOMEBREW_VERSION: 0.9.5 ORIGIN: https://github.com/Homebrew/homebrew HEAD: bc071fb5448628aea8f066bbc0f37b0ecb4f11ee Last commit: 16 hours ago HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU:…
orome
  • 45,163
  • 57
  • 202
  • 418
5
votes
1 answer

LLVM - How AST can be transformed to IR

I know that an AST generated by the parser is used to generate IR in the frontend. I am wondering how AST to be parsed and then transformed to IR (prob assembly or bitcode), AST is a tree, what are the steps involved in the transformation from AST…
Sam
  • 4,521
  • 13
  • 46
  • 81
5
votes
4 answers

Using iOS 7 SDK with llvm-gcc-4.2

I've installed xcode 5 and noticed that gcc compiler is deprecated. Assuming that I don't want to switch to Apple LLVM 5.0, here come my questions: Is it possible to use iOS7 SDK and still compile in llvm-gcc-4.2? If yes, how to do this? If you…
podkova
  • 1,019
  • 7
  • 16
5
votes
1 answer

Objective-C object subscripting, iOS5, and GCC

I have a library that was compiled against Apple's LLVM 4.2 compiler (Base SDK 6.1). In it there is object subscripting. Imagine that my library has only one class with one method. That method does this: NSLog(@"****** preTests"); NSDictionary…
Ben Flynn
  • 18,524
  • 20
  • 97
  • 142
1
2
3
14 15