Fixed: 14.04.4 & 16.04.1 logbuildCli ** Failed at make

Started by Jan Gruuthuse, July 25, 2016, 07:04:04 AM

Previous topic - Next topic

Jan Gruuthuse

16.04.1 ubuntu amd64
commit: 38fb130    [SDL] fix new style probing

common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::destroyImage(_VAImage*)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::destroySurface(unsigned int)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `ADM_vaSurface::fromAdmImage(ADMImage*)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::allocateImage(int, int)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::allocateSurface(int, int)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::putX11Surface(ADM_vaSurface*, int, int, int)'
collect2: error: ld returned 1 exit status
CMakeFiles/avidemux3_cli.dir/build.make:459: recipe for target 'avidemux3_cli' failed
make[2]: *** [avidemux3_cli] Error 1
make[2]: Leaving directory '/home/jan/avidemux2/buildCli'
CMakeFiles/Makefile2:87: recipe for target 'CMakeFiles/avidemux3_cli.dir/all' failed
make[1]: *** [CMakeFiles/avidemux3_cli.dir/all] Error 2
make[1]: Leaving directory '/home/jan/avidemux2/buildCli'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

Jan Gruuthuse

14.04.4 ubuntu amd64
commit: 38fb130    [SDL] fix new style probing

ADM_pluginLoad.cpp:(.text+0x6c5): undefined reference to `admLibVA::isOperationnal()'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::destroyImage(_VAImage*)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::destroySurface(unsigned int)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `ADM_vaSurface::fromAdmImage(ADMImage*)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::allocateImage(int, int)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::allocateSurface(int, int)'
common/ADM_render/libADM_render6_cli.so: undefined reference to `admLibVA::putX11Surface(ADM_vaSurface*, int, int, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [avidemux3_cli] Error 1
make[2]: Leaving directory `/home/jan/avidemux2/buildCli'
make[1]: *** [CMakeFiles/avidemux3_cli.dir/all] Error 2
make[1]: Leaving directory `/home/jan/avidemux2/buildCli'
make: *** [all] Error 2

eumagga0x2a

WFM for 38fb130. The linker doesn't bail out on Fedora 24, the build succeeds. I tried both a rebuild with a patched bootStrap.bash as described in http://avidemux.org/smif/index.php/topic,16959.0.html

bash bootStrap.bash --rebuild --rpm

(this reduced compilation time from about 17 minutes to less than 3!) and a new clean build.

However, I do get a somehow non-fatal failure, maybe expected, in some intermediary cmake steps related to FAAD:

-- Checking for FAAD
-- *****************
-- Found faad.h
-- Found faad library
-- Could not find faacDecInit in /usr/lib64/libfaad.so
-- Change Dir: $TOPSOURCEDIR/buildPluginsCommon/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_5efc9/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_5efc9.dir/build.make CMakeFiles/cmTC_5efc9.dir/build
gmake[1]: Verzeichnis ââ,¬Å¾$TOPSOURCEDIR/buildPluginsCommon/CMakeFiles/CMakeTmpââ,¬Å" wird betreten
Building C object CMakeFiles/cmTC_5efc9.dir/CheckFunctionExists.c.o
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=faacDecInit  -fmessage-length=0 -fmessage-length=0    -I"/usr/include" -o CMakeFiles/cmTC_5efc9.dir/CheckFunctionExists.c.o   -c $TOPSOURCEDIR/cmake/cmake_compile_check/CheckFunctionExists.c
Linking C executable cmTC_5efc9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5efc9.dir/link.txt --verbose=1
/usr/bin/cc   -fmessage-length=0 -fmessage-length=0     CMakeFiles/cmTC_5efc9.dir/CheckFunctionExists.c.o  -o cmTC_5efc9 -rdynamic /usr/lib64/libfaad.so
CMakeFiles/cmTC_5efc9.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x15): undefined reference to `faacDecInit'
collect2: Fehler: ld gab 1 als Ende-Status zurück
CMakeFiles/cmTC_5efc9.dir/build.make:98: die Regel für Ziel ââ,¬Å¾cmTC_5efc9ââ,¬Å" scheiterte
gmake[1]: *** [cmTC_5efc9] Fehler 1
gmake[1]: Verzeichnis ââ,¬Å¾$TOPSOURCEDIR/buildPluginsCommon/CMakeFiles/CMakeTmpââ,¬Å" wird verlassen
Makefile:126: die Regel für Ziel ââ,¬Å¾cmTC_5efc9/fastââ,¬Å" scheiterte
gmake: *** [cmTC_5efc9/fast] Fehler 2

-- Found NeAACDecInit in /usr/lib64/libfaad.so
-- Found FAAD
-- Compiler Flags: /usr/include
-- Linker Flags  : /usr/lib64/libfaad.so
-- (-DOLD_FAAD_PROTO) required


Nevertheless, ADM_ad_faad gets built successfully.

I've replaced the absolute path to the top source directory with $TOPSOURCEDIR in the console output.

mean

The faad is normal. They come in two flavors and it tries both to see which works, so one is always failing.

mean


Jan Gruuthuse

#5
commit: a4c61e9    [build] Add rebuild option by eumagga0x2a

14.04.4 ubuntu: Still an issue

-- Build files have been written to: /home/jan/avidemux2/buildCli
** Failed at make, result in /tmp/logbuildCli**

ADM_pluginLoad.cpp:(.text+0x6c5): undefined reference to `admLibVA::isOperationnal()'
collect2: error: ld returned 1 exit status
make[2]: *** [avidemux3_cli] Error 1
make[2]: Leaving directory `/home/jan/avidemux2/buildCli'
make[1]: *** [CMakeFiles/avidemux3_cli.dir/all] Error 2
make[1]: Leaving directory `/home/jan/avidemux2/buildCli'
make: *** [all] Error 2

2nd run

Jan Gruuthuse

#6
commit: a4c61e9    [build] Add rebuild option by eumagga0x2a

16.04.1 ubuntu: Still an issue

ADM_pluginLoad.cpp:(.text+0x73b): undefined reference to `admLibVA::isOperationnal()'
collect2: error: ld returned 1 exit status
CMakeFiles/avidemux3_cli.dir/build.make:459: recipe for target 'avidemux3_cli' failed
make[2]: *** [avidemux3_cli] Error 1
make[2]: Leaving directory '/home/jan/avidemux2/buildCli'
CMakeFiles/Makefile2:87: recipe for target 'CMakeFiles/avidemux3_cli.dir/all' failed
make[1]: *** [CMakeFiles/avidemux3_cli.dir/all] Error 2
make[1]: Leaving directory '/home/jan/avidemux2/buildCli'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

mean


Jan Gruuthuse

commit: fc80c1a[cli] fix build, should be done in a cleaner way

16.04.1
** ALL DONE **
** The installable packages are in the debs folder **

Jan Gruuthuse

commit: fc80c1a[cli] fix build, should be done in a cleaner way

14.04.4
** ALL DONE **
** The installable packages are in the debs folder **