[GEDI] [PATCH 6/6] .travis.yml: Test static linking
Alex Bennée
alex.bennee at linaro.org
Fri Jun 14 14:03:04 UTC 2019
Philippe Mathieu-Daudé <philmd at redhat.com> writes:
> Signed-off-by: Philippe Mathieu-Daudé <philmd at redhat.com>
> ---
> This job currently fails:
>
> LINK lm32-softmmu/qemu-system-lm32
> /usr/bin/ld: cannot find -lgtk-3
> /usr/bin/ld: cannot find -latk-bridge-2.0
> /usr/bin/ld: cannot find -latspi
> /usr/bin/ld: cannot find -lsystemd
> /usr/bin/ld: cannot find -lgdk-3
> /usr/bin/ld: cannot find -lwayland-egl
> /usr/bin/ld: cannot find -lmirclient
> /usr/bin/ld: cannot find -lmircore
> /usr/bin/ld: cannot find -lmircookie
> /usr/bin/ld: cannot find -lepoxy
> /usr/bin/ld: cannot find -latk-1.0
> /usr/bin/ld: cannot find -lgdk_pixbuf-2.0
> /usr/bin/ld: cannot find -lselinux
> /usr/bin/ld: cannot find -lgtk-3
> /usr/bin/ld: cannot find -latk-bridge-2.0
> /usr/bin/ld: cannot find -latspi
> /usr/bin/ld: cannot find -lsystemd
> /usr/bin/ld: cannot find -lgdk-3
> /usr/bin/ld: cannot find -lwayland-egl
> /usr/bin/ld: cannot find -lmirclient
> /usr/bin/ld: cannot find -lmircore
> /usr/bin/ld: cannot find -lmircookie
> /usr/bin/ld: cannot find -lepoxy
> /usr/bin/ld: cannot find -latk-1.0
> /usr/bin/ld: cannot find -lgdk_pixbuf-2.0
> /usr/bin/ld: cannot find -lselinux
> /usr/bin/ld: attempted static link of dynamic object `/usr/lib/x86_64-linux-gnu/libz.so'
> collect2: error: ld returned 1 exit status
> Makefile:204: recipe for target 'qemu-system-lm32' failed
> make[1]: *** [qemu-system-lm32] Error 1
> Makefile:472: recipe for target 'subdir-lm32-softmmu' failed
> make: *** [subdir-lm32-softmmu] Error 2
> ---
> .travis.yml | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/.travis.yml b/.travis.yml
> index 08502c0aa2..6962fff826 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -92,6 +92,11 @@ matrix:
> - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}"
>
>
> + # Test static linking
> + - env:
> + - CONFIG="--static --target-list=lm32-softmmu"
> +
> +
It's probably more useful to have a:
CONFIG="--disable-system --static"
In fact arguably we could just add it to the first --disable-system
stanza as there are other linux-user builds scattered about to catch the
cases where we break dynamically linked linux-user builds.
> # Just build tools and run minimal unit and softfloat checks
> - env:
> - BASE_CONFIG="--enable-tools"
--
Alex Bennée
More information about the integration
mailing list