[cfe-users] Setting up clang for building 32bit binaries on 64bit Ubuntu
tom.miles at creative-assembly.com
Mon Mar 10 08:10:54 PDT 2014
This is my first time posting to the list, so I hope that this is the correct place to post to.
I'm porting an existing codebase to linux that is compiled as 32bit on the previous platform. I've set up one linux machine and have a working build environment that attempts to build the code, still loads of issues to resolve, but that's just code. My problem is that I need to set up a couple more machines for team members to use, and I can't for the life of me get the environment set up correctly. I wrote down some basic instructions which I thought were complete to get the correct packages for cross compiling to x86, which where:
sudo apt-add-repository 'deb http://llvm.org/apt/saucy/ llvm-toolchain-saucy main'
sudo apt-get update
sudo apt-get install clang-3.5 llvm-3.5 lib32gcc1 libc6-dev-i386 lib32z1 lib32stdc++6 gcc-multilib
However, it seems that I've missed something essential, as on the machines I'm trying to set up I get a compilation error as when xmmintrin.h is included, it pulls an incompatible x64 version from gcc rather than clangs include directory. I've tried a side by side comparison of installed packages and the only different packages look inoccuous enough, I've checked the CXXFLAGS env variable, and it's empty, I'Ve done countless searches on google and just can't find out what I've done different/wrong.
Does anyone with more experience of this kind of thing, have any idea what I actually need to do to set up clang to compile 32bit applications?
This email is sent by The Creative Assembly Limited company No. 03425917, registered in England & Wales registered office 27 Great West Road, Middlesex, TW8 9BW, England. The contents of this e-mail and any attachments are confidential to the intended recipient and may also be legally privileged. Unless you are the named addressee (or authorised to receive for the addressee) of this email you may not copy, disclose or distribute it to anyone else. If you have received this email in error, please notify us immediately by e-mail on postmaster at creative-assembly.co.uk and then delete the email and any copies. The Creative Assembly Limited have made all reasonable efforts to ensure that this e-mail and any attached documents or software are free from software viruses, but it is the recipient's responsibility to confirm this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users