Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888701 - dev-lang/rust-1.65.0 fails to build: undefined reference to sk_num
Summary: dev-lang/rust-1.65.0 fails to build: undefined reference to sk_num
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-28 07:48 UTC by Zamir
Modified: 2023-01-09 07:32 UTC (History)
2 users (show)

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


Attachments
build log (build.log.xz,330.53 KB, application/x-xz)
2022-12-28 07:52 UTC, Zamir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zamir 2022-12-28 07:48:32 UTC
Rust build system complains that it cannot find sk_num, sk_value, SSL_load_error_strings, SSL_library_init, and other openssl symbols.

Reproducible: Always.

Steps to reproduce:
1. Install dev-libs/openssl-1.1.1q.
2. Attempt to build dev-lang/rust-1.65.0.

Actual result: build failure.

Expected result: success.

I am unable to install firefox browser because it needs a fresh rust. I ask for help.

emerge --info:
Portage 3.0.38.1 (python 3.10.5-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.3.0, glibc-2.33-r5, 5.10.49-gentoo-r1 x86_64)
=================================================================
System uname: Linux-5.10.49-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-8500_CPU_@_3.00GHz-with-glibc2.33
KiB Mem:    16060612 total,   1666460 free
KiB Swap:    8388604 total,   8387836 free
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.1::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.32.1::gentoo
dev-lang/python:           2.7.18_p10::gentoo, 3.6.11-r2::gentoo, 3.7.10_p6::gentoo, 3.8.13_p2::gentoo, 3.9.13::gentoo, 3.10.5::gentoo
dev-lang/rust:             1.45.2::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.7::gentoo
sys-apps/openrc:           0.41.2::gentoo
sys-apps/sandbox:          2.24::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.69-r5::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.34-r2::gentoo, 2.35.2::gentoo, 2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           10.0.1::gentoo, 12.0.1::gentoo, 13.0.0_rc1::mine
sys-devel/gcc:             8.3.0-r1::gentoo, 9.3.0-r2::gentoo, 10.3.0-r2::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             12.0.0::gentoo
sys-devel/llvm:            10.0.1::gentoo, 12.0.1::gentoo, 13.0.0_rc1::mine
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.10::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r5::gentoo
sys-libs/libselinux:       3.2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

pf4public
    location: /usr/local/pf4public
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -fno-stack-protector"
DISTDIR="/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps-auto=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.tspu.ru/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j4"
PKGDIR="/var/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/"
SHELL="/bin/bash"
USE="3dnow 3dnowext X aac aalib airplay alsa amd64 ao asf bzip2 cdda cli crypt cue djbfft dri ffmpeg flac fortran iconv icu inspector kpathsea libcaca libglvnd libtirpc mac matroska minizip mmap mng mp3 musepack ncurses nophonehome nptl ofa opengl openmp pcre readline sdl seccomp sndfile speex split-usr ssl ssse3 static-libs test-rust themes_CLDX theora threads truetype umfpack unicode vcd vocoder wavpack xinerama xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_USER_TARGETS="x86_64 mipsel arm aarch64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Zamir 2022-12-28 07:52:23 UTC
Created attachment 845301 [details]
build log

bugzilla rejected uncompressed log, so I compressed it
Comment 2 Peer 2023-01-01 00:42:50 UTC
+1 from me

Trying to create a docker container from gentoo/portage:latest and gentoo/stage3:latest. 

Failure:

 * Error messages for package dev-lang/rust-1.65.0:
 * ERROR: dev-lang/rust-1.65.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 3855:  Called die
 * The specific snippet of code:
 *       RUST_BACKTRACE=1 "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die
 *
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-01 23:04:46 UTC
Large chunks of OP's system are out of date, including old glibc + binutils + gcc.

OP, please update your system overall, but also, which version of dev-libs/openssl do you have?

(In reply to Peer from comment #2)
> +1 from me
> 
> Trying to create a docker container from gentoo/portage:latest and
> gentoo/stage3:latest. 
> 
> Failure:
> 
>  * Error messages for package dev-lang/rust-1.65.0:
>  * ERROR: dev-lang/rust-1.65.0::gentoo failed (compile phase):
>  *   (no error message)
>  * 
>  * Call stack:
>  *     ebuild.sh, line 136:  Called src_compile
>  *   environment, line 3855:  Called die
>  * The specific snippet of code:
>  *       RUST_BACKTRACE=1 "${EPYTHON}" ./x.py build -vv
> --config="${S}"/config.toml -j$(makeopts_jobs) || die
>  *

Please include emerge --info and the full build.log.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2023-01-02 09:43:37 UTC
I can't reproduce on fresh stage3.

as for OP's system state... please update your gentoo and depclean too.


try something drastic like this:
emerge -uDN @world --with-bdeps=y --changed-deps=y --dynamic-deps=y --complete-graph --keep-going --newrepo --ignore-default-opts -v1

if you still can reproduce after that - reopen the bug.


(In reply to Peer from comment #2)
> +1 from me
> 
> Trying to create a docker container from gentoo/portage:latest and
> gentoo/stage3:latest. 
> 
as sam mentioned above - need log or at least some info on how you are triggering the build failure.
Comment 5 Zamir 2023-01-09 07:30:56 UTC
Oops, I had hand-installed openssl headers.

I removed the headers from /usr/include/openssl, upgraded glibc to 2.36-r5, upgraded openssl to 1.1.1s. This solved the problem -- rust compiled ok.

Looks like it was my fault. I suggest that the bug is closed.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-09 07:32:39 UTC
Thanks. Please be careful when installing anything manually in future. It's better to use ebuilds for everything (even your own), or if you must, use /usr/local, but that will still interfere with system builds.