First timer: cannot build Firefox on Mac OS X

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

First timer: cannot build Firefox on Mac OS X

Rudi Sherry
I'm trying to build Firefox on Mac OS X (Tiger 10.4.6).  I'm behind a
firewall that won't allow cvs to go through so I got the release builds
from the ftp server. I have

/Volumes/Scratch2/mozilla/build/  which includes client.mak, client.mk,
browser/ etc.

I have my profile (bash) set up with:

MOZCONFIG="/Volumes/Scratch2/mozilla/local/.mozconfig"
export MOZCONFIG

I've set up my .mozconfig (at the above file) with

export CC=gcc-3.3
export CXX=g++-3.3

. $topsrcdir/browser/config/mozconfig

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../moz-objdir
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
ac_add_options --disable-optimize
ac_add_options --disable-tests


...but when I try to make using the instructions on the mozilla/build
website:

make -f client.mk build

I get the following:

c-71-227:/Volumes/Scratch2/mozilla/build rsherry$ make -f client.mk
build
/bin/sh: line 1: mozilla/.mozconfig.out: No such file or directory
client.mk:339: /Volumes/Scratch2/mozilla/build/.mozconfig.mk: No such
file or directory
make: *** No rule to make target
`/Volumes/Scratch2/mozilla/build/.mozconfig.mk'.  Stop.

If I do this:

cd /Volumes/Scratch2/mozilla/build
make -f build/client.mk build

...then it tries to use cvs and hangs -- and all the instructions on
the mozilla site seem to indicate that the parameter to make should be
'client.mk' not 'build/client.mk'.

I'm sure it's something simple, but I don't know what; I'm new to make
and the unix development environment.

Thanks,
Rudi

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: First timer: cannot build Firefox on Mac OS X

Rudi Sherry

Rudi Sherry wrote:

> I'm trying to build Firefox on Mac OS X (Tiger 10.4.6).  I'm behind a
> firewall that won't allow cvs to go through so I got the release builds
> from the ftp server. I have
>
> /Volumes/Scratch2/mozilla/build/  which includes client.mak, client.mk,
> browser/ etc.
>
> I have my profile (bash) set up with:
>
> MOZCONFIG="/Volumes/Scratch2/mozilla/local/.mozconfig"
> export MOZCONFIG
>
> I've set up my .mozconfig (at the above file) with
>
> export CC=gcc-3.3
> export CXX=g++-3.3
>
> . $topsrcdir/browser/config/mozconfig
>
> mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../moz-objdir
> ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
> ac_add_options --disable-optimize
> ac_add_options --disable-tests
>
>
> ...but when I try to make using the instructions on the mozilla/build
> website:
>
> make -f client.mk build
>
> I get the following:
>
> c-71-227:/Volumes/Scratch2/mozilla/build rsherry$ make -f client.mk
> build
> /bin/sh: line 1: mozilla/.mozconfig.out: No such file or directory
> client.mk:339: /Volumes/Scratch2/mozilla/build/.mozconfig.mk: No such
> file or directory
> make: *** No rule to make target
> `/Volumes/Scratch2/mozilla/build/.mozconfig.mk'.  Stop.
>
> If I do this:
>
> cd /Volumes/Scratch2/mozilla/build
> make -f build/client.mk build
>
> ...then it tries to use cvs and hangs -- and all the instructions on
> the mozilla site seem to indicate that the parameter to make should be
> 'client.mk' not 'build/client.mk'.
>
> I'm sure it's something simple, but I don't know what; I'm new to make
> and the unix development environment.
>
> Thanks,
> Rudi


I found it was two things, one dependent on the other.

"/bin/sh: line 1: mozilla/.mozconfig.out: No such file or directory"

... to fix this,  I had to rename the /build directory to be
/mozilla... yes, that's right, you *must* name the main directory
"mozilla" or you can't kick off the build for the first time even
though, theoretically, the build in that directory is self-contained.

Once that worked, it seemed to kick the other error out of the way...
that is, it started building.  Just to make sure -- relying on the top
directory having a certain name seemed odd -- I stopped the build and
renamed the directory back to /build, and tried to make again.  I got
the first error again (.mozconfig.out problem) but it continued to
build after that.  So it seems that there is some one-time
initialization that must go on somewhere that relies on $topsrcdir
actually being named mozilla.

Before continuing, I renamed it back to mozilla... just in case.

Should someone put this somewhere in the documentation?  I would try to
track this down, but I'm not sure where in the scripts it's looking for
the directory mozilla; perhaps someone more familiar with either the
mozilla build environment or the unix 'make' command would find it much
faster.

Hope this helps someone,
Rudi

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: First timer: cannot build Firefox on Mac OS X

Christian Biesinger
Rudi Sherry wrote:
> Should someone put this somewhere in the documentation?

Yeah, someone probably should ;)

> I would try to
> track this down, but I'm not sure where in the scripts it's looking for
> the directory mozilla; perhaps someone more familiar with either the
> mozilla build environment or the unix 'make' command would find it much
> faster.

I believe it's only client.mk that does this. If you run configure and
make yourself it probably works.
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds