Not able to build Gecko SDK for windows 64 bit

RESOLVED INVALID

Status

Firefox Build System
General
--
major
RESOLVED INVALID
6 years ago
2 months ago

People

(Reporter: bhargava.animesh29, Unassigned)

Tracking

5 Branch
x86_64
Windows 7

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 666463 [details]
snapshot during building process

I am trying to build gecko SDK version 5 for Windows 64 bit. I have Windows 7 and MS visual studio 8. When i run start-msvc9-x64.bat i get configure:error "you are targeting i386 but using the 64-bit compiler". I have added following options in mozconfig file but there seems to be no effect
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32
I think it may be some configuration issue because it is picking 32 bit files i.e when i start the bat file it shows:
Visual c++ 9 directory : C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
Windows SDK directory : C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
I am taking reference from http://wiki.mozilla-x86-64.com/Build:MozillaBuild_For_x64
Following is my mozconfig file:
# mozilla config

ac_add_options --enable-application=xulrunner

#mk_add_options MOZ_MAKE_FLAGS=-j1
#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obju

ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32

#export MOZ_OPTIMIZE_LDFLAGS="-MACHINE:X64 -opt:ref,icf"
#mk_add_options MOZ_OPTIMIZE_LDFLAGS="-MACHINE:X64 -opt:ref,icf"

mk_add_options MOZ_CO_PROJECT=xulrunner

# Builds the core gecko components as a single library called libxul.
ac_add_options --enable-libxul

ac_add_options --disable-installer
ac_add_options --disable-javaxpcom
ac_add_options --disable-tests

# uncomment followings for debug build
#ac_add_options --enable-debug
#ac_add_options --disable-optimize

I am also adding snapshot of console which may help in narrowing down the issue. I need Gecko SDK for both windows 32 and 64 bit urgently and i am stuck at building the SDK for 64 bit.
(Reporter)

Updated

6 years ago
.mozconfig is invalid.

Use --target=x86_64-pc-mingw32 and --host=x86_64-pc-ming32 to build x64
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
(Reporter)

Comment 2

6 years ago
(In reply to Makoto Kato from comment #1)
> .mozconfig is invalid.
> 
> Use --target=x86_64-pc-mingw32 and --host=x86_64-pc-ming32 to build x64

I am already adding the options in mozconfig file as

ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32

Am i missing something?
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
(In reply to bhargava.animesh29 from comment #2)
> (In reply to Makoto Kato from comment #1)
> > .mozconfig is invalid.
> > 
> > Use --target=x86_64-pc-mingw32 and --host=x86_64-pc-ming32 to build x64
> 
> I am already adding the options in mozconfig file as
> 
> ac_add_options --target=x86_64-pc-mingw32
> ac_add_options --host=x86_64-pc-mingw32
> 
> Am i missing something?

Yes. Your screenshot says that it doesn't set correctly.  Do you use ".mozconfig" correctly instead of mozconfig??
(Reporter)

Comment 4

6 years ago
(In reply to Makoto Kato from comment #3)
> (In reply to bhargava.animesh29 from comment #2)
> > (In reply to Makoto Kato from comment #1)
> > > .mozconfig is invalid.
> > > 
> > > Use --target=x86_64-pc-mingw32 and --host=x86_64-pc-ming32 to build x64
> > 
> > I am already adding the options in mozconfig file as
> > 
> > ac_add_options --target=x86_64-pc-mingw32
> > ac_add_options --host=x86_64-pc-mingw32
> > 
> > Am i missing something?
> 
> Yes. Your screenshot says that it doesn't set correctly.  Do you use
> ".mozconfig" correctly instead of mozconfig??

I have placed .mozconfig file inside mozilla-build folder . It seems that it is not picking the win64 architecture resulting in error. Do i need to set some other variables.
(Reporter)

Comment 5

6 years ago
This is resolved now
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago6 years ago
Resolution: --- → INVALID

Updated

2 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.