Closed Bug 746650 Opened 12 years ago Closed 12 years ago

Unable to create language pack on Windows XP: Error message: "couldn't compile a simple C file"

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla15

People

(Reporter: aryx, Assigned: glandium)

References

Details

Attachments

(2 files)

Windows XP SP 3 32-bit, MozillaBuild 1.6

I tried to create a German language pack for Aurora (13 Branch) and followed the manual at https://developer.mozilla.org/En/Creating_a_patch and https://developer.mozilla.org/en/Localization_Quick_Start_Guide

make -f client.mk aborts like this:

checking for wget... checking for wget... wget
wget
checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: warning: When not building jemalloc, you need to set WIN32_REDIST_DIR
 to the path to the Visual C++ Redist (usually VCINSTALLDIR\redist\x86\Microsoft
.VC80.CRT, for VC++ v8) if you intend to distribute your build.
checking what kind of list files are supported by the linker... configure: error
: couldn't compile a simple C file
*** Fix above errors and then restart with               "make -f client.mk buil
d"
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/f/Mozilla/Coding/Firefox/Code/mozilla-aurora-unchan
ged'
make[1]: *** [/f/Mozilla/Coding/Firefox/Code/mozilla-aurora-unchanged/../firefox
-build/Makefile] Error 2
make[1]: Leaving directory `/f/Mozilla/Coding/Firefox/Code/mozilla-aurora-unchan
ged'
make: *** [build] Error 2


The .mozconfig:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build
ac_add_options --disable-angle
ac_add_options --disable-compile-environment
ac_add_options --with-l10n-base=../l10n-central
ac_add_options --enable-application=browser


Analysis by Ted Mielczarek:

ted: sounds like we added a new check that errors on --disable-compile-environment builds
ted: make it block bug  603370 
ted: which looks like where we broke this
ted: http://mxr.mozilla.org/mozilla-central/source/build/autoconf/expandlibs.m4#5
ted: http://mxr.mozilla.org/mozilla-central/source/build/autoconf/expandlibs.m4#26 specifically is that error you're getting
It's likely to not be related to bug 603370. Please attach your config.log to get the actual error.
Err, ted is right, it's likely a missing
if test "$COMPILE_ENVIRONMENT"; then
from bug 603370
Modifying the configure.in like glandium proposed allows to run make -f client.mk longer, but it still aborts with

make[6]: cl: Command not found
Attachment #616250 - Flags: review?(ted.mielczarek) → review+
Assignee: nobody → mh+mozilla
https://hg.mozilla.org/integration/mozilla-inbound/rev/864ae3bff0b2

Archaeopteryx, please file a separate bug for comment #4, it is a separate issue.
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/864ae3bff0b2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: