Re: Error on mipsel buildd not reproducible on porter box

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABCgAGBQJV5y6bAAoJEMfxZ23qLQHv2Q0P/izDoQtuOrVODm2HppVsAoKO
icASgvbtU4BgX34fpMzY/qpnIQsIpNmf7dEhROctsy3boLSfoT5S6OWv8LMC1L4l
d71fxcZTq5lzRQfs/j7g/PHYuqTT/YAT5Tr+jRixvdEfNZeX/HGfsWfqVVVj2e2q
A98YApTuQfOipRptKzDTAcSn/8Rsij381vpwaoVUAd1APSs2+Vr4nEHTRCNvqlpz
RYhqwGxMgo3zey/69FwhpQx+ZVqUInK2w3GDUQz00ubxCimnbxsUTHXGsgVcO+6A
kzintRowiPqp0+ilR9qAM8m6xVOnS5UeLXQ89bq4j2bMFmn494nC9o9kLeAIfWVx
VcZFkN1HUdnUh8Orpl7xyZd9fEY9WVdYfnShRyqJo0NorqOFQlFToNj98OHcDBOO
XjW+Il4Ky1HxJ03KR3wzPHxWfn6tjLTrEMTfQcYUFkk3dyznCAXiqjYuTDe38qW/
WyJ7VGyXdv1HQZxqKvoLr8J1Ud4AmnmSbRgnGz8f3Dya41pbagf19956r5gClQ04
dkALPgJzxqI+N4l5jXFJb0KvZyVl0kuy/QSLvGknx0GDwmEQx0GYyDnfWBIfif5j
iRmP5f0FoWPCQFhY4QvFmn6EIDtVJTJYx4sfFdTWETsXZHZLCKfyA1KRSCVtda5R
i0gcYDzKFSnxz/kQtxxE
=I/RP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.