Opened 9 years ago

Last modified 5 years ago

#12703 closed defect

GLPK fails to build with LTO (`gcc -flto ...`) — at Version 1

Reported by: leif Owned by: leif
Priority: minor Milestone: sage-6.4
Component: packages: standard Keywords: link time optimization nm glpsol spkg upgrade update
Cc: ncohen, SimonKing, tscrim Merged in:
Authors: Leif Leonhardy Reviewers:
Report Upstream: Reported upstream. Developers acknowledge bug. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by leif)

Even the latest upstream version (4.47) fails to build when link-time optimization (LTO, gcc -flto ...) is enabled.

While configure shows an error message, it continues normally and doesn't exit with an error. Only later during the build, a shell syntax error caused by libtool makes the build finally fail. The solution is to re-autotoolize the package with more recent autotools.

I have an spkg with updated autogenerated files which also upgrades GLPK within Sage to the latest stable version, 4.47.

New spkg:

md5sum: 820b1169551ca7da973a09a672da1560 glpk-4.47.p0.spkg

glpk-4.47.p0 (Leif Leonhardy, March 19th 2012)

  • #12703: Make GLPK work with LTO (gcc -flto ...). This just involves updating the lib- and autotools files, but thereby upgrading to the latest version (4.47) shouldn't hurt either. Note that the src/ directory now isn't vanilla, since upstream hasn't yet fixed the bug (i.e., updated these files). The "real" source files in contrast of course *are*. See "Special Update/Build? Instructions" above on how to update the files of a fresh upstream tarball if necessary.
  • Cleaned up spkg-install and spkg-check (and this file ;-)
  • Running the test suite now uses $MAKE instead of make as well.
  • CPPFLAGS and LDFLAGS no longer get overwritten in spkg-install.

Change History (1)

comment:1 Changed 9 years ago by leif

  • Authors set to Leif Leonhardy
  • Cc ncohen SimonKing added
  • Description modified (diff)
  • Keywords upgrade update added
  • Status changed from new to needs_review
Note: See TracTickets for help on using tickets.