DevHeads.net

gcc again only on i686 and f29+ hidden symbol cpu_model referenced by dso

Hi,

Today [1] , I have updated libprojectM package with new autotools
builds (developer changed etc).
It builds fine in F28 on i686 but not in F29 or newer.

After read [2] it exactly the same problem, only added -shared fix the
build, not -lgcc etc ...

I tried build on i686 with [3] but configure stops [4] and checking
config.log [5] even more crazy : Segmentation fault (core
dumped) .

But in F28 compiles well , which makes me think is a gcc bug .

Best regards,

[1]
<a href="https://koji.fedoraproject.org/koji/taskinfo?taskID=33444082" title="https://koji.fedoraproject.org/koji/taskinfo?taskID=33444082">https://koji.fedoraproject.org/koji/taskinfo?taskID=33444082</a>

[2]
<a href="https://lists.fedoraproject.org/archives/list/ ... at lists dot fedoraproject.org/thread/ZM2L65WIZEEQHHLFERZYD5FAG7QY2OGB/" title="https://lists.fedoraproject.org/archives/list/ ... at lists dot fedoraproject.org/thread/ZM2L65WIZEEQHHLFERZYD5FAG7QY2OGB/">https://lists.fedoraproject.org/archives/list/ ... at lists dot fedoraproject....</a>

[3]
export LDFLAGS="%{?__global_ldflags} -shared"

[4]
checking whether we are cross compiling... configure: error: in
`/builddir/build/BUILD/projectm-3.1.1-rc3':

[5]
configure:3894: checking whether we are cross compiling
configure:3902: gcc -o conftest -O2 -g -pipe -Wall -Werror=format-
security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686
-mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-
unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro
-Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-
ld -shared conftest.c >&5
configure:3906: $? = 0
configure:3913: ./conftest
./configure: line 3915: 1447 Segmentation fault (core dumped)
./conftest$ac_cv_exeext
configure:3917: $? = 139
configure:3924: error: in `/builddir/build/BUILD/projectm-3.1.1-rc3':
configure:3926: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details