Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596430 - sys-devel/llvm-3.9.0: install fails on x86-fbsd
Summary: sys-devel/llvm-3.9.0: install fails on x86-fbsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-07 12:01 UTC by Yuta SATOH
Modified: 2017-01-21 23:55 UTC (History)
0 users

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


Attachments
sample patch for x86-fbsd profile. (bug596430.patch,456 bytes, patch)
2016-10-07 12:39 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2016-10-07 12:01:22 UTC
The following message is displayed and fails to install.

<snip>
-- Installing: /var/tmp/portage/sys-devel/llvm-3.9.0/image/usr/lib/cmake/llvm/./CrossCompile.cmake
 * Fixing shebang in usr/bin/git-clang-format.
 * Fixing shebang in usr/bin/scan-view.
 * Fixing shebang in usr/bin/asan_symbolize.py.
 * Fixing shebang in usr/share/clang/clang-format-diff.py.
 * Fixing shebang in usr/share/clang/clang-tidy-diff.py.
 * Fixing shebang in usr/share/clang/run-clang-tidy.py.
 * Fixing shebang in usr/share/clang/run-find-all-symbols.py.
ln: illegal option -- c
usage: ln [-s [-F] | -L | -P] [-f | -i] [-hnv] source_file [target_file]
       ln [-s [-F] | -L | -P] [-f | -i] [-hnv] source_file ... target_dir
       link source_file target_file
 * ERROR: sys-devel/llvm-3.9.0::gentoo failed (install phase):
 *   dosym failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/llvm-3.9.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-3.9.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-3.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-3.9.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src'
 * S: '/var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src'

>>> Failed to emerge sys-devel/llvm-3.9.0, Log file:

>>>  '/var/tmp/portage/sys-devel/llvm-3.9.0/temp/build.log'

 * Messages for package sys-devel/llvm-3.9.0:

 * Failed to set XATTR_PAX markings -m /var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src-abi_x86_32.x86_fbsd/bin/llvm-rtdyld.
 * Failed to set XATTR_PAX markings -m /var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src-abi_x86_32.x86_fbsd/bin/lli.
 * Failed to set XATTR_PAX markings -m /var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src-abi_x86_32.x86_fbsd/bin/lli-child-target.
 * ERROR: sys-devel/llvm-3.9.0::gentoo failed (install phase):
 *   dosym failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/llvm-3.9.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-3.9.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-3.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-3.9.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src'
 * S: '/var/tmp/portage/sys-devel/llvm-3.9.0/work/llvm-3.9.0.src'
G
Comment 1 Yuta SATOH 2016-10-07 12:39:30 UTC
Created attachment 449452 [details, diff]
sample patch for x86-fbsd profile.

Empty CHOST_x86_fbsd.

# grep CHOST_x86_fbsd /var/tmp/portage/sys-devel/llvm-3.9.0/temp/environment
declare -x CHOST_x86_fbsd=""


So, can not get CHOST. can not set correct file name...

 * dosym clang-3.9 /usr/bin/clang++-3.9
 * dosym clang++-3.9 /usr/bin/clang++
 * dosym clang-3.9 /usr/bin/clang-cl-3.9
 * dosym clang-cl-3.9 /usr/bin/clang-cl
 * dosym clang-3.9 /usr/bin/clang-cpp-3.9
 * dosym clang-cpp-3.9 /usr/bin/clang-cpp
 * dosym clang-3.9 /usr/bin/-clang-3.9
 * dosym -clang-3.9 /usr/bin/-clang


... Patch, define CHOST_x86_fbsd, can be installed without any problems.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-01-21 11:19:57 UTC
Was this fixed or do we still need to do something?
Comment 3 Yuta SATOH 2017-01-21 23:55:10 UTC
(In reply to Michał Górny from comment #2)
> Was this fixed or do we still need to do something?
PR has been merged.
This bug will be able to close.

https://github.com/gentoo/gentoo/pull/2505