Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 627946

Summary: dev-ml/core : (.text+<snip>): undefined reference to makedev
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Status: RESOLVED FIXED    
Severity: normal CC: gienah, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/janestreet/core/pull/114
Whiteboard: ~arch only
Package list:
Runtime testing required: ---
Bug Depends on: 704146    
Bug Blocks: 575232    
Deadline: 2020-01-12   
Attachments: emerge-info.txt
dev-ml:capnp-ocaml-3.0.0:20170815-142414.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
emerge-info.txt
dev-ml:core_profiler-0.9.0:20171125-031818.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2017-08-15 16:39:44 UTC
/usr/lib64/ocaml/core/libcore_stubs.a(unix_stubs.o): In function `unix_mknod_stub':
(.text+0x10e1): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-no-multilib_20170802-210334

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0
 [2] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv dev-ml/capnp-ocaml
[ebuild  N    ] dev-ml/capnp-ocaml-3.0.0  USE="{test}"
Comment 1 Toralf Förster gentoo-dev 2017-08-15 16:39:47 UTC
Created attachment 489184 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-08-15 16:39:50 UTC
Created attachment 489186 [details]
dev-ml:capnp-ocaml-3.0.0:20170815-142414.log
Comment 3 Toralf Förster gentoo-dev 2017-08-15 16:39:53 UTC
Created attachment 489188 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-08-15 16:39:56 UTC
Created attachment 489190 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-08-15 16:40:00 UTC
Created attachment 489192 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-08-15 16:40:03 UTC
Created attachment 489194 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-08-15 16:40:06 UTC
Created attachment 489196 [details]
temp.tbz2
Comment 8 Alexis Ballier gentoo-dev 2017-09-16 15:30:10 UTC
commit 053c3730bc66ddac70d3d3e3a21f8eb4a4312f74
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Tue Aug 15 11:46:52 2017 +0200

    dev-ml/core: convert to opam.eclass and add fix for glibc 2.25
Comment 9 Alexis Ballier gentoo-dev 2017-10-23 12:04:33 UTC
*** Bug 580646 has been marked as a duplicate of this bug. ***
Comment 10 Alexis Ballier gentoo-dev 2017-10-23 12:04:50 UTC
*** Bug 625986 has been marked as a duplicate of this bug. ***
Comment 11 Toralf Förster gentoo-dev 2017-11-25 08:27:15 UTC
got at the unstable amd64 chroot image 13.0-no-multilib_libressl_20171120-180602 this : (.text+<snip>): undefined reference to makedev
Comment 12 Toralf Förster gentoo-dev 2017-11-25 08:27:19 UTC
Created attachment 506522 [details]
emerge-info.txt
Comment 13 Toralf Förster gentoo-dev 2017-11-25 08:27:22 UTC
Created attachment 506524 [details]
dev-ml:core_profiler-0.9.0:20171125-031818.log
Comment 14 Toralf Förster gentoo-dev 2017-11-25 08:27:27 UTC
Created attachment 506526 [details]
emerge-history.txt
Comment 15 Toralf Förster gentoo-dev 2017-11-25 08:27:30 UTC
Created attachment 506528 [details]
environment
Comment 16 Toralf Förster gentoo-dev 2017-11-25 08:27:32 UTC
Created attachment 506530 [details]
etc.portage.tbz2
Comment 17 Toralf Förster gentoo-dev 2017-11-25 08:27:35 UTC
Created attachment 506532 [details]
temp.tbz2
Comment 18 Toralf Förster gentoo-dev 2019-02-05 18:14:38 UTC
still an issue:

dev-util/patdiff-0.9.0

/usr/lib64/ocaml/core/libcore_stubs.a(unix_stubs.o): In function `unix_mknod_stub':
(.text+0x1236): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Comment 19 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-08 07:00:09 UTC
/usr/lib64/ocaml/core/libcore_stubs.a comes from dev-ml/core. 0.9.1-r1 has a gentoo-specific patch that fixes it. But extlib needs a fix in bug #704146.