Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667804 - =sci-libs/symengine-0.3.0-r1[llvm] fails to compile
Summary: =sci-libs/symengine-0.3.0-r1[llvm] fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard: fixed in 0.5.0
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-05 12:44 UTC by Bernd
Modified: 2020-03-08 18:47 UTC (History)
1 user (show)

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


Attachments
build log (symengine-0.3.0-r1:20181005-121236.log,20.98 KB, text/x-log)
2018-10-05 12:44 UTC, Bernd
Details
output of emerge --info (emerge-info.txt,13.06 KB, text/plain)
2018-10-05 12:45 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2018-10-05 12:44:29 UTC
Created attachment 549444 [details]
build log

With USE flag llvm enabled, the package fails to compile with

-- execute_process: /usr/bin/x86_64-pc-linux-gnu-g++;-Dsymengine_EXPORTS;-D_GNU_SOURCE;-D__STDC_CONSTANT_MACROS;-D__STDC_FORMAT_MACROS;-D__STDC_LIMIT_MACROS;-DNDEBUG;-O2;-pipe;-march=bdver2;-mprefer-avx128;-mvzeroupper;-frecord-gcc-switches;-std=c++11;-Wno-unused-parameter;-march=native;-fopenmp;-fPIC;-I/var/tmp/portage/sci-libs/symengine-0.3.0-r1/work/symengine-0.3.0;-I/var/tmp/portage/sci-libs/symengine-0.3.0-r1/work/symengine-0.3.0_build;-I/usr/include/flint;-I/usr/lib/llvm/6/include;-x;c++-header;-c;/var/tmp/portage/sci-libs/symengine-0.3.0-r1/work/symengine-0.3.0_build/symengine/cotire/symengine_CXX_prefix.hxx;-o;/var/tmp/portage/sci-libs/symengine-0.3.0-r1/work/symengine-0.3.0_build/symengine/cotire/symengine_CXX_prefix.hxx.gch
/usr/lib/llvm/6/include/llvm/ADT/APInt.h:81:25: error: expected unqualified-id before numeric constant
   static const WordType WORD_MAX = ~WordType(0);

For complete build.log see the attached logfile.

Output of emerge -pqv =sci-libs/symengine-0.3.0-r1::gentoo:
[ebuild   R   ] sci-libs/symengine-0.3.0-r1  USE="arb boost flint llvm* mpc mpfr openmp threads -benchmarks -debug -doc -tcmalloc -test"
Comment 1 Bernd 2018-10-05 12:45:51 UTC
Created attachment 549446 [details]
output of emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2020-03-08 15:01:20 UTC
What about 0.5.0?
Comment 3 Bernd 2020-03-08 16:47:47 UTC
0.5.0 builds using llvm-9 and with USE=-threads, which has become mutually exclusive with USE=openmp.
Comment 4 Andreas Sturmlechner gentoo-dev 2020-03-08 18:47:32 UTC
Thanks for checking back.