Bug #877

Fails to build with libc 2.23: non-floating-point argument in call to function

Added by Bas over 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:2016-03-20
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.2-svn Platform:Linux

Description

As reported by Martin Michlmayr in Debian Bug #818807:

This package fails to build with libc6 2.23 (2.23-0experimental0 from
experimental).

sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
[ 45%] Building C object src/CMakeFiles/gmtlib.dir/xyz2grd.c.o
cd /<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src && /usr/bin/cc  -DLIBRARY_EXPORTS -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/src -I/usr/include/gdal -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/gshhg -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/img -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/meca -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/mgd77 -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/misc -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/potential -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/segy -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/spotter -I/<<BUILDDIR>>/gmt-5.2.1+dfsg/debian/build/src/x2sys  -std=gnu99 -fstrict-aliasing -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fopenmp -O2 -g -DNDEBUG -fPIC   -o CMakeFiles/gmtlib.dir/xyz2grd.c.o   -c /<<BUILDDIR>>/gmt-5.2.1+dfsg/src/xyz2grd.c
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/xyz2grd.c: In function 'GMT_xyz2grd':
/<<BUILDDIR>>/gmt-5.2.1+dfsg/src/xyz2grd.c:752:4: error: non-floating-point argument in call to function '__builtin_isnan'
    (GMT_is_dnan (GMT->common.d.active[GMT_IN])) ? sprintf (e_value, "NaN") : sprintf (e_value, GMT->current.setting.format_float_out, GMT->common.d.nan_proxy[GMT_IN]);
    ^
src/CMakeFiles/gmtlib.dir/build.make:2422: recipe for target 'src/CMakeFiles/gmtlib.dir/xyz2grd.c.o' failed
make[4]: *** [src/CMakeFiles/gmtlib.dir/xyz2grd.c.o] Error 1

History

#1 Updated by Paul over 1 year ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • % Done changed from 0 to 100

Thanks, we fixed this problem some weeks ago in svn. It will be addressed in point release 5.2.2 soon.

#2 Updated by Bas over 1 year ago

Paul wrote:

Thanks, we fixed this problem some weeks ago in svn. It will be addressed in point release 5.2.2 soon.

Can you give an ETA for the 5.2.2 point release, or direct me the SVN revisions needed for libc 2.23 compatibility?

#3 Updated by Paul over 1 year ago

Bas, there is likely not to be a 5.2.2 but a 5.3.0 in a few weeks.

#4 Updated by Bas over 1 year ago

Thanks, I'm looking forward to getting the libc 2.23 changes into Debian & Ubuntu.

#5 Updated by Bas over 1 year ago

glibc 2.23 is now in Debian unstable, making us unable to build the gmt package.

The bugreport in Debian has been raised to Release Critical severity which will cause the automatic removal of the affected gmt package from testing (where the next stable release is prepared) in 30 days.

I prefer to include a patch with the fix(es) for the glibc 2.23 build failure to prevent the automatic removal, because the next GMT release is not expected until a few weeks from now.

Which SVN revisions are required for the glibc 2.23 compatibility?

#6 Updated by Bas over 1 year ago

After some more digging in the SVN history I found r15261 which fixes the build failure with glibc 2.23.

I'll upload a new revision of the gmt 5.2.1 Debian package with this change included to fix the RC bug in Debian.

#7 Updated by Joaquim about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF