[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error on mipsel buildd not reproducible on porter box



On Wed, 2015-09-02 at 16:34 +0200, Vincent Danjean wrote:
> [please, CC me for answer as I'm not subscribed]
> 
>   Hi,
> 
>   The freshplayerplugin (in contrib) successfully build the 0.3.1-2
> version on mipsel but not the 0.3.2-1 version, thus preventing
> migration to testing:
> https://buildd.debian.org/status/logs.php?pkg=freshplayerplugin&arch=mipsel&suite=sid
[...]
> -- Performing Test HAVE_AVPixelFormat
> -- Performing Test HAVE_AVPixelFormat - Failed

The tests fail for me on my mipsel machine with this in CMakeError.log:

Performing C SOURCE FILE Test HAVE_AVPixelFormat failed with the following output:
Change Dir: /home/james/workspace/freshplayerplugin/freshplayerplugin-0.3.2/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec469928495/fast"
make[2]: Entering directory '/home/james/workspace/freshplayerplugin/freshplayerplugin-0.3.2/build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec469928495.dir/build.make CMakeFiles/cmTryCompileExec469928495.dir/build
make[3]: Entering directory '/home/james/workspace/freshplayerplugin/freshplayerplugin-0.3.2/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/james/workspace/freshplayerplugin/freshplayerplugin-0.3.2/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec469928495.dir/src.c.o
/usr/bin/cc   -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -std=gnu99 -fPIC -fvisibility=hidden -pthread -Wall -Werror=format-security -Werror=implicit-function-declaration -DHAVE_AVPixelFormat -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/mipsel-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/mipsel-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/mipsel-linux-gnu    -o CMakeFiles/cmTryCompileExec469928495.dir/src.c.o   -c /home/james/workspace/freshplayerplugin/freshplayerplugin-0.3.2/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTryCompileExec469928495
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec469928495.dir/link.txt --verbose=1
/usr/bin/cc  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -std=gnu99 -fPIC -fvisibility=hidden -pthread -Wall -Werror=format-security -Werror=implicit-function-declaration -DHAVE_AVPixelFormat   -Wl,-z,relro -Wl,--as-needed  CMakeFiles/cmTryCompileExec469928495.dir/src.c.o  -o cmTryCompileExec469928495 -rdynamic -lasound -lgio-2.0 -lXrandr -lXrender -lX11 -lXcursor -lGL -lconfig -ldrm -levent_pthreads -levent -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lssl -lcrypto -ldl -lrt -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lGLESv2 -lpulse -lavcodec-ffmpeg -lavutil-ffmpeg -lva-x11 -lva -lvdpau -lXrandr -lXrender -lX11 -lXcursor -lGL -lconfig -ldrm -levent_pthreads -levent -lpangocairo-1.0 -lcairo -lssl -lcrypto -ldl -lrt -lm -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lGLESv2 -lpulse -lavcodec-ffmpeg -lavutil-ffmpeg -lva-x11 -lva -lvdpau 
/usr/bin/ld: BFD (GNU Binutils for Debian) 2.25.1 assertion fail ../../bfd/elf-strtab.c:199
/usr/bin/ld: BFD (GNU Binutils for Debian) 2.25.1 assertion fail ../../bfd/elf-strtab.c:272
collect2: error: ld returned 1 exit status

Which looks very much like this bug:
https://bugs.debian.org/767863
https://sourceware.org/bugzilla/show_bug.cgi?id=17560

As I wrote in the upstream bug report, a number of things are required
to trigger the bug and the use of "-Wl,--as-needed" is one of them
(which might explain why it worked with the previous version?) libpulse
is the library which contains a weak reference to "main" here.

The bug's been there for ages so who knows if it will be fixed any time
soon.

Lots of things are needed to trigger this so doing any of these on mips
 will workaround it:
 - Don't link the tests with -Wl,--as-needed.
 - Don't link the tests with -lpulse.
 - Don't compile the tests with -fvisibility=hidden.

Thanks,
James

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: