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
0
votes
1 answer

MySQL-python-1.2.4b4 OSX compile error

I tried to install mysql-python from source and the compile seemed to go sell till this error: >running build_ext > >building '_mysql' extension > >ccreating build/temp.macosx-10.7-intel-2.7 >llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g…
sucasa
  • 373
  • 1
  • 8
  • 19
0
votes
2 answers

Undefined reference to .. error (Linux) - Compiles fine in OSX

Have wasted almost full 4 days trying to compile this package. It compiles fine in OSX 10.6, but gives Undefined reference errors when I try to compile it on a linux (Kubuntu 10.04, 3.8.0.27 kernel) machine. The error seem to be that the makefiles…
xcorat
  • 1,434
  • 2
  • 17
  • 34
0
votes
1 answer

MySqlDB: llvm-gcc-4.2: error. Even after installing XCode 4.6.3 and storing MySQL include folder in XAMPP

I took the following steps after reading suggestions from http://andhikalegawa.wordpress.com/2012/01/05/installing-mysql-python-on-snow-leopard-using-xampp-mysql/ Downloaded MySQL-python-1.2.4b4 and unzipped Changed the mysql_config =…
Mukul
  • 1
0
votes
2 answers

XCode Undefined Reference

I have compiled a static library via the command line using llvm-g++-4.2. When I attempt to link against that library and build an app within XCode, I get this: Undefined symbols for architecture armv7: (null):…
automatom
  • 275
  • 2
  • 10
0
votes
2 answers

Indirection operator on const_iterator error

This code std::ostream& operator<<( std::ostream& output, const Array& a) { if (a.empty()) { output << Structural::BEGIN_ARRAY << Structural::END_ARRAY; } else { output << Structural::BEGIN_ARRAY << std::endl; …
Nathan Wehr
  • 393
  • 7
  • 15
0
votes
1 answer

Changing to llvm compiler when deploying iPhone app

I found this: Changing Compiler to llvm-clang on existing iPhone Project But that does not help. I am still getting the error. Setting the BaseSDK to the iPhoneSimulator 3.1 seems to work. But I don't think this is the right thing to do...
Megasaur
  • 626
  • 8
  • 20
0
votes
2 answers

Can GCC compiler compile both Objective-C and C code?

I have the source code for a video decoder which is written in C. The code was successfully compiled and executed on MAC terminal (which uses GCC compiler). Now I'm trying to create an application on Xcode with the same source code. Only the GUI for…
Ereka
  • 103
  • 1
  • 10
0
votes
1 answer

Linking in llvm

I am profiling a few files in Spec2K6 benchmark with a profiler written in LLVM, and cannot understand what is the correct way to link multiple .bc files. For example, the benchmark has concat.c, which uses the xmalloc method defined in xmalloc.c,…
SArora
  • 173
  • 1
  • 10
0
votes
1 answer

SDL 1.3 on Mac OSX Mountain Lion Build Error

I need to use SDL 1.3 for a project I want to start working on but I am having issues compiling it. Here is the terminal output: http://pastebin.com/Ucq6fkfj I previously got the same problem as mentioned in this question and used the answer from…
Nik
  • 1,033
  • 2
  • 11
  • 28
0
votes
2 answers

GCC / LLVM compilation optimization on casts?

I'm writting a series of anonymous functions for an objective-C project (i.e. these functions are not class specific / implementation is hidden) and I came across an interesting issue... I have a macro function: div(c)((CGFloat)c/255.0f) This…
Ryan Dignard
  • 639
  • 1
  • 5
  • 16
0
votes
2 answers

How to get variable definition line number etc. using dbg metadata?

As far as I know, when I need to get the line number of a local variable I had to look for the invocation of the llvm.dbg.declare intrinsics and get the dbg metadata(since AllocaInst itself does not contain any dbg info). However there seems no…
Hongxu Chen
  • 5,240
  • 2
  • 45
  • 85
0
votes
1 answer

Why does this code crash when compiled with Apple LLVM, but not in LLVM/GCC?

I'm trying to get this code: http://code.google.com/p/switchcontrol/source/browse/trunk/code/AFSwitchControl.m compiling under Apple LLVM in Xcode 4.5.2. It works when compiled with LLVM/GCC, but crashes in the mouseDown method when switched to…
K_T
  • 591
  • 7
  • 22
0
votes
1 answer

when i install lxml on my mac, "gcc-4.2 not found, using clang instead" shown in the installation process

when i install lxml on my mac, "gcc-4.2 not found, using clang instead" shown in the installation process. I just type in the following command, and get the above anwser, how can i specify gcc-4.2 with llvm-gcc-4.2? python setup.py build
heghogbbb
  • 249
  • 1
  • 6
  • 13
0
votes
2 answers

ld can't map file errno=22 for architecture armv7

When command line building a project for iPhone (iOS) I get the following error: ld can't map file errno=22 for architecture armv7 However, when checking libraries and objects via lipo - info they support armv7. Has anyone had this issue and/or…
user1700950
  • 1
  • 1
  • 2
0
votes
0 answers

ignoring file ....libgcc.a, file was built for archive which is not the architecture being linked (x86_64)

Basically, I want to run a .cpp and link several .a files and gcc,fortran. The command is as g++ -L/Users/myhome/Ipopt-3.10.0/build/lib -lipopt -L/Users/myhome/lcoinmumps -lpthread -framework vecLib …
Elizabeth
  • 491
  • 1
  • 4
  • 9
1 2 3
14
15