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__ == '__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ál <gferen...@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/mozbase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name='/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/modules/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc to
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozbase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name='/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/protocols/irc/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc to
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozbase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name='/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/protocols/skype/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc to
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozbase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name='/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/chat/protocols/xmpp/test/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc to
> get the object allocation
> traceback/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/testing/mozbase/manifestparser/manifestparser/manifestparser.py:270:
> ResourceWarning: unclosed file <_io.BufferedReader
> name='/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/comm/mail/extensions/openpgp/test/unit/rnp/xpcshell.ini'>
> self._read(here, filename, defaults)ResourceWarning: Enable tracemalloc to
> 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 = call_item.fn(*call_item.args, **call_item.kwargs)
> File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozbuild/frontend/gyp_reader.py",
> line 364, in load_gyp    _, flat_list, targets, data = gyp.Load(*args)
> File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/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/gyp/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/gyp/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/gyp/pylib/gyp/input.py",
> line 1296, in ProcessVariablesAndConditionsInDict    build_file, key)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/pylib/gyp/input.py",
> line 1296, in ProcessVariablesAndConditionsInDict    build_file, key)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/pylib/gyp/input.py",
> line 1296, in ProcessVariablesAndConditionsInDict    build_file, key)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/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/gyp/pylib/gyp/input.py",
> line 1156, in ProcessConditionsInDict    variables, build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/pylib/gyp/input.py",
> line 1303, in ProcessVariablesAndConditionsInDict    build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/pylib/gyp/input.py",
> line 1322, in ProcessVariablesAndConditionsInList    expanded =
> ExpandVariables(item, phase, variables, build_file)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/third_party/python/gyp/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=[],
> **normalize(sanitized_config))  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozbuild/config_status.py",
> line 145, in config_status    definitions = list(definitions)  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozbuild/frontend/emitter.py",
> line 169, in emit    for out in output:  File
> "/usr/ports/mail/thunderbird/work/thunderbird-78.8.0/python/mozbuild/mozbuild/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/mozbuild/frontend/gyp_reader.py",
> line 433, in results    flat_list, targets, data =
> 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===>
>  Script "configure" failed unexpectedly.Please report the problem to
> ge...@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
>
_______________________________________________
freebsd-gecko@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "freebsd-gecko-unsubscr...@freebsd.org"

Reply via email to