Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2019 05:19:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   [Bug 238639] devel/gn: maybe unusable by www/firefox
Message-ID:  <bug-238639-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238639

            Bug ID: 238639
           Summary: devel/gn: maybe unusable by www/firefox
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-qa
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: gecko@FreeBSD.org, o.hushchenkov@gmail.com
                CC: gecko@FreeBSD.org, o.hushchenkov@gmail.com
             Flags: maintainer-feedback?(o.hushchenkov@gmail.com)

www/firefox may start requiring devel/gn or devel/chromium-gn in future. For
now upstream bundles preprocessed GN->JSON files. Unfortunately, it doesn't
work with devel/gn compared to devel/chromium-gn. Can you investigate?

https://bugzilla.mozilla.org/show_bug.cgi?id=3D1534615
https://firefox-source-docs.mozilla.org/build/buildsystem/gn.html

Environment:
$ pkg install python27
$ hash git 2>/dev/null || pkg install mercurial
$ hg clone https://hg.mozilla.org/mozilla-unified firefox ||
  git clone https://github.com/mozilla/gecko-dev firefox
$ cd firefox
$ hg update central || git checkout origin/master
$ echo "export CC=3Dclang80 CXX=3Dclang++80 # whichever mesa installs" >>.m=
ozconfig
$ echo "ac_add_options --disable-debug-symbols" >>.mozconfig
$ ./mach bootstrap # select Firefox for Desktop

Steps to reproduce:
$ pkg install gn
$ ./mach configure
$ ./mach build-backend -b GnConfigGen
 0:01.09 _virtualenvs/init/bin/python config.status --backend GnConfigGen
Reticulating splines...
 0:00.68 File already read. Skipping: modules/brotli/moz.build
Running "/usr/local/bin/gn gen media/webrtc/trunk/webrtc/gn-output
--args=3Dis_debug=3Dfalse host_cpu=3D"x64" target_os=3D"freebsd" target_cpu=
=3D"x64"
--ide=3Djson"
ERROR at //rtc_base/BUILD.gn:850:5: Only source, header, and object files
belong in the sources of a source_set. //rtc_base/sigslottester.h.pump is n=
ot
one of the valid types.
    "sigslottester.h.pump",
    ^---------------------
See //rtc_base/BUILD.gn:813:1: whence it was called.
rtc_source_set("rtc_base_tests_utils") {
^---------------------------------------
See //BUILD.gn:288:7: which caused the file to be included.
      "rtc_base",
      ^---------
Traceback (most recent call last):
  File "config.status", line 1255, in <module>
    config_status(**args)
  File "python/mozbuild/mozbuild/config_status.py", line 145, in config_sta=
tus
    the_backend.consume(definitions)
  File "python/mozbuild/mozbuild/backend/base.py", line 128, in consume
    if (not self.consume_object(obj) and
  File "python/mozbuild/mozbuild/gn_processor.py", line 550, in consume_obj=
ect
    obj.gn_target)
  File "python/mozbuild/mozbuild/gn_processor.py", line 521, in
generate_gn_config
    subprocess.check_call(gen_args, cwd=3Dsrcdir, stderr=3Dsubprocess.STDOU=
T)
  File "/usr/local/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/gn', 'gen',
u'media/webrtc/trunk/webrtc/gn-output', u'--args=3Dis_debug=3Dfalse host_cp=
u=3D"x64"
target_os=3D"freebsd" target_cpu=3D"x64"', '--ide=3Djson']' returned non-ze=
ro exit
status 1

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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