Bug 225802

Summary: Error generating INDEX
Product: Ports & Packages Reporter: Vladimir Omelchuk <admin>
Component: Individual Port(s)Assignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me CC: admin, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
possible patch to misc/sword none

Description Vladimir Omelchuk 2018-02-10 11:03:57 UTC
root@vladiom:/usr/ports # make index
Generating INDEX-11 - please wait..--- describe.accessibility ---
[…]
--- describe.misc ---
sh: clang38: not found
make[5]: "/usr/ports/Mk/Uses/compiler.mk" line 69: warning: "clang38 --version" returned non-zero status
make[5]: "/usr/ports/Mk/Uses/compiler.mk" line 112: warning: "clang++38 -### /dev/null 2>&1" returned non-zero status
--- describe.multimedia ---
[…]
--- describe.x11-wm ---
make_index: /usr/ports/x11/kde4: no entry for /usr/ports/games/kdegames-kde4
 Done.

# uname -srm
FreeBSD 11.1-RELEASE-p6 amd64
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-02-10 16:57:05 UTC
There are two symptoms here.

 - The first, the warning about a specific clang version, is annoying but harmless.  I will try to chase it down.

 - The second would appear to be a bug in the x11/kde4 metaport, but I can't reproduce it.

I would advise checking to make sure you have the full, current, ports tree.  (If you are trying to INDEX based off a partial ports tree, it's something that we have never tried to support -- the categories are too interdependent.)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-02-10 17:06:29 UTC
Regarding the compiler.mk part, it looks like you set CC=clang38 and CXX=clang++38 in the /etc/make.conf or somewhere else.

from /usr/ports/Mk/Uses/compiler.mk:
 69 _CCVERSION!=    ${CC} --version
112 _CXXINTERNAL!=  ${CXX} -\#\#\# /dev/null 2>&1
Comment 3 Walter Schwarzenfeld 2018-02-10 17:30:11 UTC
games//kdegames-kde4 fixed with #225603 (half an hour after this report).
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2018-02-10 17:41:30 UTC
(In reply to Mark Linimon from comment #1)

Hmm.  This looks like it may have already been fixed via PR 225803 ?
Comment 5 Vladimir Omelchuk 2018-02-10 18:29:26 UTC
(In reply to Po-Chuan Hsieh from comment #2)

No, I use default clang.

<make.conf>
MAKE_JOBS_UNSAFE=yes
DISABLE_VULNERABILITIES=YES
OPTIONS_SET=CUPS
WITHOUT_LPR=YES
DEFAULT_VERSIONS+= apache=2.4 mysql=5.7 ssl=openssl pgsql=9.6
QT4_OPTIONS=CUPS NAS QGTKSTYLE
LOCALIZED_LANG=ru
.if ${.CURDIR:M*/ports/devel/ccache}
NO_CCACHE=yes
.endif
.if ${.CURDIR:M*/emulators/linux-c6}
OPTIONS_SET=NVIDIA_GL
.endif
.if ${.CURDIR:M*/graphics/linux-c6-glx-utils}
OPTIONS_SET=NVIDIA_GL
.endif
.if ${.CURDIR:M*/x11-toolkits/linux-c6-qt47-x11}
OPTIONS_SET=NVIDIA_GL
.endif

Yes, games/kdegames-kde4 fixed. Thanks!
Comment 6 Walter Schwarzenfeld 2018-02-10 19:22:35 UTC
Confirm clang warning, same on my system.
Comment 7 Walter Schwarzenfeld 2018-02-10 19:32:21 UTC
The only port in /usr/port/misc which contains in the Makefile clang38 and clang+38 is sword.
Comment 8 Mark Linimon freebsd_committer freebsd_triage 2018-02-10 19:34:45 UTC
(In reply to w.schwarzenfeld from comment #6)

The problem is in misc/sword.  I don't know the correct fix right offhand.
Comment 9 Mark Linimon freebsd_committer freebsd_triage 2018-02-10 19:48:24 UTC
Created attachment 190487 [details]
possible patch to misc/sword

I haven't tested this for building; someone more familiar with configuration should comment on whether this is the correct approach.
Comment 10 Walter Schwarzenfeld 2018-02-10 19:49:55 UTC
Same error on 10.4.
Comment 11 Antoine Brodin freebsd_committer freebsd_triage 2018-02-12 10:14:15 UTC
INDEX builds successfully,  this is just a spurious warning that will be removed once misc/sword is upgraded.