Project

General

Profile

Bug #4115

osmo-msc fails to compile on openSUSE Tumbleweed (gcc 9.1 with LTO enabled)

Added by roox about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
07/17/2019
Due date:
% Done:

0%

Resolution:

Description

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-msc master then triggers the following warnings/errors:

[   22s] msc_vty.c:1077:19: error: potential null pointer dereference [-Werror=null-dereference]
[   22s] msc_ho.c:80:14: error: potential null pointer dereference [-Werror=null-dereference]
[   22s] lto-wrapper: fatal error: make returned 2 exit status
[   22s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: error: lto-wrapper failed
[   22s] collect2: error: ld returned 1 exit status
[   22s] error: Bad exit status from /var/tmp/rpm-tmp.co5mLl (%build)

I have attatched the full buildlog.


Related issues

Related to OsmoBSC - Bug #4113: osmo-bsc fails to compile on openSUSE Tumbleweed (gcc 9.1 with LTO enabled)New07/17/2019

Related to Cellular Network Infrastructure - Bug #4123: gcc & LTO related issuesStalled07/19/2019

History

#1 Updated by laforge about 1 month ago

  • Related to Bug #4113: osmo-bsc fails to compile on openSUSE Tumbleweed (gcc 9.1 with LTO enabled) added

#2 Updated by laforge about 1 month ago

  • Project changed from Cellular Network Infrastructure to OsmoMSC
  • Assignee set to Hoernchen

#3 Updated by Hoernchen 29 days ago

  • Related to Bug #4123: gcc & LTO related issues added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)