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

compiler cannot create executables?

128 views
Skip to first unread message

John J Barton

unread,
Jan 15, 2008, 7:51:55 PM1/15/08
to
I built firefox 3.0b on win32 but it does not crash, I think because it
writes too much output. So I want to rebuild with --disable-debug. I
changed my .mozconfig and ran
make -f client.mk build
The output shows that my new .mozconfig values are used, but then the
build dies on
configure: error...C compiler cannot create executables.

How can I get it back to building again?
Thanks,
John.

Sergey Yanovich

unread,
Jan 15, 2008, 7:57:43 PM1/15/08
to
John J Barton wrote:
> I built firefox 3.0b on win32 but it does not crash, I think because it
> writes too much output. So I want to rebuild with --disable-debug. I
> changed my .mozconfig and ran
> make -f client.mk build
> The output shows that my new .mozconfig values are used, but then the
> build dies on
> configure: error...C compiler cannot create executables.

If you didn't use OBJDIR, try:
$ make distclean
$ make -f client.mk build

Otherwise, just delete $OBJDIR and restart.

--
Sergey Yanovich

John J Barton

unread,
Jan 15, 2008, 8:14:00 PM1/15/08
to

Thanks. I deleted obj-i686-pc-mingw32 and then tried the make cmd again.
Same error. Another idea?

>
> --
> Sergey Yanovich

Peter Weilbacher

unread,
Jan 16, 2008, 4:51:54 AM1/16/08
to
On 16.01.2008 01:51, John J Barton wrote:
> I built firefox 3.0b on win32 but it does not crash, I think because it
> writes too much output. So I want to rebuild with --disable-debug. I
> changed my .mozconfig and ran
> make -f client.mk build
> The output shows that my new .mozconfig values are used, but then the
> build dies on
> configure: error...C compiler cannot create executables.

What does gcc say? And have a look into config.log, that contains the
command it tried to ran and the error output it gave.
Peter.

John J. Barton

unread,
Jan 16, 2008, 11:27:18 AM1/16/08
to
I didn't think I was using gcc on win32. I thought I was using MS
visual studio. It worked once...

John.

Peter Weilbacher

unread,
Jan 16, 2008, 12:01:49 PM1/16/08
to

Oops, yes, I missed the "win32". In any case, config.log should tell you
the command and then you can try that in the shell.
Peter.

Stefan Sitter

unread,
Jan 16, 2008, 2:15:48 PM1/16/08
to
From <http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ>:

> configure: error: installation or configuration problem:
> C compiler cannot create executables.

> Try checking to make sure your PATH variable includes all the
> necessary directories. If you are using MS Visual Studio, run
> vcvars32.bat (which sets your PATH, LIB, and INCLUDE variables).
> If your build environment has changed, you may need to delete
> your config.cache file (in your mozilla or object directory) and
> then build again.

Bengt-Erik Soderstrom

unread,
Jan 21, 2008, 8:09:09 AM1/21/08
to

You have to make sure that your .mozconfig has unix line endings. Run,
if you have dos2unix or open it in Visual Studio and save it as unix.

John J Barton

unread,
Jan 21, 2008, 5:16:31 PM1/21/08
to
Thanks, I already hit that one earlier and fixed it. That allowed me to
build the first time. Now I am struggling with the second time.
John.

John J Barton

unread,
Jan 21, 2008, 6:10:46 PM1/21/08
to

Thanks Stefan! I ignored the FAQ section because it marked as obsolete.
And the other instructions referenced use mingw32 shell: how can I use
vcvars32.bat?

The answer is: I should have run mozilla-build/start-mscv8.bat to get
mingw32 shell. It calls vcvars32.bat then puts up a shell. It even
nicely puts the title bar that would help me remember to do this next
time. But then it immediately erases the helpful bit. So I only saw
MINGW32. I fixed the FAQ page

John.

0 new messages