Unable to compile plugin on Fedora

Bug #582996 reported by Zak Peirce
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lightspark
Fix Released
Undecided
Unassigned

Bug Description

I am using LLVM 2.6 when trying to compile the plugin i receive the following message

/home/CORPORATE/zpeirce/lightspark-0.3.3/abc.cpp: In static member function ‘static void lightspark::ABCVm::Run(lightspark::ABCVm*)’:
/home/CORPORATE/zpeirce/lightspark-0.3.3/abc.cpp:1293: error: no matching function for call to ‘llvm::FunctionPassManager::FunctionPassManager(llvm::Module*&)’
/usr/include/llvm/PassManager.h:75: note: candidates are: llvm::FunctionPassManager::FunctionPassManager(llvm::ModuleProvider*)
/usr/include/llvm/PassManager.h:71: note: llvm::FunctionPassManager::FunctionPassManager(const llvm::FunctionPassManager&)
make[2]: *** [CMakeFiles/spark.dir/abc.cpp.o] Error 1
make[1]: *** [CMakeFiles/spark.dir/all] Error 2
make: *** [all] Error 2

If i comment out line 1293 the compiler gets farther but cannot find LLVMLinker

by following the info here http://bbs.archlinux.org/viewtopic.php?id=97363 i am able to compile the plugin but it still crashes my browser just like in https://bugs.launchpad.net/lightspark/+bug/582825

if you need more info let me know.

Revision history for this message
Zak Peirce (plastikman) wrote :

i forgot i also have to modify

swftypes.h

to manually point <llvm/System/DataTypes.h> </usr/include/llvm/Support/DataTypes.h>

Revision history for this message
Zak Peirce (plastikman) wrote :

just tested 0.3.4 and the same issue exists

i am using llvm packaged with Fedora 12

llvm-2.6-0.5.pre1.fc12.x86_64

llvm-devel-2.6-0.5.pre1.fc12.x86_64

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

Sorry, llvm-2.6 is not supported. There has been a couple of API/header changes that are quite annoying to handle in such a way to guarantee compatibility in both versions.

Changed in lightspark:
status: New → Confirmed
Revision history for this message
Zak Peirce (plastikman) wrote :

so what version of LLVM is supported?

according to the README

INSTALLATION:
To compile this software you need to install development packages for llvm-2.6, sdl, opengl, curl, libavcodec, ftgl, libglew
Install also cmake and nasm.

it seems 2.6 is the version required.

Revision history for this message
Alessandro Pignotti (a-pignotti) wrote :

llvm-2.7. the REAME was somehow outdated, this is fixed in current master

Thanks for your report

Changed in lightspark:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.