| Issue 10: | Detecting gcc 32bits awareness on 64bits platforms | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Currently, cctool-iphone only build on 32bits platforms. It would be nice if toolchain.sh could detect 32bits support in GCC or die otherwise. What steps will reproduce the problem? 1. install gcc on a 64bits architecture (e.g. Ubuntu amd64) 2. make sure no support for 32bits is available 3. ./toolchain.sh build What is the expected output? What do you see instead? The user expects the toolchain to build. Instead, he can read: checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make: *** No rule to make target `clean'. Stop. Building cctools-iphone... Build progress logged to: toolchain/bld/cctools-iphone/make.log Build & install failed. Check make.log and install.log What version of the product are you using? On what operating system? toolchain.sh r73, Ubuntu Intrepid Ibex x86_64 Please provide any additional information below. The following patch aims at detecting 32bits support in GCC when toolchain.sh is ran on 64bits platforms. |
|
,
Feb 21, 2009
Thanks for the patch damien. Unfortunately (or perhaps fortunately in my case) I've had a busy period with some paid work so I haven't been able to focus on the toolchain builder as much. I'll this and your other patch introduced tonight hopefully.
Status: Accepted
Owner: m4dm4n |
|
,
Aug 17, 2009
what do i do with the patch? |
|
,
Aug 17, 2009
You simply have to use the binary "patch" to merge this patch to the regular toolchain.sh First, give it a try: patch --dry-run toolchain.sh < /home/dciabrin/Desktop/toolchain-m32check.patch if the patch applies succesfully, you can proceed for real: patch toolchain.sh < /home/dciabrin/Desktop/toolchain-m32check.patch But please note that it won't fix compilation issue, it only tells you earlier whether your gcc is able to compile the toolchain or not (i.e. if it support 32bit compilation) |
|
|
|