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

Xcode 4.5 project warning - "Upgrade Compiler configuration to LLVM"

I moved a project originally coded in XCode 4.2 to XCode 4.5 and now I am getting the following warning when i build - The compiler configuration is set to 'com.apple.compilers.llvmgcc42'. This will upgrade to 'Apple LLVM compiler 4.1', which is…
Tushar Koul
  • 2,830
  • 3
  • 31
  • 62
1
vote
0 answers

linker error on the llvm gcc compiler for the simulator only

We are in the process of moving our project from LLVM GCC to Apple LLVM. One of the libraries we have is built only for arm and not i386. This is causing issues where we get the warning on the simulator build after which we not end up linking…
FatalError
  • 574
  • 1
  • 7
  • 18
1
vote
0 answers

Integrating LLVM-GCC with eclipse

I'm currently doing some development on the llvm-gcc compiler, using llvm-gcc-4.2-2.0 front-end and the llvm-2.9 back-end. For about seven months I've been doing the development using text viewers, building the compiler using the terminal and…
1
vote
1 answer

C++ Standard Library found in .mm files but not in the .h (Xcode 4.5 LLVM GCC 4.2)

I'm trying to use std::vector in a iOS6.0 application developped in Xcode 4.5 compiled with LLVM GCC 4.2 and I renamed with the .mm extension the files I'm using C++ in. But for some reason, the headers associated with those .mm don't get compiled…
webaba
  • 651
  • 4
  • 17
1
vote
0 answers

gcc g++ intermediate assembly error

Occasionally, I try to compile some code but g++ seems to create bad temporary assembly along the lines of: $ g++ -m32 -o foobar foo.cc bar.cc -O2 -lm -Wall /var/folders/dz/yk2hf77n13x362dhx14czh4r0000gn/T//cc08wrgL.s:6011:FATAL:Symbol label already…
koan
  • 3,596
  • 2
  • 25
  • 35
1
vote
3 answers

Installing scikit: gcc-4.2 not found, using Clang instead

When trying to install scikit on my Mac (OS X Lion) I stumbled upon this error: gcc-4.2 not found, using clang instead. I searched how to fix this and it seems that the environment variable CC is not correctly set. My question now is, how can I…
Olivier_s_j
  • 5,490
  • 24
  • 80
  • 126
1
vote
1 answer

How resolve error:Conflicting type for "snprintf"

In my app i used Compiler for C/C++/Objective-C is Apple LLVM compiler 4.1 for simulator. For simulator this is working. When i compiling same code for Device i changed Compiler for C/C++/Objective-C is LLVM GCC 4.2. This time i am getting error in…
sreenivas
  • 399
  • 2
  • 5
  • 20
1
vote
0 answers

Gcc Eclipse checking

I use eclipse for C/C++ programming on a macOS Lion. Recently I've installed the new gcc version, gcc-mp-4.7, with macPorts. Then I have substituted this new version with the older one, the default X-code 4.2.1, using the port select command. Now…
LaterAlex
  • 11
  • 1
1
vote
1 answer

Xcode 4.1.1 Crashes with Phonegap 2.0.0 and BarcodeScanner Plugin

Upon "Adding Files to Project ..." within Xcode that are either .mm or .cpp, Xcode pauses then crashes. I have Xcode 4.4.1 installed with Phonegap 2.0.0 properly setup. I am using the Phonegap BarcodeScanner plugin from this master…
ninu
  • 890
  • 2
  • 10
  • 26
1
vote
1 answer

Compiling LLVM 2.9's gcc 4.2 on kernel 3.0 with gcc 4.6

I'm trying to get llvm-gcc 4.2.2.9 to compile on this x86_64 system which runs the 3.0.0-21-generic kernel. llvm 2.9 itself builds fine. I suspected the downloadable version of llvm-gcc was causing some other problems, so I decided to build llvm-gcc…
bitmask
  • 32,434
  • 14
  • 99
  • 159
1
vote
1 answer

"GCC could not be found" while installing Fontforge on os x

Just want to install Fontforge on mac os x, and firstly tried: brew install fontforge but got Error: Failed executing: make (fontforge.rb:38) and then tried brew install fontforge --use-clang but still the same error. Then I tried brew install…
iceX
  • 443
  • 1
  • 4
  • 11
0
votes
1 answer

Warning when using anonymous structures in a 4D matrix type

I'm trying to define a 4-d matrix type in C (for use in the iOS/ObjC environment) that is encapsulated (so not a bare array), and that can be accessed using indexed values or via named struct members. This is my attempt: typedef union { float…
Ben Zotto
  • 70,108
  • 23
  • 141
  • 204
0
votes
1 answer

Compilation errors while trying to link LLVM library

I am trying to use some LLVM API in my C++ code, and I end up getting linker errors. I am working on Apple MacOSX Lion. Using g++ for the compile. It is the CreateGlobalStringPtr which is throwing the error. This is LLVM 3.0. Here's the code:…
Fanatic23
  • 3,378
  • 2
  • 28
  • 51
0
votes
2 answers

Building Ruby 1.9.3 on Lion with Xcode 4.2 using ./configure --with-gcc=clang

My environment: Mac OS X v10.7.2 with Xcode 4.2.1 I am trying to build ruby 1.9.3 on Lion with Xcode 4.2.1. I understand there's an issue with the llvm-based gcc compiler that comes with Xcode 4.2.1. But I'm trying to work around it by following…
RBR
  • 999
  • 3
  • 13
  • 24
0
votes
1 answer

Malformed metadata for architecture i386 - LLVM error

I am getting an extremely frustrating error from the compiler in one of my projects. After changing a few compiler settings for optimization, things were working beautifully, until I tried to test on the simulator. I get this error: ld: in…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92