Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778563 - sci-mathematics/singular-4.2.0_p1 - x86_64-pc-linux-gnu-g++: error: weak: No such file or directory
Summary: sci-mathematics/singular-4.2.0_p1 - x86_64-pc-linux-gnu-g++: error: weak: No ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
: 776643 (view as bug list)
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-03-27 08:41 UTC by Toralf Förster
Modified: 2022-08-06 04:02 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.66 KB, text/plain)
2021-03-27 08:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,360.77 KB, text/plain)
2021-03-27 08:41 UTC, Toralf Förster
Details
environment (environment,74.61 KB, text/plain)
2021-03-27 08:41 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.08 KB, application/x-bzip)
2021-03-27 08:41 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,35.24 KB, application/x-bzip)
2021-03-27 08:41 UTC, Toralf Förster
Details
sci-mathematics:singular-4.2.0_p1:20210327-015024.log (sci-mathematics:singular-4.2.0_p1:20210327-015024.log,632.61 KB, text/plain)
2021-03-27 08:41 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,38.83 KB, application/x-bzip)
2021-03-27 08:41 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-27 08:41:28 UTC
x86_64-pc-linux-gnu-g++: error: weak: No such file or directory
x86_64-pc-linux-gnu-g++: error: dynamic_lookup: No such file or directory
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-weak_reference_mismatches’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-flat_namespace’

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20210316-100935

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

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-1.50.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.17.1 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	OpenJDK 8.282_p08 [openjdk-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   openjdk-8 
  [4]   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 01:20:42 UTC 2021

emerge -qpvO sci-mathematics/singular
[ebuild  N    ] sci-mathematics/singular-4.2.0_p1  USE="readline -emacs -examples -static-libs"
Comment 1 Toralf Förster gentoo-dev 2021-03-27 08:41:29 UTC
Created attachment 694665 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-27 08:41:31 UTC
Created attachment 694668 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-27 08:41:33 UTC
Created attachment 694671 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-27 08:41:34 UTC
Created attachment 694674 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-27 08:41:36 UTC
Created attachment 694677 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-27 08:41:37 UTC
Created attachment 694680 [details]
sci-mathematics:singular-4.2.0_p1:20210327-015024.log
Comment 7 Toralf Förster gentoo-dev 2021-03-27 08:41:39 UTC
Created attachment 694683 [details]
temp.tar.bz2
Comment 8 Michael Orlitzky gentoo-dev 2021-06-01 12:09:54 UTC
This is happening in libpolys/polys/Makefile.am, where

  P_PROCS_MODULE_LDFLAGS = ...  -weak_reference_mismatches ...

The addition of those flags should probably be guarded by a call to e.g. AX_CHECK_LINK_FLAG. For example, in m4/p-procs.m4, they already do

  AX_APPEND_LINK_FLAGS([-rdynamic -flat_namespace ...])

which checks that those flags are supported before appending them.
Comment 9 Michael Orlitzky gentoo-dev 2022-01-20 04:31:10 UTC
I forgot about this. Reported upstream as,

  https://github.com/Singular/Singular/issues/1127
Comment 10 Michael Orlitzky gentoo-dev 2022-01-20 14:49:23 UTC
Should be fixed upstream.
Comment 11 Michael Orlitzky gentoo-dev 2022-04-22 11:14:38 UTC
*** Bug 776643 has been marked as a duplicate of this bug. ***
Comment 12 Michael Orlitzky gentoo-dev 2022-04-22 11:17:55 UTC
This still happens in the Gentoo ebuild because the problem flags get reintroduced elsewhere:

  https://github.com/Singular/Singular/issues/1127#issuecomment-1094262614

I was waiting for an upstream response but I'll go ping them again with some more information. It looks like my comment triggered a commit (https://github.com/Singular/Singular/commit/1db01d01563216ec9e9300e1eaa67ed79cc937f6) but not one that will fix the issue since -flat_namespace is still in there.
Comment 13 orbea 2022-05-13 04:14:58 UTC
I think in this case it might be best to handle it in slibtool.

From /usr/bin/libtool:

  -weak LIBNAME     declare that the target provides the LIBNAME interface

Slibtool has not implemented this and should do so, but I'm not sure if the project gets anything from using it.
Comment 14 Michael Orlitzky gentoo-dev 2022-05-21 00:00:21 UTC
This is finally fixed in the upstream development (spielwiese) branch after https://github.com/Singular/Singular/pull/1139