qemu-arm
[Top][All Lists]
Advanced

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

static builds on aarch64 ubuntu 22.04


From: Janne Karhunen
Subject: static builds on aarch64 ubuntu 22.04
Date: Thu, 12 Jan 2023 13:10:05 +0200

Hi,

Anyone seen this on aarch64 ubuntu 22.04 when doing a static build?
Broken libc build maybe? Standard -fPIC (and disabled PIE as AFAIK
those are mutually exclusive) doesn't seem to affect, neither does
gcc9 -> gcc10 change or even entirely disabled stack protector.

[2751/2752] cc -Ilibqemu-aarch64-softmmu.fa.p -I. -I.. -Itarget/arm
-I../target/arm -Iqapi -Itrace -Iui -Iui/shader
-I/usr/include/pixman-1 -I/usr/include/spice-server
-I/usr/include/spice-1 -I/usr/include/glib-2.0
-I/usr/lib/aarch64-linux-gnu/glib-2.0/include -fdiagnostics-color=auto
-Wall -Winvalid-pch -std=gnu11 -O2 -g -isystem
/build/qemu/linux-headers -isystem linux-headers -iquote . -iquote
/build/qemu -iquote /build/qemu/include -iquote
/build/qemu/tcg/aarch64 -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings
-Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv
-Wold-style-declaration -Wold-style-definition -Wtype-limits
-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers
-Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined
-Wimplicit-fallthrough=2 -Wno-missing-include-dirs
-Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -fPIC
-fno-stack-protector -isystem../linux-headers -isystemlinux-headers
-DNEED_CPU_H '-DCONFIG_TARGET="aarch64-softmmu-config-target.h"'
'-DCONFIG_DEVICES="aarch64-softmmu-config-devices.h"' -MD -MQ
libqemu-aarch64-softmmu.fa.p/target_arm_sve_helper.c.o -MF
libqemu-aarch64-softmmu.fa.p/target_arm_sve_helper.c.o.d -o
libqemu-aarch64-softmmu.fa.p/target_arm_sve_helper.c.o -c
../target/arm/sve_helper.c
[2752/2752] c++ @qemu-system-aarch64.rsp
FAILED: qemu-system-aarch64
c++ @qemu-system-aarch64.rsp
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libgmodule-2.0.a(gmodule.c.o):
in function `g_module_open_full':
(.text+0x5bc): warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/bin/ld: libblockdev.fa.p/os-posix.c.o: in function `change_process_uid':
/build/qemu/build/../os-posix.c:174: warning: Using 'initgroups' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libgio-2.0.a(glocalfileinfo.c.o):
in function `_g_local_file_info_get':
(.text+0x35e4): warning: Using 'getgrgid_r' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/bin/ld: /usr/lib/libmount.a(la-utils.o): in function `mnt_get_gid':
/build/util-linux-2.37.4/libmount/src/utils.c:649: warning: Using
'getgrnam_r' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/ld: libblockdev.fa.p/os-posix.c.o: in function `os_parse_cmd_args':
/build/qemu/build/../os-posix.c:136: warning: Using 'getpwnam' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/bin/ld: libcommon.fa.p/net_slirp.c.o: in function `slirp_smb':
/build/qemu/build/../net/slirp.c:890: warning: Using 'getpwuid' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/libmount.a(la-utils.o): in function `mnt_get_uid':
/build/util-linux-2.37.4/libmount/src/utils.c:622: warning: Using
'getpwnam_r' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libgio-2.0.a(glocalfileinfo.c.o):
in function `lookup_uid_data':
(.text+0x12fc): warning: Using 'getpwuid_r' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/bin/ld: libcommon.fa.p/net_l2tpv3.c.o: in function `net_init_l2tpv3':
/build/qemu/build/../net/l2tpv3.c:640: warning: Using 'getaddrinfo' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/bin/ld: libcommon.fa.p/net_net.c.o: in function `parse_host_port':
/build/qemu/build/../net/net.c:102: warning: Using 'gethostbyname' in
statically linked applications requires at runtime the shared
libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libgio-2.0.a(gnetworkaddress.c.o):
in function `g_network_address_parse':
(.text+0x18d8): warning: Using 'getservbyname' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/bin/ld: (.text+0x18f0): warning: Using 'endservent' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libc.a(abort.o):
in function `abort':
(.text.unlikely+0x20): relocation truncated to fit:
R_AARCH64_LD64_GOTPAGE_LO15 against symbol `__stack_chk_guard' defined
in .data.rel.ro section in
/usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libc.a(libc-start.o)
/usr/bin/ld: (.text.unlikely+0x20): warning: too many GOT entries for
-fpic, please recompile with -fPIC
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:162: run-ninja] Error 1
make[1]: Leaving directory '/build/qemu/build'
make[1]: Entering directory '/build/qemu/build'
[1/51] Generating qemu-version.h with a custom command (wrapped by
meson to capture output)
[2/36] Linking target qemu-system-aarch64
FAILED: qemu-system-aarch64



--
Janne



reply via email to

[Prev in Thread] Current Thread [Next in Thread]