Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2020 19:28:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 244408] lang/gjs: Fails to build when clang has assertions enabled
Message-ID:  <bug-244408-6497-Fb4AQo0Ft1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244408-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244408-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gnome mailing =
list
<gnome@FreeBSD.org> for maintainer-feedback:
Bug 244408: lang/gjs: Fails to build when clang has assertions enabled
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244408



--- Description ---
As reported in bug 244251, with clang 10.0.0 the lang/gjs port fails to bui=
ld
with a clang assertion, if such assertions are enabled (they are only in
FreeBSD head, not in stable or release branches):

Assertion failed: (!isValueDependent() && "Cannot get the length of a
value-dependent pack size expression"), function getPackLength, file
/poudriere/jails/headamd64244251/usr/src/contrib/llvm-project/clang/include=
/cla
ng/AST/ExprCXX.h,
line 4170.
Stack dump:
0.	Program arguments: c++ -DHAVE_CONFIG_H -I. -DG_LOG_DOMAIN=3D"Gjs"
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/gobject-introspection-1.0
-I/usr/local/lib/libffi-3.2.1/include -pthread -include
/usr/local/include/mozjs-52/js/RequiredDefines.h -I/usr/local/include/mozjs=
-52
-I/usr/local/include/nspr -DGJS_TOP_SRCDIR=3D"." -DGJS_TOP_BUILDDIR=3D"."
-DGJS_JS_DIR=3D"/usr/local/share/gjs-1.0" -DPKGLIBDIR=3D"/usr/local/lib/gjs=
" -I./gi
-DGJS_COMPILATION -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1=
.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -I/usr/local/include/fribidi -I/usr/local/include/cairo
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
-I/usr/local/include/libdrm -I/usr/local/include/libpng16
-I/usr/local/include/harfbuzz -I/usr/local/include/gdk-pixbuf-2.0
-I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0
-I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0
-I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include -D_THREAD_S=
AFE
-pthread -I/usr/local/include -isystem /usr/local/include -fno-strict-alias=
ing
-Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations
-Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers
-Wformat=3D2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-comp=
are
-Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute
-Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Warray-bounds
-Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default
-Wno-error=3Dunused-parameter -Wno-error=3Dmissing-field-initializers
-Wno-error=3Doverloaded-virtual -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -=
DPIC
-MT gi/libgjs_la-object.lo -MD -MP -MF gi/.deps/libgjs_la-object.Tpo -c
gi/object.cpp -fPIC -DPIC -o gi/.libs/libgjs_la-object.o=20
1.	./gjs/jsapi-util-args.h:410:5
<Spelling=3D/usr/local/include/glib-2.0/glib/gmacros.h:385:70>: current par=
ser
token ')'
2.	./gjs/jsapi-util-args.h:383:1: parsing function body
'gjs_parse_call_args'
3.	./gjs/jsapi-util-args.h:383:1: in compound statement ('{}')
4.	./gjs/jsapi-util-args.h:410:5
<Spelling=3D/usr/local/include/glib-2.0/glib/gtestutils.h:117:54>: in compo=
und
statement ('{}')

This has independently been reported upstream by J=C3=B6rg Sonnenberger:
https://bugs.llvm.org/show_bug.cgi?id=3D44980

Adding this bug to track whenever we import a fix from upstream.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244408-6497-Fb4AQo0Ft1>