Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778965 - sci-libs/coinor-dip-0.95.0-r1 - x86_64-pc-linux-gnu-g++: error: unrecognized command-line option -noundefined
Summary: sci-libs/coinor-dip-0.95.0-r1 - x86_64-pc-linux-gnu-g++: error: unrecognized ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
: 792894 (view as bug list)
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-28 15:37 UTC by Toralf Förster
Modified: 2021-05-31 08:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.84 KB, text/plain)
2021-03-28 15:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,406.35 KB, text/plain)
2021-03-28 15:37 UTC, Toralf Förster
Details
environment (environment,21.94 KB, text/plain)
2021-03-28 15:37 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,37.62 KB, application/x-bzip)
2021-03-28 15:37 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,10.70 KB, application/x-bzip)
2021-03-28 15:37 UTC, Toralf Förster
Details
sci-libs:coinor-dip-0.95.0-r1:20210327-163350.log (sci-libs:coinor-dip-0.95.0-r1:20210327-163350.log,78.36 KB, text/plain)
2021-03-28 15:37 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-28 15:37:34 UTC
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-noundefined’
rdlibtool: exec error upon slbt_exec_link_create_library(), line 1446: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 1868.
make[3]: *** [Makefile:471: _dippy.la] Error 2

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20210315-144814

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.50.0
  [2]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Mar 27 14:35:45 UTC 2021

emerge -qpvO sci-libs/coinor-dip
[ebuild  N    ] sci-libs/coinor-dip-0.95.0-r1  USE="-doc -test"
Comment 1 Toralf Förster gentoo-dev 2021-03-28 15:37:35 UTC
Created attachment 695565 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-28 15:37:37 UTC
Created attachment 695568 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-28 15:37:38 UTC
Created attachment 695571 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-28 15:37:40 UTC
Created attachment 695574 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-28 15:37:41 UTC
Created attachment 695577 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-28 15:37:42 UTC
Created attachment 695580 [details]
sci-libs:coinor-dip-0.95.0-r1:20210327-163350.log
Comment 7 Ionen Wolkens gentoo-dev 2021-03-28 16:46:21 UTC
Wondered what this was about given the ebuild isn't wired to build dippy, turns out only happens when python:2.7 is installed, and then fails if using slibtool.

This is bad automagic so I'll have a look myself to prevent this.
Comment 8 Ionen Wolkens gentoo-dev 2021-05-29 20:26:08 UTC
*** Bug 792894 has been marked as a duplicate of this bug. ***
Comment 9 orbea 2021-05-30 13:28:59 UTC
Why is not not part of the slibtool meta issue? Without trying myself I suspect GNU libtool just silently ignores -noundefined when it should be -no-undefined. (Although it would ignore that too...)
Comment 10 Ionen Wolkens gentoo-dev 2021-05-30 17:40:02 UTC
(In reply to orbea from comment #9)
> Why is not not part of the slibtool meta issue? Without trying myself I
> suspect GNU libtool just silently ignores -noundefined when it should be
> -no-undefined. (Although it would ignore that too...)
I was more seeing is a "installs python2.7 stuff when it shouldn't" issue and didn't think to add the blocker here, but yes it does happen to cause issues for slibtool at same time (didn't think to add the blocker back then, for the duplicate I just didn't want to have duplicates on the tracker).

If the python2 stuff isn't run, then this -noundef part is never used.
Comment 11 orbea 2021-05-30 23:13:12 UTC
Yea I see your point, but also most of these slibtool issues are not problems with slibtool, but problems exposed by slibtool which exist regardless. In this case preventing the usage of python2 is probably the best fix as you said.
Comment 12 Larry the Git Cow gentoo-dev 2021-05-31 08:19:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6606838b0dedc4fe7916e0341671884ab9478085

commit 6606838b0dedc4fe7916e0341671884ab9478085
Author:     Ionen Wolkens <sudinave@gmail.com>
AuthorDate: 2021-03-28 22:36:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-31 08:15:46 +0000

    sci-libs/coinor-dip: prevent python-2.7 automagic
    
    When python-2.7 is installed it attempts to build dippy which fails
    with slibtool due a typo that GNU libtool ignored.
    
    Rather than fix, since it installs some unsupported 2.7 site-packages,
    block it and revbump to clear these.
    
    Closes: https://bugs.gentoo.org/778965
    Signed-off-by: Ionen Wolkens <sudinave@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/20171
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{coinor-dip-0.95.0-r1.ebuild => coinor-dip-0.95.0-r2.ebuild}       | 3 +++
 1 file changed, 3 insertions(+)