Closed Bug 1603982 Opened 5 years ago Closed 5 years ago

Build failure: intl/chardet missing INCLUDED in mailnews/base/util/moz.build

Categories

(Thunderbird :: Build Config, defect)

All
Unspecified
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1602816

People

(Reporter: ishikawa, Unassigned)

References

Details

Local build failure.

After refreshing the source files using
topdir:
hg pull -u
cd comm
hg pull -u

I get the following error: it seems a file is missing (or renamed?)

js/src> Creating config.status
Creating config.status
Reticulating splines...
Traceback (most recent call last):
  File "/NEW-SSD/NREF-COMM-CENTRAL/mozilla/configure.py", line 170, in <module>
    sys.exit(main(sys.argv))
  File "/NEW-SSD/NREF-COMM-CENTRAL/mozilla/configure.py", line 51, in main
    return config_status(config)
  File "/NEW-SSD/NREF-COMM-CENTRAL/mozilla/configure.py", line 165, in config_status
    return config_status(args=[], **normalize(sanitized_config))
  File "/NEW-SSD/NREF-COMM-CENTRAL/mozilla/python/mozbuild/mozbuild/config_status.py", line 142, in config_status
    definitions = list(definitions)
  File "/NEW-SSD/NREF-COMM-CENTRAL/mozilla/python/mozbuild/mozbuild/frontend/emitter.py", line 187, in emit
    objs = list(emitfn(out))
  File "/NEW-SSD/NREF-COMM-CENTRAL/mozilla/python/mozbuild/mozbuild/frontend/emitter.py", line 1240, in emit_from_context
    (local_include, full_path), context)
mozbuild.frontend.reader.SandboxValidationError:
==============================
FATAL ERROR PROCESSING MOZBUILD FILE
==============================
The error occurred while processing the following file or one of the files it includes:
    /NEW-SSD/NREF-COMM-CENTRAL/mozilla/comm/mailnews/base/util/moz.build
The error occurred when validating the result of the execution. The reported error is:
    Path specified in LOCAL_INCLUDES does not exist: /./intl/chardet (resolved to /NEW-SSD/NREF-COMM-CENTRAL/mozilla/intl/chardet)
*** Fix above errors and then restart with\
               "./mach build"
make: *** [client.mk:115: configure] Error 1

real	0m14.212s
user	0m10.346s
sys	0m4.891s

The problem is the line:
Path specified in LOCAL_INCLUDES does not exist: /./intl/chardet (resolved to /NEW-SSD/NREF-COMM-CENTRAL/mozilla/intl/chardet)

Indeed, the path does not exist.

moz.util includes these lines.

LOCAL_INCLUDES += [
  '/%s/intl/chardet' % CONFIG['mozreltopsrcdir'],
  '/%s/netwerk/base' % CONFIG['mozreltopsrcdir']
]

Search via searchfox.org two instances of |chardet| strings.
https://searchfox.org/comm-central/search?q=intl%2Fchardet&path=

Textual Occurrences
	mailnews/base/util/moz.build
74	'/%s/intl/chardet' % CONFIG['mozreltopsrcdir'],
	mailnews/mime/src/moz.build
74	'/%s/intl/chardet' % CONFIG['mozreltopsrcdir'],

I think this is (partially?) addressed by bug 1602816 :
https://bugzilla.mozilla.org/show_bug.cgi?id=1602816
Adapt Thunderbird to mozilla::EncodingDetector (port bug 1551276)

See Also: → 1551276
See Also: → 1602816
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.