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

Bug 878623

Summary: dev-util/patdiff-0.15.0 : (.text+0x52a0): undefined reference to `core_unix_gettid'
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Team for the ML programming language family <ml>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/janestreet/jst-config/pull/5
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-util:patdiff-0.15.0:20221029-053519.log
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-29 09:45:32 UTC
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/ocaml/core_unix/linux_ext/linux_ext.a(linux_ext.o): in function `camlLinux_ext__sched_setaffinity_this_thread_91960':
(.text+0x52a0): undefined reference to `core_unix_gettid'
/usr/bin/x86_64-pc-linux-gnu-ld.bfd: /usr/lib64/ocaml/core_unix/linux_ext/linux_ext.a(linux_ext.o): in function `camlLinux_ext__1':
(.data+0x4300): undefined reference to `core_unix_gettid'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
File "caml_startup", line 1:
Error: Error during linking (exit code 1)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4-20221028-180004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.3
Python 3.10.8
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3

  HEAD of ::gentoo
commit fc6ee3d80b413dbeeddbc87bdfdd737684a3b210
Merge: 8c55bc388652 7aaa78a98524
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Oct 29 05:01:48 2022 +0000

    Merge updates from master

emerge -qpvO dev-util/patdiff
[ebuild  N    ] dev-util/patdiff-0.15.0  USE="ocamlopt"
Comment 1 Toralf Förster gentoo-dev 2022-10-29 09:45:33 UTC
Created attachment 825913 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-29 09:45:33 UTC
Created attachment 825915 [details]
dev-util:patdiff-0.15.0:20221029-053519.log
Comment 3 Toralf Förster gentoo-dev 2022-10-29 09:45:35 UTC
Created attachment 825917 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-29 09:45:36 UTC
Created attachment 825919 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-29 09:45:37 UTC
Created attachment 825921 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-29 09:45:38 UTC
Created attachment 825923 [details]
temp.tar.bz2
Comment 7 Alex Fan archtester 2023-01-07 12:52:59 UTC
I traced it all the way down patdiff->core->jst-config. jst-config thinks there is no get_thread_id func available. will submit a pr with other fixes shortly.