Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649466 - [gnome-overlay] dev-libs/json-glib-1.4.2 failed to build with a meson error message
Summary: [gnome-overlay] dev-libs/json-glib-1.4.2 failed to build with a meson error m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.26
  Show dependency tree
 
Reported: 2018-03-03 15:18 UTC by Seong-ho Cho
Modified: 2018-05-29 22:03 UTC (History)
2 users (show)

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


Attachments
build.log of dev-libs/json-glib-1.4.2 (build.log,6.23 KB, text/x-log)
2018-03-03 15:18 UTC, Seong-ho Cho
Details
emerge --info log (emerge_info.log,9.76 KB, text/plain)
2018-03-03 15:19 UTC, Seong-ho Cho
Details
json-glib-1.4.2.ebuild-fix-introspection.patch (json-glib-1.4.2.ebuild-fix-introspection.patch,466 bytes, patch)
2018-03-14 22:23 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Seong-ho Cho 2018-03-03 15:18:04 UTC
Created attachment 522080 [details]
build.log of dev-libs/json-glib-1.4.2

I am in stuck to build json-glib to continue building my system,
with below message.

The Meson build system
Version: 0.44.1
Source dir: /var/tmp/portage/dev-libs/json-glib-1.4.2/work/json-glib-1.4.2
Build dir: /var/tmp/portage/dev-libs/json-glib-1.4.2/work/json-glib-1.4.2-abi_x86_32.x86
Build type: native build
Project name: json-glib
Native C compiler: x86_64-pc-linux-gnu-gcc -m32 (gcc 6.3.0)
Appending CFLAGS from environment: '-O2 -pipe'
Appending LDFLAGS from environment: '-Wl,-O1 -Wl,--as-needed'
Build machine cpu family: x86
Build machine cpu: i686
Found pkg-config: /usr/bin/i686-pc-linux-gnu-pkg-config (0.29.2)
Native dependency gobject-2.0 found: YES 2.54.3
Native dependency gio-2.0 found: YES 2.54.3
Has header "unistd.h": YES
Compiler for C supports argument -Wcast-align: YES
Compiler for C supports argument -Wlogical-op: YES
Compiler for C supports argument -Wmissing-declarations: YES
Compiler for C supports argument -Wmissing-format-attribute: YES
Compiler for C supports argument -Wmissing-prototypes: YES
Compiler for C supports argument -Wmissing-noreturn: YES
Compiler for C supports argument -Wold-style-definition: YES
Compiler for C supports argument -Wpointer-arith: YES
Compiler for C supports argument -Wshadow: YES
Compiler for C supports argument -Wstrict-prototypes: YES
Compiler for C supports argument -Wunused: YES
Compiler for C supports argument -Wno-discarded-qualifiers: YES
Compiler for C supports argument -Wno-int-conversion: YES
Compiler for C supports argument -fno-strict-aliasing: YES
Compiler for C supports argument -Wno-uninitialized: YES
Compiler for C supports argument -Werror=address: YES
Compiler for C supports argument -Werror=array-bounds: YES
Compiler for C supports argument -Werror=empty-body: YES
Compiler for C supports argument -Werror=format=2: YES
Compiler for C supports argument -Werror=implicit: YES
Compiler for C supports argument -Werror=init-self: YES
Compiler for C supports argument -Werror=int-to-pointer-cast: YES
Compiler for C supports argument -Werror=main: YES
Compiler for C supports argument -Werror=missing-braces: YES
Compiler for C supports argument -Werror=nested-externs: YES
Compiler for C supports argument -Werror=nonnull: YES
Compiler for C supports argument -Werror=pointer-to-int-cast: YES
Compiler for C supports argument -Werror=return-type: YES
Compiler for C supports argument -Werror=sequence-point: YES
Compiler for C supports argument -Werror=trigraphs: YES
Compiler for C supports argument -Werror=undef: YES
Compiler for C supports argument -Werror=write-strings: YES
Compiler for C supports argument -fvisibility=hidden: YES
Compiler for C supports argument -Wl,-Bsymbolic: YES
Compiler for C supports argument -Wl,-z,relro: YES
Compiler for C supports argument -Wl,-z,now: YES
Configuring config.h using configuration
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Configuring json-version.h using configuration
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)

Meson encountered an error in file json-glib/meson.build, line 96, column 8:
gobject-introspection dependency was not found, gir cannot be generated.

 * ERROR: dev-libs/json-glib-1.4.2::gnome failed (configure phase):
 *   (no error message)

----------------------------

in file json-glib/meson.build, line 96, column 8,
gnome.generate_gir() function has called, but i don't know whether 'gnome' object has really created in runtime, and, furthermore, whether 'gnome' imported from.
Comment 1 Seong-ho Cho 2018-03-03 15:19:11 UTC
Created attachment 522082 [details]
emerge --info log
Comment 2 Mart Raudsepp gentoo-dev 2018-03-03 15:26:25 UTC
try installing gobject-introspection or disabling USE=introspection (if it had that); or let us know if you already had that installed and something else is going on.

Either way, some dependencies to fix I guess.
Comment 3 Seong-ho Cho 2018-03-04 08:50:54 UTC
gobject-introspection has already installed,
and I cannot remove 'introspection' use-flag from =dev-libs/json-glib-1.4.2
because 'introspection' specified as IUSE flag, and emerge says this flag should be on to compile json-glib.
Comment 4 Seong-ho Cho 2018-03-04 08:53:44 UTC
currently, gobject-introspection's version is 1.52.1 and meson's one is 0.44.1
Comment 5 Dennis Schridde 2018-03-14 22:23:28 UTC
Created attachment 523966 [details, diff]
json-glib-1.4.2.ebuild-fix-introspection.patch

The issue is that introspection is not supported for non-native ABIs.  Attached patch fixes it.
Comment 6 Larry the Git Cow gentoo-dev 2018-05-29 22:03:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gnome.git/commit/?id=566966cccc926f5ac76710f9fb936183f79387bb

commit 566966cccc926f5ac76710f9fb936183f79387bb
Author:     Sobhan Mohammadpour <sobhan@gentoo.org>
AuthorDate: 2018-05-29 22:01:30 +0000
Commit:     Sobhan Mohammadpour <sobhan@gentoo.org>
CommitDate: 2018-05-29 22:02:47 +0000

    dev-libs/json-glib: fix multilib instrospection dependency
    
    Patch-By:  Dennis Schridde  devurandom@gmx.net
    Closes: https://bugs.gentoo.org/649466
    
    Package-Manager: Portage-2.3.36, Repoman-2.3.9
    Manifest-Sign-Key: 0x7DF238CF0AA182E1

 .../json-glib/{json-glib-1.4.2.ebuild => json-glib-1.4.2-r1.ebuild}     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)