This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem building cross compiler for x86_64


On 1/20/06, Manish Katiyar <mkatiyar@gmail.com> wrote:
>     Lastly now i understand that I want to build a canadian cross
> compiler rather than simple cross compiler


With x86_64, you can easily
build a 32 bit compiler without doing a canadian cross,
since x86_64 can run 32 bit binaries.  All you have to do
is arrange for 'gcc' to build a 32 bit binary, e.g. by using
the -m32 option.

What OS are you running?   If it's Debian, you'll
have to run the build in their 32 bit chroot.  Otherwise
just adding -m32 to the flags used by the compiler
should do it.
- Dan


--
Wine for Windows ISVs: http://kegel.com/wine/isv

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]