Hi,

I set up the following .mozconfig
ac_add_options --enable-application=mail
ac_add_options --enable-calendar
ac_add_options --enable-debug

Following the steps described at
https://developer.mozilla.org/en-US/docs/Simple_Thunderbird_build#Building_Thunderbird

I get this error:
6:30.73 updating cache 
h:/mozilla-source/comm-central/obj-i686-pc-mingw32/js/src/config.cache
 6:30.78 creating ./config.status
 6:31.64 Reticulating splines...
 6:31.64 Traceback (most recent call last):
 6:31.64   File "./config.status", line 955, in <module>
 6:31.64     config_status(**args)
 6:31.64   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\config_status.py",
 line 148, in config_
status
 6:31.64     summary = the_backend.consume(definitions)
 6:31.64   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\backend\base.py",
 line 181, in consume
 6:31.64     for obj in objs:
 6:31.64   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\frontend\emitter.py",
 line 130, in emit

 6:31.64     for out in output:
 6:31.64   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\frontend\reader.py",
 line 921, in read_
mozbuild
 6:31.64     sys.exc_info()[2], sandbox_load_error=sle)
 6:31.64 mozbuild.frontend.reader.BuildReaderError:
 6:31.64 ==============================
 6:31.64 ERROR PROCESSING MOZBUILD FILE
 6:31.64 ==============================
 6:31.64
 6:31.64 The error occurred while processing the following file:
 6:31.64
 6:31.64     h:/mozilla-source/comm-central/mozilla/moz.build
 6:31.65
 6:31.65 The underlying problem is an illegal file access. This is likely due 
to trying to access a file outside of the
top source directory.
 6:31.65
 6:31.65 The path whose access was denied is:
 6:31.65
 6:31.65     h:/mozilla-source/comm-central/mail/app.mozbuild
 6:31.65
 6:31.65 Modify the script to not access this file and try again.
 6:31.65
 6:31.66 *** Fix above errors and then restart with\
 6:31.66                "/local/bin/make -f client.mk build"
 6:31.66 make[1]: *** [configure] Error 1
 6:31.66 make: *** 
[/h/mozilla-source/comm-central/obj-i686-pc-mingw32/Makefile] Error 2
Single process terminated successfully
 6:31.67 0 compiler warnings present.

Actually, I didn't try to access any file outside the source directory.

==============

In a second attempt, I added this to the .mozconfig:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-tb-debug

This time a got a different error:

 5:10.95 updating cache 
h:/mozilla-source/comm-central/obj-tb-debug/js/src/config.cache
 5:11.00 creating ./config.status
 5:11.77 Traceback (most recent call last):
 5:11.77   File "./config.status", line 955, in <module>
 5:11.77     config_status(**args)
 5:11.77   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\config_status.py",
 line 134, in config_
status
 5:11.77     emitter = TreeMetadataEmitter(env)
 5:11.78   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\frontend\emitter.py",
 line 86, in __ini
t__
 5:11.78     mozinfo.find_and_update_from_json(config.topobjdir)
 5:11.78   File 
"h:\mozilla-source\comm-central\mozilla\testing\mozbase\mozinfo\mozinfo\mozinfo.py",
 line 164, in find_a
nd_update_from_json
 5:11.78     build = MozbuildObject.from_environment()
 5:11.78   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\base.py", line 
181, in from_environment

 5:11.78     raise ObjdirMismatchException(topobjdir, _config_topobjdir)
 5:11.78 mozbuild.base.ObjdirMismatchException: Objdir mismatch: 
h:\mozilla-source\comm-central\obj-tb-debug != h:\mozil
la-source\comm-central\mozilla\obj-tb-debug
 5:11.79 *** Fix above errors and then restart with\
 5:11.79                "/local/bin/make -f client.mk build"
 5:11.79 make[1]: *** [configure] Error 1
 5:11.80 make: *** [/h/mozilla-source/comm-central/obj-tb-debug/Makefile] Error 
2

Somehow it got itself confused:
Objdir mismatch:
h:\mozilla-source\comm-central\obj-tb-debug !=
h:\mozilla-source\comm-central\mozilla\obj-tb-debug

Indeed, they are different.

============

When I tried with a fixed path
mk_add_options /h/mozilla-source/comm-central/obj-tb-debug I got a similar 
error:
 4:35.87 updating cache 
h:/mozilla-source/comm-central/obj-tb-debug/js/src/config.cache
 4:35.92 creating ./config.status
 4:37.06 Traceback (most recent call last):
 4:37.06   File "./config.status", line 955, in <module>
 4:37.06     config_status(**args)
 4:37.07   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\config_status.py",
 line 134, in config_
status
 4:37.07     emitter = TreeMetadataEmitter(env)
 4:37.07   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\frontend\emitter.py",
 line 86, in __ini
t__
 4:37.07     mozinfo.find_and_update_from_json(config.topobjdir)
 4:37.07   File 
"h:\mozilla-source\comm-central\mozilla\testing\mozbase\mozinfo\mozinfo\mozinfo.py",
 line 164, in find_a
nd_update_from_json
 4:37.07     build = MozbuildObject.from_environment()
 4:37.07   File 
"h:\mozilla-source\comm-central\mozilla\python\mozbuild\mozbuild\base.py", line 
181, in from_environment

 4:37.07     raise ObjdirMismatchException(topobjdir, _config_topobjdir)
 4:37.09 mozbuild.base.ObjdirMismatchException: Objdir mismatch: 
h:\mozilla-source\comm-central\obj-tb-debug != \h\mozil
la-source\comm-central\obj-tb-debug
 4:37.09 *** Fix above errors and then restart with\
 4:37.09                "/local/bin/make -f client.mk build"
 4:37.09 make[1]: *** [configure] Error 1
 4:37.09 make: *** [/h/mozilla-source/comm-central/obj-tb-debug/Makefile] Error 
2
 4:37.12 0 compiler warnings present.

They as subtly different:
Objdir mismatch:
h:\mozilla-source\comm-central\obj-tb-debug !=
\h\mozilla-source\comm-central\obj-tb-debug

======

Closing remark:
I managed to build Firefox following the instruction, so no problem there. That 
tells me, that my environment should be OK.
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to