Bug 239485 - lang/spidermonkey52 fails to build with gcc9
Summary: lang/spidermonkey52 fails to build with gcc9
Status: Closed DUPLICATE of bug 239507
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Koop Mast
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-28 00:37 UTC by Justin Hibbits
Modified: 2019-07-29 07:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Hibbits freebsd_committer freebsd_triage 2019-07-28 00:37:38 UTC
Just updated my ports tree to get gcc9, and spidermonkey52 fails with the following error:

In file included from /wrkdirs/usr/ports/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/jsapi-tests/testPersistentRooted.cpp:6,
                 from /wrkdirs/usr/ports/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/js/src/jsapi-tests/Unified_cpp_js_src_jsapi-tests4.cpp:2:
/wrkdirs/usr/ports/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/jsapi-tests/testPrintf.cpp: In member function 'virtual bool cls_testPrintf::run(JS::HandleObject)':
/wrkdirs/usr/ports/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/jsapi-tests/testPrintf.cpp:58:20: error: '%s' directive argument is null [-Werror=format-overflow=]
   58 |     CHECK(print_one("(null)", "%s", zero()));
/wrkdirs/usr/ports/lang/spidermonkey52/work/firefox-52.9.0esr/js/src/jsapi-tests/tests.h:205:15: note: in definition of macro 'CHECK'
  205 |         if (!(expr)) \
      |               ^~~~
cc1plus: some warnings being treated as errors
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2019-07-29 07:54:25 UTC

*** This bug has been marked as a duplicate of bug 239507 ***