pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50281: inputmethod/ibus-mozc build fails on NetBSD/i386 7.0



>Number:         50281
>Category:       pkg
>Synopsis:       inputmethod/ibus-mozc build fails on NetBSD/i386 7.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 27 10:40:00 +0000 2015
>Originator:     Izumi Tsutsui
>Release:        NetBSD 7.0 + pkgsrc-2015Q3
>Organization:
>Environment:
System: NetBSD mirage 7.0 NetBSD 7.0 (GENERIC.201509250726Z) i386
Architecture: i386
Machine: i386
>Description:
inputmethod/ibus-mozc build *sometimes* fails due to lack of
some dependency information (probably in upstream sources).

"MAKE_JOBS_SAFE= no" was added recently in ibus-mozc/Makefile rev 1.24
 http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/inputmethod/ibus-mozc/Makefile#rev1.24
but it doesn't help at all in this case.
(because ninja ignores it or ${_MAKE_JOBS} is explicitly passed?)

>How-To-Repeat:
(cd pkgsrc/inputmethod/ibus-mozc && make clean && make package)

it sometimes fails like:
---
 :
[31/136] STAMP obj/base/base_core.compile_depends.stamp
[32/136] CXX obj/base/base_core.debug.o
FAILED: c++ -MMD -MF obj/session/key_info_util.key_info_util.o.d -DOS_NETBSD '-DMOZC_SERVER_DIRECTORY="/usr/pkg/libexec"' -DMOZC_BUILD -DCHANNEL_DEV -DENABLE_GTK_RENDERER -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/usr/obj.i386/pkgsrc/inputmethod/ibus-mozc/work.i386/mozc-3648b9bf06d5d9b36bed2425640bfd18ae05b588/src -Igen -Igen/proto_out -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fPIC -fno-exceptions -Wtype-limits -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt4/include -O2 -I/usr/pkg/include -I/usr/include -I/usr/include/krb5 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -I/usr/pkg/qt4/include -std=c++03 -Wno-deprecated -Wno-covered-switch-default -Wno-unnamed-type-template-args -Wno-c++11-narrowing -std=gnu++0x -std=gnu++0x  -c ../../session/key_inf!
 o_util.cc -o obj/session/key_info_util.key_info_util.o
../../session/key_info_util.cc:43:34: fatal error: protocol/commands.pb.h: No such file or directory
 #include "protocol/commands.pb.h"
                                  ^
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "build_mozc.py", line 1503, in <module>
    main()
  File "build_mozc.py", line 1499, in main
    procedure[1](cmd_opts, cmd_args, original_directory_name)
  File "build_mozc.py", line 1119, in BuildMain
    BuildOnBSD(options, targets, original_directory_name)
  File "build_mozc.py", line 1090, in BuildOnBSD
    RunOrDie([make_command] + build_args + target_names)
  File "/usr/obj.i386/pkgsrc/inputmethod/ibus-mozc/work.i386/mozc-3648b9bf06d5d9b36bed2425640bfd18ae05b588/src/build_tools/util.py", line 102, in RunOrDie
    '==========']))
build_tools.util.RunOrDieError: 
==========
 ERROR: ninja -j 16 -C out_bsd/Release ibus_mozc_lib ibus_mozc
==========
*** Error code 1

---

Note /etc/mk.conf has MAKE_JOBS=8 in this case and
the build machine has 8 logical cpus (Core i7-3770),
so I guess "ninja -j 16" is chosen by ninja/gyp.

>Fix:
It seems to work around to build ibus_mozc_lib separately.

Index: inputmethod/ibus-mozc/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/ibus-mozc/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- inputmethod/ibus-mozc/Makefile	23 Sep 2015 11:53:27 -0000	1.24
+++ inputmethod/ibus-mozc/Makefile	27 Sep 2015 10:24:50 -0000
@@ -10,13 +10,12 @@ DEPENDS+=	mozc-renderer-[0-9]*:../../inp
 DEPENDS+=	mozc-server-[0-9]*:../../inputmethod/mozc-server
 DEPENDS+=	mozc-tool-[0-9]*:../../inputmethod/mozc-tool
 
-# ../../session/key_info_util.cc:43:10: fatal error: 'protocol/commands.pb.h' file not found
-MAKE_JOBS_SAFE=	no
-
 do-build:
 	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
 		${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \
-			unix/ibus/ibus.gyp:ibus_mozc_lib \
+			unix/ibus/ibus.gyp:ibus_mozc_lib
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+		${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \
 			unix/ibus/ibus.gyp:ibus_mozc
 
 do-install:



Home | Main Index | Thread Index | Old Index