Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 745915 - >=sci-libs/symengine-0.6.0: with USE=llvm: CMake Error at /.../LLVM-Config.cmake:136 (message): Target X86 is not in the set of libraries
Summary: >=sci-libs/symengine-0.6.0: with USE=llvm: CMake Error at /.../LLVM-Config.cm...
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:
Keywords: PMASKED
: 800251 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-01 07:23 UTC by Toralf Förster
Modified: 2022-06-11 06:50 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.19 KB, text/plain)
2020-10-01 07:24 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,47.60 KB, text/plain)
2020-10-01 07:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,102.20 KB, text/plain)
2020-10-01 07:24 UTC, Toralf Förster
Details
environment (environment,89.31 KB, text/plain)
2020-10-01 07:24 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.74 KB, application/x-bzip)
2020-10-01 07:24 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.75 KB, application/x-bzip)
2020-10-01 07:24 UTC, Toralf Förster
Details
sci-libs:symengine-0.6.0:20201001-002213.log (sci-libs:symengine-0.6.0:20201001-002213.log,4.05 KB, text/plain)
2020-10-01 07:24 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.37 KB, application/x-bzip)
2020-10-01 07:24 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 2020-10-01 07:23:59 UTC
-- Found GMP: /usr/lib64/libgmp.so  
-- Found ECM: /usr/lib64/libecm.so  
CMake Error at /usr/lib/llvm/10/lib64/cmake/llvm/LLVM-Config.cmake:136 (message):
  Target X86 is not in the set of libraries.
Call Stack (most recent call first):
  /usr/lib/llvm/10/lib64/cmake/llvm/LLVM-Config.cmake:261 (llvm_expand_pseudo_components)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-libressl-20200928-071647

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Rust versions:
  [1]   rust-1.46.0 *
The following VMs are available for generation-2:
1)	JamVM JDK 2.0.0 [jamvm]
*)	AdoptOpenJDK 8.265_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   jamvm 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Oct  1 12:05:37 AM UTC 2020
/var/db/repos/libressl	Tue Sep 29 02:07:38 PM UTC 2020

emerge -qpvO sci-libs/symengine
[ebuild  N    ] sci-libs/symengine-0.6.0  USE="ecm llvm openmp -arb -benchmarks -boost -debug -doc -flint -mpc -mpfr -tcmalloc -test -threads"
Comment 1 Toralf Förster gentoo-dev 2020-10-01 07:24:01 UTC
Created attachment 663376 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-10-01 07:24:03 UTC
Created attachment 663379 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2020-10-01 07:24:04 UTC
Created attachment 663382 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-10-01 07:24:06 UTC
Created attachment 663385 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-10-01 07:24:07 UTC
Created attachment 663388 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-10-01 07:24:08 UTC
Created attachment 663391 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-10-01 07:24:09 UTC
Created attachment 663394 [details]
sci-libs:symengine-0.6.0:20201001-002213.log
Comment 8 Toralf Förster gentoo-dev 2020-10-01 07:24:11 UTC
Created attachment 663397 [details]
temp.tbz2
Comment 9 Erik Zeek 2021-03-14 15:53:26 UTC
This affects sci-libs/symengine-0.7.0 too.
Comment 10 Matthias Maier gentoo-dev 2021-04-16 15:50:32 UTC
It compiles successfully with USE=-llvm. I wonder whether this is just an llvm compatibility issue, i.e. whether symengine requires llvm-10 (or earlier)?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-17 03:00:50 UTC
*** Bug 800251 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2022-02-21 03:17:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381c712ea96ac4f907a6bbe64a1ed7729632442d

commit 381c712ea96ac4f907a6bbe64a1ed7729632442d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-21 03:14:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-21 03:14:58 +0000

    sci-libs/symengine: mask USE=llvm
    
    Needs some build system work and I can't get to the bottom of it right now.
    
    Bug: https://bugs.gentoo.org/745915
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask            |  5 +++++
 sci-libs/symengine/symengine-0.9.0.ebuild | 12 ++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
Comment 13 Matthias Maier gentoo-dev 2022-05-20 16:12:30 UTC
A minimal reproducer is the following CMakeLists.txt file:

  cmake_minimum_required(VERSION 2.8.12)
  project(symengine)

  set(SYMENGINE_LLVM_COMPONENTS asmparser core executionengine instcombine mcjit native nativecodegen scalaropts vectorize support transformutils)
  find_package(LLVM REQUIRED ${SYMENGINE_LLVM_COMPONENTS})
  llvm_map_components_to_libnames(llvm_libs_direct ${SYMENGINE_LLVM_COMPONENTS})


This CMakeLists.txt file configures successfully with llvm-11 in a Debian container, but fails for llvm-12 onwards on my Gentoo machines.
Comment 14 Larry the Git Cow gentoo-dev 2022-06-11 06:50:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=973db0dbc3113bf9df5f60722573e213abb76f27

commit 973db0dbc3113bf9df5f60722573e213abb76f27
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2022-06-11 06:48:53 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2022-06-11 06:50:26 +0000

    sci-libs/symengine: fix USE=llvm
    
    Closes: https://bugs.gentoo.org/745915
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 profiles/base/package.use.mask                     |  5 --
 .../symengine/files/symengine-0.8.1-fix_llvm.patch | 53 ++++++++++++++++++++++
 sci-libs/symengine/symengine-0.8.1-r1.ebuild       |  1 +
 3 files changed, 54 insertions(+), 5 deletions(-)