Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830097 - dev-lang/neko-2.3.0-r1 - /.../ld: bin/libneko.so.2.3.0: undefined reference to GC_dlopen
Summary: dev-lang/neko-2.3.0-r1 - /.../ld: bin/libneko.so.2.3.0: undefined reference t...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-27 10:44 UTC by Toralf Förster
Modified: 2022-01-09 08:36 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.07 KB, text/plain)
2021-12-27 10:44 UTC, Toralf Förster
Details
dev-lang:neko-2.3.0-r1:20211227-020939.log (dev-lang:neko-2.3.0-r1:20211227-020939.log,31.60 KB, text/plain)
2021-12-27 10:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,195.25 KB, text/plain)
2021-12-27 10:44 UTC, Toralf Förster
Details
environment (environment,87.74 KB, text/plain)
2021-12-27 10:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.61 KB, application/x-bzip)
2021-12-27 10:44 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.33 KB, application/x-bzip)
2021-12-27 10:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.52 KB, application/x-bzip)
2021-12-27 10:44 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-12-27 10:44:30 UTC
too long lines were shrinked:

[38/63] /usr/bin/x86_64-pc-linux-gnu-gcc -DABI_ELF -D_GNU_SOURCE -Dstd_ndll_EXPORTS -I/var/tmp/portage/dev-lang/neko-2.3.0-r1/work/neko-2-3-0_build -I/var/tmp/portage/dev-lang/neko-2.3.0-r1/work/neko-2-3-0/vm -I/var/tmp/portage/dev-lang/neko-2.3.0-r1/work/neko-2-3-0/libs/common  -pipe -march=native 
[39/63] : && /usr/bin/x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -rdynamic CMakeFiles/nekovm.dir/vm/stats.c.o CMakeFiles/nekovm.dir/vm/main.c.o -o bin/neko  -Wl,-rpath,"\$ORIGIN"  bin/libneko.so.2.3.0  -lg
FAILED: bin/neko 
: && /usr/bin/x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -rdynamic CMakeFiles/nekovm.dir/vm/stats.c.o CMakeFiles/nekovm.dir/vm/main.c.o -o bin/neko  -Wl,-rpath,"\$ORIGIN"  bin/libneko.so.2.3.0  -lgc  -ldl 
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: bin/libneko.so.2.3.0: undefined reference to `GC_dlopen'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: bin/libneko.so.2.3.0: undefined reference to `GC_pthread_create'
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j4-20211225-030120

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0
  [2]   rust-1.57.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit c8521d7b5af59fe5c248cb07aa20059fce0b8ebc
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 27 01:43:03 2021 +0000

    2021-12-27 01:42:40 UTC

emerge -qpvO dev-lang/neko
[ebuild  N    ] dev-lang/neko-2.3.0-r1  USE="ssl -apache -mysql -sqlite"
Comment 1 Toralf Förster gentoo-dev 2021-12-27 10:44:31 UTC
Created attachment 760542 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-27 10:44:32 UTC
Created attachment 760543 [details]
dev-lang:neko-2.3.0-r1:20211227-020939.log
Comment 3 Toralf Förster gentoo-dev 2021-12-27 10:44:33 UTC
Created attachment 760544 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-27 10:44:35 UTC
Created attachment 760545 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-27 10:44:36 UTC
Created attachment 760546 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-27 10:44:37 UTC
Created attachment 760547 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-27 10:44:38 UTC
Created attachment 760548 [details]
temp.tar.bz2
Comment 8 Tupone Alfredo gentoo-dev 2022-01-08 16:49:09 UTC
Did you happen to have libpthreads around ?

that could explains the strange behaviour
Comment 9 Toralf Förster gentoo-dev 2022-01-08 17:54:41 UTC
(In reply to Tupone Alfredo from comment #8)
> Did you happen to have libpthreads around ?
> 
> that could explains the strange behaviour

according to  emerge-history.txt :
2021-12-26T15:18:32 >>> dev-libs/libpthread-stubs-0.4-r1
Comment 10 Tupone Alfredo gentoo-dev 2022-01-09 08:36:24 UTC
(In reply to Toralf Förster from comment #9)
> (In reply to Tupone Alfredo from comment #8)
> > Did you happen to have libpthreads around ?
> > 
> > that could explains the strange behaviour
> 
> according to  emerge-history.txt :
> 2021-12-26T15:18:32 >>> dev-libs/libpthread-stubs-0.4-r1

It is not that. Sorry.

It is about the new cmake and possibly new glibc.

During the configure stage cmake detects that there is no need to add -lpthread, while here is it is needed. I have not tested with the new glibc (2.33 here) so I cannot be sure what is the cause