Bug 254326 - multimedia/gstreamer1: build error: make[6]: *** [Makefile:842: grammar.tab.h] Error 139
Summary: multimedia/gstreamer1: build error: make[6]: *** [Makefile:842: grammar.tab.h...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-16 04:32 UTC by O. Hartmann
Modified: 2022-10-15 11:00 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (multimedia)


Attachments
Make log (511.91 KB, text/plain)
2021-04-14 05:13 UTC, David Armstrong
no flags Details
patch with updated define for api.pure (572 bytes, patch)
2021-05-23 14:36 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2021-03-16 04:32:20 UTC
On recent CURRENT (FreeBSD 14.0-CURRENT #57 main-n245471-b55c0d5f56bd: Mon Mar 15 16:35:53 CET 2021 amd64) building of the port multimedia/gstreamer1 fails with the error shown below. The port has  already been rebuilt recursively to catch all changes due to ncurses changes in 14-CURRENT, but without success. This failure also affects the build of editors/libreoffice which is unwilling to build.

[...]
cat grammar.tab_tmp.c >> grammar.tab_tmp2.c && \
rm grammar.tab_tmp.c && \
mv grammar.tab_tmp2.c grammar.tab.c
./grammar.y:799.1-12: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ [
                                                                                             gmake[6]: *** [Makefile:842: grammar.tab.h] Error 139
gmake[6]: Leaving directory '/usr/ports/multimedia/gstreamer1/work/gstreamer-1.16.2/gst/parse'
gmake[5]: *** [Makefile:1813: all-recursive] Error 1
gmake[5]: Leaving directory '/usr/ports/multimedia/gstreamer1/work/gstreamer-1.16.2/gst'
gmake[4]: *** [Makefile:1011: all] Error 2
gmake[4]: Leaving directory '/usr/ports/multimedia/gstreamer1/work/gstreamer-1.16.2/gst'
gmake[3]: *** [Makefile:742: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/multimedia/gstreamer1/work/gstreamer-1.16.2'
gmake[2]: *** [Makefile:648: all] Error 2
gmake[2]: Leaving directory '/usr/ports/multimedia/gstreamer1/work/gstreamer-1.16.2'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/multimedia/gstreamer1
*** Error code 1
Comment 1 Dan Kotowski 2021-03-24 09:56:19 UTC
Also broken on 13.0-STABLE
Comment 2 David Armstrong 2021-04-13 10:16:31 UTC
Also broken on 13.0-RC5.
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2021-04-13 10:34:26 UTC
Builds fine on the cluster:
http://beefy16.nyi.freebsd.org/data/130releng-amd64-default/4c2cc95952a6/logs/gstreamer1-1.16.2.log
http://beefy18.nyi.freebsd.org/data/main-amd64-default/p46fc7df8540c_s1f64f32a4c/logs/gstreamer1-1.16.2.log

There's very little to go on. Why don't you guys post the full build log?
Comment 4 David Armstrong 2021-04-13 10:55:07 UTC
(In reply to Tobias Kortkamp from comment #3)

A fair point.  I'm upgrading to 13.0-RELEASE.  I'll try again and share the log, if it still fails.
Comment 5 David Armstrong 2021-04-14 05:13:19 UTC
Created attachment 224095 [details]
Make log

Please find the attached make log.

Interestingly, the very act of piping the output into the log file, circumvented the issue.  The error still appears in the log file on line 475, but the build completed.

I'm using csh shell.  Running "make" results in a failed build.  Running "make >& log.txt" results in a successful build.
Comment 6 David Armstrong 2021-04-14 08:06:58 UTC
(In reply to David Armstrong from comment #5)

The same workaround of directing output to a log file, worked for bug #254757
Comment 7 Piotr Kubaj freebsd_committer freebsd_triage 2021-04-25 19:47:55 UTC
I just had the same error. Replacing "%pure-parser" with "%define api.pure" in grammar.y:799 fixed build for me.
Comment 8 Rainer Hurling freebsd_committer freebsd_triage 2021-05-23 14:36:34 UTC
Created attachment 225196 [details]
patch with updated define for api.pure

On my side the described error occurs on Poudriere and in a newly created VBox, both with 14.0-CURRENT i386. With amd64 all seems fine.

The attached patch contains the change from comment #7 (thanks to Piotr) and is tested on Poudriere and with 'portlint -AC'.