Bug 250478 - devel/llvm10: fials to build
Summary: devel/llvm10: fials to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kyle Evans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-20 02:03 UTC by VVD
Modified: 2020-10-20 13:26 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments
CMakeError.log (17.30 KB, text/plain)
2020-10-20 02:03 UTC, VVD
no flags Details
CMakeOutput.log (33.94 KB, text/plain)
2020-10-20 02:04 UTC, VVD
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description VVD 2020-10-20 02:03:45 UTC
Created attachment 218908 [details]
CMakeError.log

12.1-p10 amd64.
llvm10-10.0.1_1 was build fine, but current llvm10-10.0.1_2 failed.

        BE_AMDGPU      : on
        BE_FREEBSD     : off
        BE_NATIVE      : on
        BE_STANDARD    : off
        CLANG          : on
        COMPILER_RT    : on
        DOCS           : off
        EXTRAS         : on
        GOLD           : on
        LIT            : on
        LLD            : on
        LLDB           : on
        LLD_LINK       : on
        OPENMP         : on
        PYCLANG        : on

After [4573/4573] error:

-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - not found
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:245 (message):
  llvm-config finding xray failed with status 1
Call Stack (most recent call first):
  CMakeLists.txt:77 (load_llvm_config)


CMake Warning at cmake/Modules/CompilerRTUtils.cmake:269 (message):
  testingsupport library not installed, some tests will be skipped
Call Stack (most recent call first):
  CMakeLists.txt:77 (load_llvm_config)


CMake Error at cmake/Modules/CompilerRTUtils.cmake:293 (include):
  include could not find load file:

    /tmp/work/usr/ports/devel/llvm10/work/lib/cmake/llvm/LLVMConfig.cmake
Call Stack (most recent call first):
  CMakeLists.txt:77 (load_llvm_config)


-- Found PythonInterp: /usr/local/bin/python3.7 (found version "3.7.9") 
CMake Error at cmake/Modules/CompilerRTUtils.cmake:317 (string):
  string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
  CMakeLists.txt:106 (construct_compiler_rt_default_triple)

...............

-- Builtin supported architectures: 
-- Configuring incomplete, errors occurred!
See also "/tmp/work/usr/ports/devel/llvm10/work/compiler-rt-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/work/usr/ports/devel/llvm10/work/compiler-rt-build/CMakeFiles/CMakeError.log".
*** Error code 1
Comment 1 VVD 2020-10-20 02:04:24 UTC
Created attachment 218909 [details]
CMakeOutput.log
Comment 2 Joseph Mingrone freebsd_committer 2020-10-20 03:16:03 UTC
Seeing the same build error in a 12.1-RELEASE-p10 amd64 jail.

http://pkg.awarnach.mathstat.dal.ca/data/12amd64-default/2020-10-19_23h49m44s/logs/errors/llvm10-10.0.1_2.log
Comment 3 Tatsuki Makino 2020-10-20 06:35:41 UTC
I got "-- Configuring done" without fial.
I use cmake-3.18.3 instead of 3.18.4.
Comment 4 Tatsuki Makino 2020-10-20 08:41:46 UTC
Build failed in condition comment #3.
The fact that cmake is new doesn't seem to matter.
Comment 5 commit-hook freebsd_committer 2020-10-20 11:38:35 UTC
A commit references this bug:

Author: kevans
Date: Tue Oct 20 11:38:05 UTC 2020
New revision: 552813
URL: https://svnweb.freebsd.org/changeset/ports/552813

Log:
  devel/llvm10: fix the patch added in r552764

  A stray semicolon would cause llvm binaries to segfault as they
  always get the wrong "executable path" on 12.1/11.4. Only test built on
  -CURRENT, which doesn't use this path. =(

  Pointy hat:	kevans
  PR:		250478, 250448
  MFH:		2020Q4 (implicit, build fix)

Changes:
  head/devel/llvm10/files/patch-lib_Support_Unix_Path.inc
Comment 6 Kyle Evans freebsd_committer 2020-10-20 11:39:54 UTC
Steal; this is my fault. Note the rpc/xdr.h bit is a red herring:

CMake Warning at cmake/Modules/CompilerRTUtils.cmake:245 (message):
  llvm-config finding xray failed with status 1

=(
Comment 7 commit-hook freebsd_committer 2020-10-20 13:25:53 UTC
A commit references this bug:

Author: kevans
Date: Tue Oct 20 13:25:18 UTC 2020
New revision: 552818
URL: https://svnweb.freebsd.org/changeset/ports/552818

Log:
  MFH: r552813

  devel/llvm10: fix the patch added in r552764

  A stray semicolon would cause llvm binaries to segfault as they
  always get the wrong "executable path" on 12.1/11.4. Only test built on
  -CURRENT, which doesn't use this path. =(

  Pointy hat:	kevans
  PR:		250478, 250448

  Approved by:	ports-secteam (implicit, build fix)

Changes:
_U  branches/2020Q4/
  branches/2020Q4/devel/llvm10/files/patch-lib_Support_Unix_Path.inc
Comment 8 Kyle Evans freebsd_committer 2020-10-20 13:26:35 UTC
Fix was confirmed on 12.1/i386 and MFH'd; sorry for the breakage!