Package Details: llvm70 7.0.1-1

Git Clone URL: https://aur.archlinux.org/llvm70.git (read-only, click to copy)
Package Base: llvm70
Description: LLVM compiler toolchain, version 7.0 (installed under /opt/llvm70)
Upstream URL: https://llvm.org/
Licenses: custom:University of Illinois/NCSA Open Source License
Submitter: Bevan
Maintainer: Bevan
Last Packager: Bevan
Votes: 0
Popularity: 0.000000
First Submitted: 2019-12-01 21:35
Last Updated: 2020-07-18 14:34

Latest Comments

Bevan commented on 2020-07-18 14:36

gnaggnoyil, I now updated the PKGBUILD so that it should also work in your case. However, the OCaml and go bindings are not included. If you need them, please get back to me, then we can include them here.

Bevan commented on 2020-07-17 06:08

gnaggnoyil: Thanks for the hint! I never encountered this issue, probably because I do not have ocaml installed. I think there are two options:

  1. Require ocaml and build ocaml bindings and docs as the Arch package does
  2. Configure LLVM explicitly to build neither bindings nor docs, even if ocaml is installed

Personally, I would like to try the second option to keep this package a bit smaller and with fewer dependencies. Do you actually use the ocaml bindings (i.e., llvm-ocaml for most recent LLVM in the arch repos)?

gnaggnoyil commented on 2020-07-16 13:37

The PKGBUILD seems to be forgetting to build target ocaml_doc, which leads to installation errors eventually. Please consider changing ninja to ninja all ocaml_doc just like what offical llvm package does.

Bevan commented on 2020-02-29 12:28

satcom886: I tried but could not replicate this error. This could be a bug in GCC or a hardware issue in your machine, most likely bad memory. I would recommend running memtest for a while to make sure it was not caused by bad memory.

satcom886 commented on 2020-02-12 19:10

Hi, I just got a segmentation fault while building this. It only happened in my first attempt however. The second attempt seems to have gotten past this part without issues. Here is the output from the first attempt:

[406/2824] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/TwoAddressInstructionPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/TwoAddressInstructionPass.cpp.o 
/usr/bin/c++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/CodeGen -I../lib/CodeGen -I/usr/include/libxml2 -Iinclude -I../include -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-class-memaccess -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG    -fno-exceptions -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/TwoAddressInstructionPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/TwoAddressInstructionPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/TwoAddressInstructionPass.cpp.o -c ../lib/CodeGen/TwoAddressInstructionPass.cpp
In file included from ../include/llvm/ADT/Optional.h:23,
                 from ../include/llvm/ADT/STLExtras.h:20,
                 from ../include/llvm/ADT/StringRef.h:13,
                 from ../include/llvm/ADT/StringMap.h:17,
                 from ../include/llvm/Support/Host.h:17,
                 from ../include/llvm/ADT/Hashing.h:49,
                 from ../include/llvm/ADT/ArrayRef.h:13,
                 from ../include/llvm/ADT/DenseMapInfo.h:17,
                 from ../include/llvm/ADT/DenseMap.h:17,
                 from ../lib/CodeGen/TwoAddressInstructionPass.cpp:30:
/usr/include/c++/9.2.1/algorithm:62: internal compiler error: Segmentation fault
   62 | #include <bits/stl_algo.h>
      | 
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
[408/2824] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/TargetSubtargetInfo.cpp.o
In file included from ../include/llvm/CodeGen/TargetSubtargetInfo.h:22,
                 from ../lib/CodeGen/TargetSubtargetInfo.cpp:14:
../include/llvm/CodeGen/SchedulerRegistry.h: In constructor ‘llvm::RegisterScheduler::RegisterScheduler(const char*, const char*, llvm::RegisterScheduler::FunctionPassCtor)’:
../include/llvm/CodeGen/SchedulerRegistry.h:40:52: warning: cast between incompatible function types from ‘llvm::RegisterScheduler::FunctionPassCtor’ {aka ‘llvm::ScheduleDAGSDNodes* (*)(llvm::SelectionDAGISel*, llvm::CodeGenOpt::Level)’} to ‘llvm::MachinePassCtor’ {aka ‘void* (*)()’} [-Wcast-function-type]
   40 |   : MachinePassRegistryNode(N, D, (MachinePassCtor)C)
      |                                                    ^
ninja: build stopped: subcommand failed.