NetBSD Problem Report #55246

From www@netbsd.org  Fri May  8 16:33:53 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CE75F1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  8 May 2020 16:33:53 +0000 (UTC)
Message-Id: <20200508163352.7F44E1A921E@mollari.NetBSD.org>
Date: Fri,  8 May 2020 16:33:52 +0000 (UTC)
From: cryintothebluesky@gmail.com
Reply-To: cryintothebluesky@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devel/gobject-introspection fails to build on Linux - fatal error: stddef.h: No such file or directory
X-Send-Pr-Version: www-1.0

>Number:         55246
>Category:       pkg
>Synopsis:       devel/gobject-introspection fails to build on Linux - fatal error: stddef.h: No such file or directory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 08 16:35:01 +0000 2020
>Originator:     Sad Clouds
>Release:        
>Organization:
>Environment:
Linux rp4 5.3.18-lp152.12-default #1 SMP Wed Apr 22 11:58:08 UTC 2020 (d78ab68) aarch64 aarch64 aarch64 GNU/Linux
>Description:
The weird python build system that is used for this package is failing to locate stddef.h

[1/54] Generating gir-glib with a custom command.
FAILED: gir/GLib-2.0.gir 
/opt/pkg/bin/python3.7 tools/g-ir-scanner --output=gir/GLib-2.0.gir --no-libtool --quiet --reparse-validate --add-include-path /opt/netbsd_build/objects/devel/gobject-introspection/work/gobject-introspection-1.64.0/output/gir --add-include-path /opt/netbsd_build/objects/devel/gobject-introspection/work/gobject-introspection-1.64.0/gir --identifier-prefix=G --symbol-prefix=g --symbol-prefix=glib --c-include=glib.h --namespace=GLib --nsversion=2.0 --library=glib-2.0 --library=gobject-2.0 --external-library --pkg=glib-2.0 --cflags-begin -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -DGLIB_COMPILATION -D__G_I18N_LIB_H__ -DGETTEXT_PACKAGE=Dummy --cflags-end /opt/pkg/include/glib-2.0/gobject/glib-types.h /opt/pkg/lib/glib-2.0/include/glibconfig.h /opt/pkg/include/glib-2.0/glib-unix.h /opt/pkg/include/glib-2.0/glib/galloca.h /opt/pkg/include/glib-2.0/glib/garray.h /opt/pkg/include/glib-2.0/glib/gasyncqueue.h /opt/pkg/include/glib-2.0/glib/gatomic.h /opt/pkg/include/glib-2.0/gl
 ib/gbacktrace.h /opt/pkg/include/glib-2.0/glib/gbase64.h /opt/pkg/include/glib-2.0/glib/gbitlock.h /opt/pkg/include/glib-2.0/glib/gbookmarkfile.h /opt/pkg/include/glib-2.0/glib/gbytes.h /opt/pkg/include/glib-2.0/glib/gcharset.h /opt/pkg/include/glib-2.0/glib/gchecksum.h /opt/pkg/include/glib-2.0/glib/gconvert.h /opt/pkg/include/glib-2.0/glib/gdataset.h /opt/pkg/include/glib-2.0/glib/gdate.h /opt/pkg/include/glib-2.0/glib/gdatetime.h /opt/pkg/include/glib-2.0/glib/gdir.h /opt/pkg/include/glib-2.0/glib/genviron.h /opt/pkg/include/glib-2.0/glib/gerror.h /opt/pkg/include/glib-2.0/glib/gfileutils.h /opt/pkg/include/glib-2.0/glib/ggettext.h /opt/pkg/include/glib-2.0/glib/ghash.h /opt/pkg/include/glib-2.0/glib/ghmac.h /opt/pkg/include/glib-2.0/glib/ghook.h /opt/pkg/include/glib-2.0/glib/ghostutils.h /opt/pkg/include/glib-2.0/glib/gi18n-lib.h /opt/pkg/include/glib-2.0/glib/gi18n.h /opt/pkg/include/glib-2.0/glib/giochannel.h /opt/pkg/include/glib-2.0/glib/gkeyfile.h /opt/pkg/include/glib-2.0
 /glib/glist.h /opt/pkg/include/glib-2.0/glib/gmacros.h /opt/pkg/include/glib-2.0/glib/gmain.h /opt/pkg/include/glib-2.0/glib/gmappedfile.h /opt/pkg/include/glib-2.0/glib/gmarkup.h /opt/pkg/include/glib-2.0/glib/gmem.h /opt/pkg/include/glib-2.0/glib/gmessages.h /opt/pkg/include/glib-2.0/glib/gnode.h /opt/pkg/include/glib-2.0/glib/goption.h /opt/pkg/include/glib-2.0/glib/gpattern.h /opt/pkg/include/glib-2.0/glib/gpoll.h /opt/pkg/include/glib-2.0/glib/gprimes.h /opt/pkg/include/glib-2.0/glib/gprintf.h /opt/pkg/include/glib-2.0/glib/gqsort.h /opt/pkg/include/glib-2.0/glib/gquark.h /opt/pkg/include/glib-2.0/glib/gqueue.h /opt/pkg/include/glib-2.0/glib/grand.h /opt/pkg/include/glib-2.0/glib/grcbox.h /opt/pkg/include/glib-2.0/glib/grefcount.h /opt/pkg/include/glib-2.0/glib/grefstring.h /opt/pkg/include/glib-2.0/glib/gregex.h /opt/pkg/include/glib-2.0/glib/gscanner.h /opt/pkg/include/glib-2.0/glib/gsequence.h /opt/pkg/include/glib-2.0/glib/gshell.h /opt/pkg/include/glib-2.0/glib/gslice.h /o
 pt/pkg/include/glib-2.0/glib/gslist.h /opt/pkg/include/glib-2.0/glib/gspawn.h /opt/pkg/include/glib-2.0/glib/gstdio.h /opt/pkg/include/glib-2.0/glib/gstrfuncs.h /opt/pkg/include/glib-2.0/glib/gstring.h /opt/pkg/include/glib-2.0/glib/gstringchunk.h /opt/pkg/include/glib-2.0/glib/gtestutils.h /opt/pkg/include/glib-2.0/glib/gthread.h /opt/pkg/include/glib-2.0/glib/gthreadpool.h /opt/pkg/include/glib-2.0/glib/gtimer.h /opt/pkg/include/glib-2.0/glib/gtimezone.h /opt/pkg/include/glib-2.0/glib/gtrashstack.h /opt/pkg/include/glib-2.0/glib/gtree.h /opt/pkg/include/glib-2.0/glib/gtypes.h /opt/pkg/include/glib-2.0/glib/gunicode.h /opt/pkg/include/glib-2.0/glib/gurifuncs.h /opt/pkg/include/glib-2.0/glib/gutils.h /opt/pkg/include/glib-2.0/glib/guuid.h /opt/pkg/include/glib-2.0/glib/gvariant.h /opt/pkg/include/glib-2.0/glib/gvarianttype.h /opt/pkg/include/glib-2.0/glib/gversion.h /opt/pkg/include/glib-2.0/glib/gversionmacros.h /opt/pkg/include/glib-2.0/glib/gwin32.h ../gir/glib-2.0.c
In file included from /opt/netbsd_build/objects/devel/gobject-introspection/work/.buildlink/lib/glib-2.0/include/glibconfig.h:9:0,
                 from /opt/netbsd_build/objects/devel/gobject-introspection/work/.buildlink/include/glib-2.0/glib/gtypes.h:32,
                 from /opt/netbsd_build/objects/devel/gobject-introspection/work/.buildlink/include/glib-2.0/glib/galloca.h:32,
                 from /opt/netbsd_build/objects/devel/gobject-introspection/work/.buildlink/include/glib-2.0/glib.h:30,
                 from /opt/pkg/include/glib-2.0/gobject/glib-types.h:24,
                 from /opt/netbsd_build/objects/devel/gobject-introspection/work/gobject-introspection-1.64.0/output/g-ir-cpp-v7l2s1j4.c:4:
/opt/netbsd_build/objects/devel/gobject-introspection/work/.buildlink/include/glib-2.0/glib/gmacros.h:38:10: fatal error: stddef.h: No such file or directory
 #include <stddef.h>
          ^~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
  File "/opt/pkg/lib/python3.7/distutils/unixccompiler.py", line 107, in preprocess
    self.spawn(pp_args)
  File "/opt/pkg/lib/python3.7/distutils/ccompiler.py", line 910, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/opt/pkg/lib/python3.7/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/opt/pkg/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'cpp' failed with exit status 1

>How-To-Repeat:
Attempt to build this package on OpenSuse Leap 15.2 aarch64
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.