After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759065 - ./.libs/libgegl-0.3.so: error: undefined reference to 'tanhf'
./.libs/libgegl-0.3.so: error: undefined reference to 'tanhf'
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: build
git master
Other Linux
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2015-12-05 16:35 UTC by Justin
Modified: 2015-12-29 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build.log (239.86 KB, application/octet-stream)
2015-12-05 16:35 UTC, Justin
  Details
Patch to fix the issue (900 bytes, patch)
2015-12-05 16:38 UTC, Justin
none Details | Review

Description Justin 2015-12-05 16:35:11 UTC
Created attachment 316806 [details]
build.log

When using ld.gold the build fails due to missing -lm during linking

g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl/tmp-introspectxWyVeN/Gegl-0.3 -export-dynamic -O2 -pipe -ftracer -march=native -mtune=native -frecord-gcc-switches -fdiagnostics-color=auto -g -Wimplicit-function-declaration -mmmx -msse -ftree-vectorize -ffast-math -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -DG_LOG_DOMAIN=\"GEGL-\"__FILE__ -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common tmp-introspectxWyVeN/var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl/tmp-introspectxWyVeN/Gegl-0.3.o -L. libgegl-0.3.la -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
libtool: link: x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl/tmp-introspectxWyVeN/.libs/Gegl-0.3 -O2 -pipe -ftracer -march=native -mtune=native -frecord-gcc-switches -fdiagnostics-color=auto -g -Wimplicit-function-declaration -mmmx -msse -ftree-vectorize -ffast-math -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -DG_LOG_DOMAIN=\"GEGL-\"__FILE__ -Wl,-O1 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common tmp-introspectxWyVeN/var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl/tmp-introspectxWyVeN/Gegl-0.3.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -Wl,--as-needed -L. ./.libs/libgegl-0.3.so -ljson-glib-1.0 -lgthread-2.0 -lbabl-0.1 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread
./.libs/libgegl-0.3.so: error: undefined reference to '__atanhf_finite'
./.libs/libgegl-0.3.so: error: undefined reference to 'tanhf'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', 'x86_64-pc-linux-gnu-gcc', '-o', '/var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl/tmp-introspectxWyVeN/Gegl-0.3', '-export-dynamic', '-O2', '-pipe', '-ftracer', '-march=native', '-mtune=native', '-frecord-gcc-switches', '-fdiagnostics-color=auto', '-g', '-Wimplicit-function-declaration', '-mmmx', '-msse', '-ftree-vectorize', '-ffast-math', '-Wall', '-Wdeclaration-after-statement', '-Wmissing-prototypes', '-Wmissing-declarations', '-Winit-self', '-Wpointer-arith', '-Wold-style-definition', '-DG_LOG_DOMAIN="GEGL-"__FILE__', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-O1', '-Wl,--hash-style=gnu', '-Wl,--sort-common', 'tmp-introspectxWyVeN/var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl/tmp-introspectxWyVeN/Gegl-0.3.o', '-L.', 'libgegl-0.3.la', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0']' returned non-zero exit status 1
/usr/share/gobject-introspection-1.0/Makefile.introspection:155: recipe for target 'Gegl-0.3.gir' failed
make[3]: *** [Gegl-0.3.gir] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/gegl-0.3.4/work/gegl-0.3.4/gegl'
Makefile:916: recipe for target 'all-recursive' failed
Comment 1 Justin 2015-12-05 16:38:11 UTC
Created attachment 316808 [details] [review]
Patch to fix the issue
Comment 2 Øyvind Kolås (pippin) 2015-12-29 18:14:30 UTC
this patch has been commited already