Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648982 - dev-ml/zarith-1.7 fails to build: Unknown option -Wl,...
Summary: dev-ml/zarith-1.7 fails to build: Unknown option -Wl,...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-27 18:56 UTC by pva
Modified: 2020-03-27 12:39 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,4.78 KB, text/x-log)
2018-02-27 18:56 UTC, pva
Details
emerge --info (emerge--info.txt,6.66 KB, text/plain)
2018-02-27 18:57 UTC, pva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pva 2018-02-27 18:56:38 UTC
Created attachment 521320 [details]
build.log

dev-ml/zarith-1.7 fails to build with the following error:

ocamlmklib -failsafe -o zarith z.cmx q.cmx big_int_Z.cmx -Wl,-O1 -Wl,--as-needed -lgmp
Unknown option -Wl,-O1
Unknown option -Wl,--as-needed
Unknown option -Wl,-O1
Unknown option -Wl,--as-needed
x86_64-pc-linux-gnu-ranlib: 'zarith.a': No such file
File "_none_", line 1:
Error: Error while creating the library zarith.a
make: *** [project.mak:66: zarith.a] Error 2
Comment 1 pva 2018-02-27 18:57:27 UTC
Created attachment 521322 [details]
emerge --info
Comment 2 pva 2018-02-27 19:00:59 UTC
Following patch fixed this issue:

--- zarith-1.6.ebuild	2017-09-28 11:41:07.000000000 +0300
+++ zarith-1.7.ebuild	2018-02-27 22:00:34.000000000 +0300
@@ -24,6 +24,7 @@
 S="${WORKDIR}/Zarith-release-${PV}"
 
 src_configure() {
+	filter-ldflags "*"
 	tc-export CC
 	./configure -host "${CHOST}" \
 		-ocamllibdir "/usr/$(get_libdir)" \
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-12-29 16:13:24 UTC
Reproduced.

Deps involved:

 dev-ml/zarith-1.7:0/1.7  USE="ocamlopt"
  dev-ml/findlib-1.7.1  USE="ocamlopt"
   dev-lang/ocaml-4.04.2-r1:0/4.04.2  USE="ncurses ocamlopt"
    sys-libs/binutils-libs-2.30-r4:0/2.30-r1  USE="nls"


detected configuration:

  native-code:          yes
  dynamic linking:      yes
  asm path:             x86_64
  defines:              -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX
  libraries:            -Wl,-O1 -Wl,--as-needed -lgmp
  C options:            -march=native -mtune=native -O2 -pipe
  asm options
  installation path:    /var/tmp/portage/dev-ml/zarith-1.7/image//usr/lib64/ocaml
  installation method   findlib
Comment 4 Larry the Git Cow gentoo-dev 2020-03-27 12:39:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a85a3eea7ae7bb021648ed9c274d0df7af4b87a

commit 1a85a3eea7ae7bb021648ed9c274d0df7af4b87a
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2020-03-27 12:39:26 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2020-03-27 12:39:26 +0000

    dev-ml/zarith: require a newer version of ocaml
    
    Closes: https://bugs.gentoo.org/648982
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 dev-ml/zarith/zarith-1.4.1.ebuild | 4 ++--
 dev-ml/zarith/zarith-1.5.ebuild   | 4 ++--
 dev-ml/zarith/zarith-1.6.ebuild   | 4 ++--
 dev-ml/zarith/zarith-1.7.ebuild   | 4 ++--
 dev-ml/zarith/zarith-1.9.1.ebuild | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)