Public bug reported:

libunwind 1.8.3-0ubuntu1 fails to build from source on i386 in
Tenacious (27.04):

  i686-linux-gnu-gcc: error: unrecognized command-line option
  '-WCClinker'; did you mean '-Xlinker'?
  make[4]: *** [Makefile:4152: libunwind.la] Error 1

Cause: configure.ac in libunwind 1.8.3 has a typo. When C++ exception
support is enabled, it sets

  UNW_CRT_LDFLAGS="-WCClinker -nostdlib"

where the libtool flag is -XCClinker. debian/rules enables C++
exceptions on amd64 and i386, but the bad flag is only used when the
configure check for _Unwind_Resume needs an extra library:

  - amd64: "checking for library containing _Unwind_Resume... none
    required", so the flag is never used and the build succeeds.
  - i386: "... -lgcc_s", so -WCClinker reaches the link line.

The package runs dh_autoreconf, so the libtool from the build
environment is used. libtool 2.5.4 (Resolute, Stonking) tolerated the
bad flag, so the archive build of 1.8.3-0ubuntu1 succeeded on i386.
libtool 2.6.2 (Tenacious) passes it through to gcc, which rejects it.

Affected: Tenacious only (libtool 2.6.2-3).
Not affected: Resolute (libtool 2.5.4-9) and Stonking (libtool
2.5.4-11), so no SRU is needed.

Upstream fix:
  
https://github.com/libunwind/libunwind/commit/8e6a348b94a1b8e77ec2a086ff27ea9b78357d71
  "configure: Fix -WCClinker typo; should be -XCClinker"
  (on master, not yet in a release)

Failing build log (PPA, tenacious i386):
  
https://launchpad.net/~rinconjr/+archive/ubuntu/libunwind-lp2175640/+build/34006306

** Affects: libunwind (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: libunwind (Ubuntu Tenacious)
     Importance: Undecided
         Status: New

** Also affects: libunwind (Ubuntu Tenacious)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175662

Title:
  libunwind FTBFS on i386 in tenacious with libtool 2.6: unrecognized
  option '-WCClinker'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libunwind/+bug/2175662/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to