Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939726 - sci-libs/caffe2-2.4.1 fails to compile: ld: libtorch_cpu.so: undefined reference to Sleef_lgammaf16_u10
Summary: sci-libs/caffe2-2.4.1 fails to compile: ld: libtorch_cpu.so: undefined refere...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 06:48 UTC by Agostino Sarubbo
Modified: 2024-09-16 17:42 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,89.96 KB, application/x-xz)
2024-09-16 06:48 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-09-16 06:48:26 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/caffe2-2.4.1 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-09-16 06:48:28 UTC
Created attachment 903099 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-09-16 06:48:29 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could not find hardware support for NEON on this machine.
-- Could NOT find Numa (missing: Numa_INCLUDE_DIR Numa_LIBRARIES) 
FAILED: bin/torch_shm_manager 
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_acosd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_acosf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_asind8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_asinf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_atan2d8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_atan2f16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_atand8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_atanf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_atanhd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_atanhf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_coshd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_coshf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_erfcd8_u15'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_erfcf16_u15'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_erfd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_exp2d8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_exp2f16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_expd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_expf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_expm1d8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_expm1f16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_hypotd8_u05'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_hypotf16_u05'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_lgammad8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_lgammaf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_log10d8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_log10f16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_log1pd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_log1pf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_log2d8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_log2f16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_logd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_logf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_powd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_powf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_sincosd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_sincosf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_sinhd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_sinhf16_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_tanhd8_u10'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_tanhf16_u10'
collect2: error: ld returned 1 exit status
Comment 3 Harris Landgarten 2024-09-16 12:59:28 UTC
Same here
Comment 4 Alexandre Ferreira 2024-09-16 13:32:41 UTC
Same.
Comment 5 Larry the Git Cow gentoo-dev 2024-09-16 17:42:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=580d02432beaed6af819f89437de5fe5597b399a

commit 580d02432beaed6af819f89437de5fe5597b399a
Author:     Alfredo Tupone <tupone@gentoo.org>
AuthorDate: 2024-09-16 17:35:45 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2024-09-16 17:38:15 +0000

    sci-libs/caffe2: require sleef with avx512
    
    Closes: https://bugs.gentoo.org/939726
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 sci-libs/caffe2/caffe2-2.4.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)