Closed
Bug 788613
Opened 13 years ago
Closed 12 years ago
configure should tail config.log on failure
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla23
People
(Reporter: ted, Assigned: glandium)
References
Details
Attachments
(1 file, 3 obsolete files)
4.74 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
When configure fails config.log usually has the information you need to figure out exactly what went wrong. However, that's not displayed. If you're doing a local build that's fine, but if your build fails on tinderbox it's really frustrating. We should make configure spit out the tail of config.log when it fails.
Comment 1•13 years ago
|
||
As said in IRC, tail will likely just print a variable dump. We should probably just dump the entire file.
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #732711 -
Flags: review?(ted)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mh+mozilla
Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 732711 [details] [diff] [review]
Dump config.log when configure fails
Review of attachment 732711 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/autoconf/hooks.m4
@@ +5,5 @@
> +dnl Output the contents of config.log when configure exists with an
> +dnl error code.
> +define([MOZ_CONFIG_LOG_TRAP],
> +[changequote(<<<, >>>)dnl
> +trap '[ "$?" != 0 ] && echo "------ config.log ------" && cat config.log' EXIT
Do we want to cat all of config.log here, or should we just tail the last 20 lines or so?
Attachment #732711 -
Flags: review?(ted) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #3)
> Comment on attachment 732711 [details] [diff] [review]
> Dump config.log when configure fails
>
> Review of attachment 732711 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: build/autoconf/hooks.m4
> @@ +5,5 @@
> > +dnl Output the contents of config.log when configure exists with an
> > +dnl error code.
> > +define([MOZ_CONFIG_LOG_TRAP],
> > +[changequote(<<<, >>>)dnl
> > +trap '[ "$?" != 0 ] && echo "------ config.log ------" && cat config.log' EXIT
>
> Do we want to cat all of config.log here, or should we just tail the last 20
> lines or so?
I was considering writing a little script to get the n lines from the last occurrence of "^configure:[0-9]+:"
Assignee | ||
Comment 5•12 years ago
|
||
with tail -n 25 (arbitrary length, that fills a default terminal size)
Assignee | ||
Updated•12 years ago
|
Attachment #732711 -
Attachment is obsolete: true
Assignee | ||
Comment 6•12 years ago
|
||
Backed out for breaking my build.
https://hg.mozilla.org/integration/mozilla-inbound/rev/61f0e35aab01
Assignee | ||
Comment 8•12 years ago
|
||
It breaks build/autoconf/acwinpaths.m4
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #734605 -
Flags: review?(ted)
Assignee | ||
Updated•12 years ago
|
Attachment #732790 -
Attachment is obsolete: true
Comment 10•12 years ago
|
||
Comment on attachment 734605 [details] [diff] [review]
Dump config.log when configure fails.
Review of attachment 734605 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/build/autoconf/hooks.m4
@@ +1,5 @@
> +dnl This Source Code Form is subject to the terms of the Mozilla Public
> +dnl License, v. 2.0. If a copy of the MPL was not distributed with this
> +dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
> +
> +dnl Output the contents of config.log when configure exists with an
exists?
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #735616 -
Flags: review?(ted)
Assignee | ||
Updated•12 years ago
|
Attachment #734605 -
Attachment is obsolete: true
Attachment #734605 -
Flags: review?(ted)
Reporter | ||
Updated•12 years ago
|
Attachment #735616 -
Flags: review?(ted) → review+
Assignee | ||
Comment 12•12 years ago
|
||
Comment 13•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•