Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896264 - sci-libs/caffe2-1.13.1-r1: failed to compile
Summary: sci-libs/caffe2-1.13.1-r1: failed to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-24 15:23 UTC by Anton Bolshakov
Modified: 2023-03-27 15:27 UTC (History)
1 user (show)

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


Attachments
build.log (build_mine.log.gz,127.07 KB, application/gzip)
2023-02-24 15:24 UTC, Anton Bolshakov
Details
CMakeError.log (CMakeError.log,19.38 KB, text/x-log)
2023-02-24 15:30 UTC, Anton Bolshakov
Details
emerge --info (emerge_info.txt,7.06 KB, text/plain)
2023-02-24 15:46 UTC, Anton Bolshakov
Details
emerge --info (emerge_info.txt,7.07 KB, text/plain)
2023-02-24 16:05 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2023-02-24 15:23:41 UTC
sys-devel/gcc-12.2.1_p20230121-r1
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
Comment 1 Anton Bolshakov 2023-02-24 15:24:27 UTC
Created attachment 854360 [details]
build.log

not sure what's going on here
Comment 2 Anton Bolshakov 2023-02-24 15:30:40 UTC
Created attachment 854364 [details]
CMakeError.log

C_HAS_AVX_1 failed 
/usr/lib/gcc/x86_64-pc-linux-gnu/12/include/avxintrin.h:1318:1: error: inlining failed in call to ‘always_inline’ ‘_
mm256_set1_ps’: target specific option mismatch
Comment 3 Anton Bolshakov 2023-02-24 15:46:13 UTC
Created attachment 854366 [details]
emerge --info
Comment 4 Anton Bolshakov 2023-02-24 16:05:55 UTC
Created attachment 854368 [details]
emerge --info
Comment 5 Tupone Alfredo gentoo-dev 2023-02-26 16:27:33 UTC
It seems a CUDA specific error. A platform that I don't have.

I wonder if telans can better check what is happening here
Comment 6 Tupone Alfredo gentoo-dev 2023-03-26 19:23:03 UTC
Some errors are due to

dev-util/nvidia-cuda-toolkit-12

being installed.

please use < 12
Comment 7 Anton Bolshakov 2023-03-26 22:36:15 UTC
Confirm it fixed the issue.
Just to clarify, i had to use gcc <12 as well. Once downgraded, i had to recompile few QT packages too, such qtcore gtgui etc
You might want to improve ebuilds to enforce that
Comment 8 Tupone Alfredo gentoo-dev 2023-03-27 12:11:21 UTC
To see what the problem you have with gcc-12 i need a log
Comment 9 Anton Bolshakov 2023-03-27 13:10:10 UTC
(In reply to Tupone Alfredo from comment #8)
> To see what the problem you have with gcc-12 i need a log

the log is attached to this bug report.
<dev-util/nvidia-cuda-toolkit-12 requires <gcc-12, see its ebuild:

  ewarn "gcc > ${b} will not work with CUDA"

It's just not enforced.

As for QT bugs, I was getting the following:
: undefined reference to `std::__glibcxx_assert_fail(char const*, int, char const*, char const*)@GLIBCXX_3.4.30'

the error appered 4 times for the following binaries:
/usr/lib64/libonnx.so
/usr/lib64/libQt5Widgets.so.5
/usr/lib64/libQt5Core.so
/usr/lib64/libQt5Gui.so.5

which is:
 dev-qt/qtcore
 dev-qt/qtgui
 dev-qt/qtwidgets
 sci-libs/onnx
Comment 10 Tupone Alfredo gentoo-dev 2023-03-27 15:27:44 UTC
Ok, I understand now the gcc-12

For the Qt bug, I know it is not always easy to switch back and forth between 2 versions of gcc. You have to build more packages I suppose, but that is for another bug