Summary: | app-admin/chrpath-0.13-r2: compile fails on G/FBSD, CC=clang | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Yuta SATOH <nigoro.dev> |
Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 417789 | ||
Attachments: |
files/chrpath-0.13-fbsd-clang.patch
sample patch for chrpath-0.13-r2.ebuild |
Created attachment 355160 [details, diff]
files/chrpath-0.13-fbsd-clang.patch
Created attachment 355162 [details, diff]
sample patch for chrpath-0.13-r2.ebuild
I have exactly the same problem on macos. And I also basically add "-Wl,-rpath" in the darwin section. However in my case chrpath should be completely masked because chrpath relies elf.h which is not there since the format is mach-o for me. Obsoleting bugs for ancient clang versions. |
The following message is displayed and fails to compile. Configure status: ----------------- CC = clang CFLAGS = -O2 -pipe -mtune=generic -ansi -pedantic -W -Wall -Wcast-align -Wcast-qual -Wcomments -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes LDRPATH= -R >>> Source configured. >>> Compiling source in /var/tmp/portage/app-admin/chrpath-0.13-r2/work/chrpath-0.13 ... gmake -j1 gmake all-recursive gmake[1]: Entering directory `/var/tmp/portage/app-admin/chrpath-0.13-r2/work/chrpath-0.13' Making all in testsuite gmake[2]: Entering directory `/var/tmp/portage/app-admin/chrpath-0.13-r2/work/chrpath-0.13/testsuite' clang -R /usr/local/lib -o prog prog.c clang: warning: argument unused during compilation: '-R' /usr/local/lib: file not recognized: File format not recognized clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [prog] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/app-admin/chrpath-0.13-r2/work/chrpath-0.13/testsuite' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/app-admin/chrpath-0.13-r2/work/chrpath-0.13' gmake: *** [all] Error 2 emake failed * ERROR: app-admin/chrpath-0.13-r2 failed (compile phase): * emake failed Reproducible: Always Steps to Reproduce: 1. CC=clang emerge app-admin/chrpath 2. 3.