Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2021 17:19:07 +0100
From:      =?UTF-8?Q?Ferenc_G=C3=A1l?= <gferenc88@gmail.com>
To:        gecko@freebsd.org
Subject:   Re: mail/thunderbird compile error
Message-ID:  <CAFUqQPDDhd3yjXibjXB3526LUar3cXqZtWRNuD69sxNYKkvodA@mail.gmail.com>
In-Reply-To: <CAFUqQPC18UTSgAXgAh-FkDL77i_%2BKyPCXJEmkbRHr-kefPU85A@mail.gmail.com>
References:  <CAFUqQPC18UTSgAXgAh-FkDL77i_%2BKyPCXJEmkbRHr-kefPU85A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

i might found a dirty hack for this error:
The error happens because of the last two lines in the
security/nss/coreconf/werror.py file. It seems this file loaded as a module
therefore the ("main()") part is not executed:
if __name__ =3D=3D '__main__':
    main()

after removing or commenting out the IF statement the application can be
compiled.

Br,
Ferenc

On Mon, Feb 22, 2021 at 3:06 PM Ferenc G=C3=A1l <gferenc88@gmail.com> wrote=
:

> Hello,
>
> i cannot compile the newest version of the Thunderbird on my system
> (version 12.2), here is the error:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc
> to get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozb=
ase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name=3D'/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/mod=
ules/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc t=
o
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozb=
ase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name=3D'/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/pro=
tocols/irc/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc t=
o
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozb=
ase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name=3D'/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/pro=
tocols/skype/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc t=
o
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozb=
ase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name=3D'/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/pro=
tocols/xmpp/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc t=
o
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozb=
ase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name=3D'/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/mail/ext=
ensions/openpgp/test/unit/rnp/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc t=
o
> get the object allocation
> tracebackconcurrent.futures.process._RemoteTraceback: """Traceback (most
> recent call last):  File
> "/usr/local/lib/python3.7/concurrent/futures/process.py", line 239, in
> _process_worker    r =3D call_item.fn(*call_item.args, **call_item.kwargs=
)
> File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozb=
uild/frontend/gyp_reader.py",
> line 364, in load_gyp    _, flat_list, targets, data =3D gyp.Load(*args)
> File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/__init__.py",
> line 137, in Load    params['parallel'], params['root_targets'])  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 2789, in Load    variables, includes, depth, check, True)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 427, in LoadTargetBuildFile    build_file_data, PHASE_EARLY,
> variables, build_file_path)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1296, in ProcessVariablesAndConditionsInDict    build_file, key)  Fi=
le
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1296, in ProcessVariablesAndConditionsInDict    build_file, key)  Fi=
le
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1296, in ProcessVariablesAndConditionsInDict    build_file, key)  Fi=
le
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1277, in ProcessVariablesAndConditionsInDict
> ProcessConditionsInDict(the_dict, phase, variables, build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1156, in ProcessConditionsInDict    variables, build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1303, in ProcessVariablesAndConditionsInDict    build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 1322, in ProcessVariablesAndConditionsInList    expanded =3D
> ExpandVariables(item, phase, variables, build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/g=
yp/pylib/gyp/input.py",
> line 929, in ExpandVariables    (contents, p.returncode,
> build_file))gyp.common.GypError: Call to
> '/usr/ports/mail/thunderbird/work/.build/_virtualenvs/init_py3/bin/python
> ./coreconf/werror.py' returned exit status 0 while in
> /usr/ports/mail/thunderbird/work/thunderbird-78.8.0/security/nss/nss.gyp.
> while trying to load
> /usr/ports/mail/thunderbird/work/thunderbird-78.8.0/security/nss/nss.gyp"=
""The
> above exception was the direct cause of the following exception:Traceback
> (most recent call last):  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/configure.py", line
> 181, in <module>    sys.exit(main(sys.argv))  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/configure.py", line
> 57, in main    return config_status(config)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/configure.py", line
> 176, in config_status    return config_status(args=3D[],
> **normalize(sanitized_config))  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozb=
uild/config_status.py",
> line 145, in config_status    definitions =3D list(definitions)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozb=
uild/frontend/emitter.py",
> line 169, in emit    for out in output:  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozb=
uild/frontend/reader.py",
> line 903, in read_topsrcdir    for gyp_context in g.results:  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozb=
uild/frontend/gyp_reader.py",
> line 433, in results    flat_list, targets, data =3D
> self._gyp_loader_future.result()  File
> "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 428, in
> result    return self.__get_result()  File
> "/usr/local/lib/python3.7/concurrent/futures/_base.py", line 384, in
> __get_result    raise self._exceptiongyp.common.GypError: Call to
> '/usr/ports/mail/thunderbird/work/.build/_virtualenvs/init_py3/bin/python
> ./coreconf/werror.py' returned exit status 0 while in
> /usr/ports/mail/thunderbird/work/thunderbird-78.8.0/security/nss/nss.gyp.
> while trying to load
> /usr/ports/mail/thunderbird/work/thunderbird-78.8.0/security/nss/nss.gyp=
=3D=3D=3D>
>  Script "configure" failed unexpectedly.Please report the problem to
> gecko@FreeBSD.org [maintainer] and attach
> the"/usr/ports/mail/thunderbird/work/.build/config.log" including the
> output ofthe failure of your make command. Also, it might be a good idea =
to
> providean overview of all packages installed on your system (e.g.
> a/usr/local/sbin/pkg-static info -g -Ea).*** Error code 1Stop.make[1]:
> stopped in /usr/ports/mail/thunderbird*** Error code 1Stop.make: stopped =
in
> /usr/ports/mail/thunderbird*
>
>
> I have attached the config.log and the installed packages to this mail.
>
>
> Thanks.
>
>
> BR,
> Ferenc
>



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