FTBFS: error: cannot jump from this goto statement to its label
Building epiphany 3.32.0 from source (it looks like the code is also present in git master) with the following compiler:
OpenBSD clang version 7.0.1 (tags/RELEASE_701/final) (based on LLVM 7.0.1)
Target: amd64-unknown-openbsd6.5
Thread model: posix
InstalledDir: /usr/bin
results in the following build error:
[66/242] cc -Ilib/76b5a35@@ephymisc@sha -Ilib -I../epiphany-3.32.0/lib -Ilib/.. -I../epiphany-3.32.0/lib/.. -I../epiphany-3.32.0/lib/contrib -I../epiphany-3.32.0/lib/contrib/gvdb -I../epiphany-3.32.0/lib/history -I../epiphany-3.32.0/lib/safe-browsing -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/gsettings-desktop-schemas -I/usr/local/include/gtk-3.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 -I/usr/X11R6/include/libdrm -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/fribidi -I/usr/local/include/atk-1.0 -I/usr/local/include/json-glib-1.0 -I/usr/local/include/libdazzle-1.0 -I/usr/local/include/libsecret-1 -I/usr/local/include/libsoup-2.4 -I/usr/local/include/libxml2 -I/usr/local/include/webkitgtk-4.0 -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -O2 -fPIC -pthread -MD -MQ 'lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o' -MF 'lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o.d' -o 'lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o' -c ../epiphany-3.32.0/lib/ephy-web-app-utils.c
FAILED: lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o
cc -Ilib/76b5a35@@ephymisc@sha -Ilib -I../epiphany-3.32.0/lib -Ilib/.. -I../epiphany-3.32.0/lib/.. -I../epiphany-3.32.0/lib/contrib -I../epiphany-3.32.0/lib/contrib/gvdb -I../epiphany-3.32.0/lib/history -I../epiphany-3.32.0/lib/safe-browsing -I/usr/local/include/cairo -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/gsettings-desktop-schemas -I/usr/local/include/gtk-3.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 -I/usr/X11R6/include/libdrm -I/usr/local/include/pango-1.0 -I/usr/local/include/harfbuzz -I/usr/local/include/fribidi -I/usr/local/include/atk-1.0 -I/usr/local/include/json-glib-1.0 -I/usr/local/include/libdazzle-1.0 -I/usr/local/include/libsecret-1 -I/usr/local/include/libsoup-2.4 -I/usr/local/include/libxml2 -I/usr/local/include/webkitgtk-4.0 -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -std=gnu11 -O2 -fPIC -pthread -MD -MQ 'lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o' -MF 'lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o.d' -o 'lib/76b5a35@@ephymisc@sha/ephy-web-app-utils.c.o' -c ../epiphany-3.32.0/lib/ephy-web-app-utils.c
../epiphany-3.32.0/lib/ephy-web-app-utils.c:359:5: error: cannot jump from this goto statement to its label
goto out;
^
../epiphany-3.32.0/lib/ephy-web-app-utils.c:363:20: note: jump bypasses initialization of variable with __attribute__((cleanup))
g_autofree char *app_file = g_build_filename (profile_dir, ".app", NULL);
^
../epiphany-3.32.0/lib/ephy-web-app-utils.c:353:5: error: cannot jump from this goto statement to its label
goto out;
^
../epiphany-3.32.0/lib/ephy-web-app-utils.c:363:20: note: jump bypasses initialization of variable with __attribute__((cleanup))
g_autofree char *app_file = g_build_filename (profile_dir, ".app", NULL);
^
2 errors generated.
ninja: build stopped: subcommand failed.
The attached patch-lib_ephy-web-app-utils_c appears to work; g_build_filename()
only builds the string so it's safe to use profile_dir
already, no?