Junjie Gu
2011-Mar-04 18:47 UTC
[LLVMdev] configure llvm for 32-bit build on a 64-bit system
I have TOT of llvm and it builds 64-bit without issues on my 64-bit ubuntu. My question is how to build 32-bit llvm on my 64-bit ubuntu ? I've not found any configure options to specify that. Thanks Junjie
Rafael Avila de Espindola
2011-Mar-04 19:44 UTC
[LLVMdev] configure llvm for 32-bit build on a 64-bit system
On 11-03-04 01:47 PM, Junjie Gu wrote:> I have TOT of llvm and it builds 64-bit without issues on my 64-bit > ubuntu. My question is how to build 32-bit llvm on my 64-bit ubuntu ? > I've not found any configure options to specify that. >CC="gcc -m32" CXX="g++ -m32" should do in.> Thanks > JunjieCheers, Rafael
Duncan Sands
2011-Mar-04 20:38 UTC
[LLVMdev] configure llvm for 32-bit build on a 64-bit system
Hi Junjie,> I have TOT of llvm and it builds 64-bit without issues on my 64-bit > ubuntu. My question is how to build 32-bit llvm on my 64-bit ubuntu ? > I've not found any configure options to specify that.as well as "gcc -m32" and "g++ -m32" you may want to configure with --build=i686-pc-linux-gnu Ciao, Duncan.
Junjie Gu
2011-Mar-05 16:38 UTC
[LLVMdev] configure llvm for 32-bit build on a 64-bit system
On Fri, Mar 4, 2011 at 12:38 PM, Duncan Sands <baldrick at free.fr> wrote:> Hi Junjie, > >> I have TOT of llvm and it builds 64-bit without issues on my 64-bit >> ubuntu. My question is how to build 32-bit llvm on my 64-bit ubuntu ? >> I've not found any configure options to specify that. > > as well as "gcc -m32" and "g++ -m32" you may want to configure with > --build=i686-pc-linux-gnu >make CC="gcc -m32" CXX="g++ -m32" works, but configure ... --build==i686-pc-linux-gnu does not. Thanks Junjie