Bug 3497

Summary: lightspark FTBFS in F-21 armhfp
Product: Fedora Reporter: Nicolas Chauvet <kwizart>
Component: lightsparkAssignee: Hicham HAOUARI <hicham.haouari>
Status: RESOLVED FIXED    
Severity: normal CC: leigh123linux, sergio, xavier
Priority: P5    
Version: unspecified   
Hardware: All   
OS: GNU/Linux   
namespace:

Description Nicolas Chauvet 2015-01-06 23:20:25 CET
cd /builddir/build/BUILD/lightspark-0.7.2/src && /usr/lib/ccache/c++   -DAUDIO_BACKEND=\"pulse\" -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DENABLE_CURL -DENABLE_LIBAVCODEC -DENABLE_RTMP -DGNASH_PATH=\"/usr/bin/gnash\" -DHAVE_ATOMIC -DHAVE_AVCODECID -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_DECODE_AUDIO3 -DHAVE_AVCODEC_DECODE_AUDIO4 -DHAVE_AVCODEC_DECODE_VIDEO2 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_LIBAVRESAMPLE -DHAVE_NEW_GLIBMM_THREAD_API -DHAVE_SUPPORT_TARGETSELECT_H -DLLVM_31 -DLLVM_34 -DLS_DATADIR=\"/usr/share/lightspark\" -DPRIVATELIBDIR=\"/usr/lib/lightspark\" -DXMLPP_2_35_1 -Dspark_EXPORTS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard  -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wdisabled-optimization -Wextra -Wno-unused-parameter -Wno-invalid-offsetof -O2 -DNDEBUG -fPIC -I/builddir/build/BUILD/lightspark-0.7.2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -I/usr/include/ffmpeg -I/builddir/build/BUILD/lightspark-0.7.2/src -I/builddir/build/BUILD/lightspark-0.7.2/src/scripting    -o CMakeFiles/spark.dir/scripting/abc_fast_interpreter.cpp.o -c /builddir/build/BUILD/lightspark-0.7.2/src/scripting/abc_fast_interpreter.cpp
/builddir/build/BUILD/lightspark-0.7.2/src/scripting/abc_codesynt.cpp:36:30: fatal error: llvm/Constants.h: No such file or directory
 #  include <llvm/Constants.h>
                              ^
compilation terminated.
src/CMakeFiles/spark.dir/build.make:931: recipe for target 'src/CMakeFiles/spark.dir/scripting/abc.cpp.o' failed
make[2]: *** [src/CMakeFiles/spark.dir/scripting/abc.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/CMakeFiles/spark.dir/build.make:954: recipe for target 'src/CMakeFiles/spark.dir/scripting/abc_codesynt.cpp.o' failed
make[2]: *** [src/CMakeFiles/spark.dir/scripting/abc_codesynt.cpp.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/lightspark-0.7.2'
CMakeFiles/Makefile2:157: recipe for target 'src/CMakeFiles/spark.dir/all' failed
make[1]: Leaving directory '/builddir/build/BUILD/lightspark-0.7.2'
Makefile:140: recipe for target 'all' failed
make[1]: *** [src/CMakeFiles/spark.dir/all] Error 2
make: *** [all] Error 2
erreur��: Mauvais statut de sortie pour /var/tmp/rpm-tmp.HoN89S (%build)
    Mauvais statut de sortie pour /var/tmp/rpm-tmp.HoN89S (%build)
Erreur de construction de RPM��:
Comment 1 leigh scott 2015-05-02 13:32:21 CEST
Lightspark needs patching for llvm-3.5

https://github.com/lightspark/lightspark/commit/1a2dad0b6ab819fb28e67267afcc277aec510b61

https://github.com/lightspark/lightspark/commit/3d55371ee7a2524274ff3cdc546c845203ccd8ea



failed buildlog

http://kojihub.kwizart.net/kojifiles/work/tasks/1334/21334/build.log

/build/BUILD/lightspark-0.7.2/src/scripting/abc.cpp
/builddir/build/BUILD/lightspark-0.7.2/src/scripting/abc.cpp:33:27: fatal error: llvm/Module.h: No such file or directory
compilation terminated.
src/CMakeFiles/spark.dir/build.make:931: recipe for target 'src/CMakeFiles/spark.dir/scripting/abc.cpp.o' failed
make[2]: *** [src/CMakeFiles/spark.dir/scripting/abc.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 2 Xavier Bachelot 2015-05-19 23:32:25 CEST
I've pushed a new snapshot, but I can't build for ARM. I guess there some kind of trigger to build on secondary arches, hopefully this will help there.
Comment 3 Nicolas Chauvet 2015-07-20 18:00:17 CEST
I'm resubmitting manually, so you can still ping about this.
Previously the build was failing on armv7 because on an ICE, but now it has a memory exhaustion.

Probably some tweaks made for mame can be used to minimize memory usage on arm.

-------------
gcc-switches  -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard  -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Wdisabled-optimization -Wextra -Wno-unused-parameter -Wno-invalid-offsetof -O2 -DNDEBUG -fPIC -I/builddir/build/BUILD/lightspark-0.7.2 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/freetype2 -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -I/usr/include/ffmpeg -I/builddir/build/BUILD/lightspark-0.7.2/src -I/builddir/build/BUILD/lightspark-0.7.2/src/scripting    -o CMakeFiles/spark.dir/scripting/abc_fast_interpreter.cpp.o -c /builddir/build/BUILD/lightspark-0.7.2/src/scripting/abc_fast_interpreter.cpp
In file included from /builddir/build/BUILD/lightspark-0.7.2/src/scripting/flash/text/flashtext.h:23:0,
                 from /builddir/build/BUILD/lightspark-0.7.2/src/scripting/abc.cpp:111:
/usr/include/libxml++-2.6/libxml++/parsers/saxparser.h:215:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
   std::auto_ptr<_xmlSAXHandler> sax_handler_;
        ^
In file included from /usr/include/c++/5.1.1/memory:81:0,
                 from /usr/include/llvm/ADT/SmallVector.h:28,
                 from /usr/include/llvm/ExecutionEngine/ExecutionEngine.h:19,
                 from /builddir/build/BUILD/lightspark-0.7.2/src/scripting/abc.cpp:26:
/usr/include/c++/5.1.1/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
virtual memory exhausted: Cannot allocate memory
src/CMakeFiles/spark.dir/build.make:977: recipe for target 'src/CMakeFiles/spark.dir/scripting/abc_fast_interpreter.cpp.o' failed
make[2]: *** [src/CMakeFiles/spark.dir/scripting/abc_fast_interpreter.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/builddir/build/BUILD/lightspark-0.7.2'
CMakeFiles/Makefile2:157: recipe for target 'src/CMakeFiles/spark.dir/all' failed
make[1]: Leaving directory '/builddir/build/BUILD/lightspark-0.7.2'
make[1]: *** [src/CMakeFiles/spark.dir/all] Error 2
Makefile:139: recipe for target 'all' failed
make: *** [all] Error 2
Comment 4 Emmanuel Seyman 2015-12-04 13:48:42 CET
RPMFusion is no longer releasing updates for this version of Fedora. This bug
will be set to RESOLVED:EXPIRED next week to reflect this.

If the problem persists after upgrading to the latest version of Fedora, please
update the version field of this bug (and re-open it if it has been closed).
Comment 5 Emmanuel Seyman 2015-12-13 11:12:51 CET
Closing this bug with the EXPIRED resolution since Fedora no longer ships updates for this version of Fedora.

Please set the Version field to a supported version of Fedora if you re-open this bug.
Comment 6 Nicolas Chauvet 2015-12-14 21:17:10 CET
re-opened fix for f22 and later.
Comment 7 Sérgio Basto 2016-07-25 02:52:27 CEST
lightspark was build for F24 and rawhide :  
http://koji.rpmfusion.org/koji/packageinfo?packageID=132

As a side note : lightspark is not available on F23 , and seems it wasn't also on F22 too.