首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IcedTea 2.6.2配置:"llvm-config: error:组件已给定,但未使用“

IcedTea 2.6.2配置:"llvm-config: error:组件已给定,但未使用“
EN

Stack Overflow用户
提问于 2015-10-26 04:37:01
回答 1查看 176关注 0票数 0

我正在配置IcedTea 2.6.2,以便使用ZeroShark构建OpenJDK。为了制作IcedTea,我安装了以下依赖包:

代码语言:javascript
复制
sudo apt-get install zip gawk xsltproc libjpeg8-dev libgif-dev libpng12-dev liblcms2-dev libgtk2.0-dev cups libcups2-dev libc6-dev libattr1-dev libalsa-ocaml-dev libsctp-dev libXtst-dev libffi-dev llvm-3.6-dev

在进行以下操作之前配置IcedTea:

代码语言:javascript
复制
./configure --enable-zero --enable-shark --with-rhino=no 

但我被困在这一步了。以下是配置的输出:

代码语言:javascript
复制
    checking for llvm-config... /usr/bin/llvm-config
llvm-config: error: components given, but unused

usage: llvm-config <OPTION>... [<COMPONENT>...]

Get various configuration information needed to compile programs which use
LLVM.  Typically called from 'configure' scripts.  Examples:
  llvm-config --cxxflags
  llvm-config --ldflags
  llvm-config --libs engine bcreader scalaropts

Options:
  --version         Print LLVM version.
  --prefix          Print the installation prefix.
  --src-root        Print the source root LLVM was built from.
  --obj-root        Print the object root used to build LLVM.
  --bindir          Directory containing LLVM executables.
  --includedir      Directory containing LLVM headers.
  --libdir          Directory containing LLVM libraries.
  --cppflags        C preprocessor flags for files that include LLVM headers.
  --cflags          C compiler flags for files that include LLVM headers.
  --cxxflags        C++ compiler flags for files that include LLVM headers.
  --ldflags         Print Linker flags.
  --system-libs     System Libraries needed to link against LLVM components.
  --libs            Libraries needed to link against LLVM components.
  --libnames        Bare library names for in-tree builds.
  --libfiles        Fully qualified library filenames for makefile depends.
  --components      List of all possible components.
  --targets-built   List of all targets currently built.
  --host-target     Target triple used to configure LLVM.
  --build-mode      Print build mode of LLVM tree (e.g. Debug or Release).
  --assertion-mode  Print assertion mode of LLVM tree (ON or OFF).
Typical components:
  all               All LLVM libraries (default).
  engine            Either a native JIT or a bitcode interpreter.
llvm-config: error: components given, but unused

usage: llvm-config <OPTION>... [<COMPONENT>...]

Get various configuration information needed to compile programs which use
LLVM.  Typically called from 'configure' scripts.  Examples:
  llvm-config --cxxflags
  llvm-config --ldflags
  llvm-config --libs engine bcreader scalaropts

Options:
  --version         Print LLVM version.
  --prefix          Print the installation prefix.
  --src-root        Print the source root LLVM was built from.
  --obj-root        Print the object root used to build LLVM.
  --bindir          Directory containing LLVM executables.
  --includedir      Directory containing LLVM headers.
  --libdir          Directory containing LLVM libraries.
  --cppflags        C preprocessor flags for files that include LLVM headers.
  --cflags          C compiler flags for files that include LLVM headers.
  --cxxflags        C++ compiler flags for files that include LLVM headers.
  --ldflags         Print Linker flags.
  --system-libs     System Libraries needed to link against LLVM components.
  --libs            Libraries needed to link against LLVM components.
  --libnames        Bare library names for in-tree builds.
  --libfiles        Fully qualified library filenames for makefile depends.
  --components      List of all possible components.
  --targets-built   List of all targets currently built.
  --host-target     Target triple used to configure LLVM.
  --build-mode      Print build mode of LLVM tree (e.g. Debug or Release).
  --assertion-mode  Print assertion mode of LLVM tree (ON or OFF).
Typical components:
  all               All LLVM libraries (default).
  engine            Either a native JIT or a bitcode interpreter.
checking for LLVMGetNextInstruction in -lLLVM-3.5.0... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating hotspot.map
config.status: creating fsg.sh
config.status: creating jconsole.desktop
config.status: creating policytool.desktop
config.status: creating nss.cfg
config.status: creating linux.fontconfig.Gentoo.properties
config.status: creating javac
config.status: creating javap
config.status: creating javah
config.status: creating tz.properties
config.status: creating pax-mark-vm
config.status: creating remove-intree-libraries.sh
config.status: creating tapset/hotspot.stp
config.status: creating tapset/hotspot_jni.stp
config.status: creating tapset/jstack.stp
config.status: creating tapset/hotspot_gc.stp
config.status: executing depfiles commands

我使用的是X86_64 ubuntu。任何帮助都将不胜感激。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2015-10-27 07:02:17

为了使用Shark,您需要使用一个非常特殊的LLVM版本。IIRC,它大概是3.4或类似的(旧)版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33334827

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档