Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

build fails because it cannot find autoconf.mk (New)

15 views
Skip to first unread message

jacqueli...@gmail.com

unread,
Feb 21, 2020, 5:23:36 PM2/21/20
to
Hi, I'm a newbie trying to get mozilla to build on my mac

After cloning the repo, whenever I do ./mach configure or./mach build I get the following error

I have followed these instructions ( https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Mac_OS_X_Prerequisites#Troubleshooting) to a tea but I've spent many many hours and still cannot for the life of me figure out what's wrong. My mozconfig file is exactly as they suggested, just without clang.


0:50.32 IOError: [Errno 20] Not a directory: u'/Users/jacqueline/config/autoconf.mk'
0:50.72 *** Fix above errors and then restart with "./mach build"
0:50.72 make[1]: *** [configure] Error 1

this error comes right after:

0:34.51 js/src> checking for valloc in malloc.h... no
0:34.57 js/src> checking for valloc in unistd.h... yes
0:34.64 js/src> checking for _aligned_malloc in malloc.h... no
0:34.71 js/src> updating cache /Users/jacqueline/./config.cache
0:34.73 js/src> creating ./config.data
0:34.79 js/src> Creating config.status
0:34.97 Creating config.status
0:35.91 Reticulating splines...
0:38.98 0:03.16 File already read. Skipping: /Users/jacqueline/#mozilla/mozilla-central/gfx/angle/targets/angle_common/moz.build

where " /Users/jacqueline/#mozilla " is the path to my repo

Did anyone happen to see something similar? Thank you

Botond Ballo

unread,
Feb 21, 2020, 5:38:35 PM2/21/20
to jacqueli...@gmail.com, Mozilla Product Builds
Hi Jacqueline,

On Fri, Feb 21, 2020 at 5:25 PM <jacqueli...@gmail.com> wrote:
> where " /Users/jacqueline/#mozilla " is the path to my repo

Is there an actual pound character ('#') in that directory name? If
so, that is likely to be the problem, since '#' is a meta character in
many environments (for example, it starts a comment in shell scripts
and python). If you try using a directory name that doesn't contain a
'#' character, things are likely to work better.

Cheers,
Botond

jacqueli...@gmail.com

unread,
Feb 21, 2020, 10:59:11 PM2/21/20
to
On Friday, February 21, 2020 at 5:38:35 PM UTC-5, Botond Ballo wrote:
> Hi Jacqueline,
>
> On Fri, Feb 21, 2020 at 5:25 PM <jacqueline> wrote:
> > where " /Users/jacqueline/#mozilla " is the path to my repo
>
> Is there an actual pound character ('#') in that directory name? If
> so, that is likely to be the problem, since '#' is a meta character in
> many environments (for example, it starts a comment in shell scripts
> and python). If you try using a directory name that doesn't contain a
> '#' character, things are likely to work better.
>
> Cheers,
> Botond

Yeah thank you very much! that's probably why. !!!

When I try to build now, i get :

$ ./mach build
0:05.11 Clobber not needed.
0:05.11 Adding make options from /Users/jacqueline/mozilla/mozilla-central/mozconfig
AUTOCONF=/usr/local/Cellar/auto...@2.13/2.13/bin/autoconf213
MOZ_OBJDIR=/Users/jacqueline/mozilla/mozilla-central/obj-ff-dbg
OBJDIR=/Users/jacqueline/mozilla/mozilla-central/obj-ff-dbg
FOUND_MOZCONFIG=/Users/jacqueline/mozilla/mozilla-central/mozconfig
export FOUND_MOZCONFIG
0:05.12 /usr/bin/make -f client.mk -s
0:05.30 make[3]: echo: No such file or directory
0:05.30 make[3]: rm: No such file or directory
0:05.30 make[3]: *** [pre-export] Error 1
0:05.30 make[3]: *** Waiting for unfinished jobs....
0:05.30 make[3]: *** [.cargo/config] Error 1
0:05.30 make[2]: *** [default] Error 2
0:05.30 make[1]: *** [build] Error 2
0:05.35 0 compiler warnings present.
make: *** [build] Error 2


So I tried to run ./mach bootstrap as maybe that might help me diagnose the problem and when I do, i get another error:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/jacqueline/#mozilla/mozilla-central/build/moz.configure/init.configure'

So perhaps theres files that are still pointing back to the "#mozilla" directory instead of my new "mozilla" directory ? Could that be why I cannot build too?
Do you know if there are any global vars that i have to reset/set?

I've tried setting MOZBUILD_STATE_PATH , MOZCONFIG and my .hgrc file to point to my new "mozilla" directory but no luck :(

Thank you very much!




Botond Ballo

unread,
Feb 22, 2020, 12:13:14 AM2/22/20
to jacqueli...@gmail.com, Mozilla Product Builds
On Fri, Feb 21, 2020 at 11:00 PM <jacqueli...@gmail.com> wrote:
> So perhaps theres files that are still pointing back to the "#mozilla" directory instead of my new "mozilla" directory ? Could that be why I cannot build too?

There might be files in /Users/jacqueline/.mozbuild which reference
your old source directory. Deleting the /Users/jacqueline/.mozbuild
directory and then bootstrapping again might help in that case.

Cheers,
Botond
0 new messages