Actions
Bug #4116
closedosmo-sgsn fails to compile on openSUSE Tumbleweed (gcc 9.1 with LTO enabled)
Start date:
07/17/2019
Due date:
% Done:
0%
Spec Reference:
Description
osmo-sgns fails to compile on openSUSE Tumbleweed (gcc 9.1 with LTO enabled)
openSUSE just enabled LTO by default for its packages in Tumbleweed/Factory.
https://lists.opensuse.org/opensuse-factory/2019-07/msg00240.html
https://gcc.gnu.org/wiki/LinkTimeOptimization
This means the distro provided CFLAGS now changed from
without LTO
CFLAGS='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g'
to
with LTO enabled
CFLAGS="-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -flto=4 -g -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess"
compiling osmo-sgsn master with LTO enabled then triggers the following warnings/errors:
[ 20s] make[3]: Entering directory '/home/abuild/rpmbuild/BUILD/osmo-sgsn-1.4.0.29/tests/gbproxy' [ 20s] CC gbproxy_test.o [ 20s] CCLD gbproxy_test [ 22s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/gbproxy_test.Vzl0RE.ltrans0.ltrans.o: in function `gbproxy_make_sgsn_tlli': [ 22s] /home/abuild/rpmbuild/BUILD/osmo-sgsn-1.4.0.29/tests/gbproxy/gb_proxy.c:278: undefined reference to `__wrap_osmo_get_rand_id' [ 22s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/gbproxy_test.Vzl0RE.ltrans0.ltrans.o: in function `gbprox_process_bssgp_dl.constprop.0': [ 22s] /home/abuild/rpmbuild/BUILD/osmo-sgsn-1.4.0.29/tests/gbproxy/gb_proxy.c:240: undefined reference to `__wrap_osmo_get_rand_id' [ 22s] collect2: error: ld returned 1 exit status [ 22s] make[3]: *** [Makefile:437: gbproxy_test] Error 1
I have attatched the full buildlog.
Files
Related issues
Updated by laforge almost 5 years ago
- Related to Bug #4113: osmo-bsc fails to compile on openSUSE Tumbleweed (gcc 9.1 with LTO enabled) added
Updated by laforge almost 5 years ago
- Project changed from Cellular Network Infrastructure to OsmoSGSN
- Assignee set to Hoernchen
Updated by Hoernchen over 4 years ago
- Related to Bug #4123: gcc & LTO related issues added
Actions