ueno/libskk

Build error in openSUSE, report 64bit-portability-issue error

hillwoodroc opened this issue · 7 comments

[ 181s] + cd /home/abuild/rpmbuild/BUILD
[ 181s] + cd libskk-1.0.0
[ 181s] + DOCDIR=/home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386/usr/share/doc/packages/libskk
[ 181s] + export DOCDIR
[ 181s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386/usr/share/doc/packages/libskk
[ 181s] + cp -pr AUTHORS COPYING README /home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386/usr/share/doc/packages/libskk
[ 181s] + exit 0
[ 181s] Provides: libskk.so.0 pkgconfig(libskk) = 1.0.0
[ 181s] Requires(interp): /sbin/ldconfig /sbin/ldconfig
[ 181s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[ 181s] Requires(post): /sbin/ldconfig
[ 181s] Requires(postun): /sbin/ldconfig
[ 181s] Requires: /usr/bin/pkg-config libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3.4) libgee.so.2 libgio-2.0.so.0 libglib-2.0.so.0 libgobject-2.0.so.0 libjson-glib-1.0.so.0 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libskk.so.0 pkgconfig(gee-1.0) pkgconfig(gio-2.0) pkgconfig(gobject-2.0)
[ 181s] Processing files: libskk-devel-1.0.0-8.1.i586
[ 181s] Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.1xReeF
[ 181s] + umask 022
[ 181s] + cd /home/abuild/rpmbuild/BUILD
[ 181s] + cd libskk-1.0.0
[ 181s] + DOCDIR=/home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386/usr/share/doc/packages/libskk-devel
[ 181s] + export DOCDIR
[ 181s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386/usr/share/doc/packages/libskk-devel
[ 181s] + cp -pr AUTHORS COPYING README /home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386/usr/share/doc/packages/libskk-devel
[ 181s] + exit 0
[ 181s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[ 181s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386
[ 182s] Wrote: /home/abuild/rpmbuild/SRPMS/libskk-1.0.0-8.1.src.rpm
[ 183s] Wrote: /home/abuild/rpmbuild/RPMS/i586/libskk-1.0.0-8.1.i586.rpm
[ 183s] Wrote: /home/abuild/rpmbuild/RPMS/i586/libskk-devel-1.0.0-8.1.i586.rpm
[ 183s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.fGKIVC
[ 183s] + umask 022
[ 183s] + cd /home/abuild/rpmbuild/BUILD
[ 183s] + cd libskk-1.0.0
[ 183s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/libskk-1.0.0-8.1.i386
[ 183s] + exit 0
[ 183s] ... checking for files with abuild user/group
[ 183s] ... running 00-check-install-rpms
[ 183s] ... installing all built rpms
[ 183s] Preparing packages for installation...
[ 183s] libskk-1.0.0-8.1
[ 183s] libskk-devel-1.0.0-8.1
[ 183s] ... running 01-check-debuginfo
[ 183s] ... testing for empty debuginfo packages
[ 184s] ... running 02-check-gcc-output
[ 184s] ... testing for serious compiler warnings
[ 184s](using /usr/lib/build/checks-data/check_gcc_output)
[ 184s](using //.build.log)
[ 184s]
[ 184s] I: Program is likely to break with new gcc. Try -fno-strict-aliasing.
[ 184s] W: libskk strict-aliasing-punning cdb-dict.c:280
[ 184s]
[ 184s] I: A function uses a 'return;' statement, but has actually a value
[ 184s] to return, like an integer ('return 42;') or similar.
[ 184s] W: libskk voidreturn state.c:1563
[ 184s] E: libskk 64bit-portability-issue key-event.c:144, 145
[ 184s] E: libskk 64bit-portability-issue rule.c:330
[ 184s] E: libskk 64bit-portability-issue state.c:713, 714
[ 184s] E: libskk 64bit-portability-issue util.c:271
[ 188s] [ 166.572341] SysRq : Power Off
[ 188s] [ 166.742492] Power down.

Full log at https://build.opensuse.org/package/rawlog?arch=i586&package=libskk&project=home%3Ahillwood%3Abranches%3AM17N&repository=openSUSE_12.2

ueno commented

Could you try the following tarball (which contains workaround) and let me know how it works?
http://ueno.fedorapeople.org/libskk/libskk-1.0.0.tar.gz

OK , This tarball works fine. Is it the newest git version?

ueno commented

Thanks for testing. Pushed as: 6db0429

But build log still sport warnings:
[ 346s] I: Program is likely to break with new gcc. Try -fno-strict-aliasing.
[ 346s] W: libskk strict-aliasing-punning cdb-dict.c:280
[ 346s]
[ 346s] I: A function uses a 'return;' statement, but has actually a value
[ 346s] to return, like an integer ('return 42;') or similar.

But These warnings do not cause build failures.

ueno commented

Good point. Both should be fixed with 83b6227.

83b6227 build fail:
[ 118s] LC_ALL=C sort | uniq > .gitignore.tmp &&
[ 118s] mv .gitignore.tmp .gitignore;
[ 118s] CDPATH="${ZSH_VERSION+.}:" && cd . && --includedir=libskk -H libskk.h --vapi skk-1.0.vapi -h libskk-internals.h --vapidir=. --pkg config --pkg glib-2.0 --pkg gio-2.0 --pkg gee-1.0 --pkg posix --pkg json-glib-1.0 --internal-vapi skk-internals-1.0.vapi --library skk-1.0 --gir Skk-1.0.gir --symbols libskk.symbols -C rom-kana.vala kana-kan.vala encoding.vala dict.vala file-dict.vala cdb-dict.vala user-dict.vala skkserv.vala key-event.vala key-event-filter.vala keymap.vala rule.vala map-file.vala state.vala context.vala candidate.vala candidate-list.vala nicola.vala expr.vala util.vala keysyms.vala
[ 118s] /bin/sh: --includedir=libskk: command not found
[ 118s] make[2]: *** [libskk_la_vala.stamp] Error 127
[ 118s] make[2]: *** Waiting for unfinished jobs....
[ 118s] make[2]: Leaving directory /home/abuild/rpmbuild/BUILD/libskk-1.0.0git20120918/libskk' [ 118s] make[1]: *** [all-recursive] Error 1 [ 118s] make[1]: Leaving directory/home/abuild/rpmbuild/BUILD/libskk-1.0.0git20120918'
[ 118s] make: *** [all] Error 2
[ 118s] error: Bad exit status from /var/tmp/rpm-tmp.HNFa4n (%build)

Sorry , vala id not installed ,fixed.