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


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,

<a href="" title=""></a>

<a href=" ... at lists dot" title=" ... at lists dot"> ... at lists dot fedoraproject....</a>

export LDFLAGS="%{?__global_ldflags} -shared"

checking whether we are cross compiling... configure: error: in

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-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)
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