diff options
| author | Khem Raj <raj.khem@gmail.com> | 2014-03-19 15:20:56 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-06 17:59:15 +0100 |
| commit | 3d094751c8712f6805f9303c75471ccd26be304e (patch) | |
| tree | ad71efcdabe984882e814e5d775ba743adadb1c7 /meta/recipes-devtools/gcc/gcc-4.9/0043-cpp.patch | |
| parent | 7b78c364b7de901f97cd8dbe56d5e02f545bf3d3 (diff) | |
| download | poky-3d094751c8712f6805f9303c75471ccd26be304e.tar.gz | |
gcc: Add 4.9 recipes
(From OE-Core rev: f051216ea373f166016b15bbd2a2a6f136430372)
(From OE-Core rev: d4573cb750bfde488682244d30266dfe675bac06)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.9/0043-cpp.patch')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.9/0043-cpp.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0043-cpp.patch b/meta/recipes-devtools/gcc/gcc-4.9/0043-cpp.patch new file mode 100644 index 0000000000..eaf8646f97 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.9/0043-cpp.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | The OE environment sets and exports CPP as being the target gcc. When building | ||
| 2 | gcc-cross-canadian for a mingw targetted sdk, the following can be found in | ||
| 3 | build.x86_64-pokysdk-mingw32.i586-poky-linux/build-x86_64-linux/libiberty/config.log: | ||
| 4 | |||
| 5 | configure:3641: checking for _FILE_OFFSET_BITS value needed for large files | ||
| 6 | configure:3666: gcc -c -isystem/media/build1/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe conftest.c >&5 | ||
| 7 | configure:3666: $? = 0 | ||
| 8 | configure:3698: result: no | ||
| 9 | configure:3786: checking how to run the C preprocessor | ||
| 10 | configure:3856: result: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 | ||
| 11 | configure:3876: x86_64-pokysdk-mingw32-gcc -E --sysroot=/media/build1/poky/build/tmp/sysroots/x86_64-nativesdk-mingw32-pokysdk-mingw32 conftest.c | ||
| 12 | configure:3876: $? = 0 | ||
| 13 | |||
| 14 | Note this is a *build* target (in build-x86_64-linux) so it should be using | ||
| 15 | the host "gcc", not x86_64-pokysdk-mingw32-gcc. Since the mingw32 headers are | ||
| 16 | very different, using the wrong cpp is a real problem. It is leaking into | ||
| 17 | configure through the CPP variable. Ultimately this leads to build failures | ||
| 18 | related to not being able to include a process.h file for pem-unix.c. | ||
| 19 | |||
| 20 | The fix is to ensure we export a sane CPP value into the build environment when | ||
| 21 | using build targets. We could define a CPP_FOR_BUILD value which may be the version | ||
| 22 | which needs to be upstreamed but for now, this fix is good enough to avoid the | ||
| 23 | problem. | ||
| 24 | |||
| 25 | RP 22/08/2013 | ||
| 26 | |||
| 27 | Upstream-Status: Pending | ||
| 28 | |||
| 29 | Index: gcc-4.8.1/Makefile.in | ||
| 30 | =================================================================== | ||
| 31 | --- gcc-4.8.1.orig/Makefile.in 2013-03-30 11:25:03.000000000 +0000 | ||
| 32 | +++ gcc-4.8.1/Makefile.in 2013-08-13 12:03:17.151988882 +0000 | ||
| 33 | @@ -149,6 +149,7 @@ | ||
| 34 | AR="$(AR_FOR_BUILD)"; export AR; \ | ||
| 35 | AS="$(AS_FOR_BUILD)"; export AS; \ | ||
| 36 | CC="$(CC_FOR_BUILD)"; export CC; \ | ||
| 37 | + CPP="$(CC_FOR_BUILD) -E"; export CPP; \ | ||
| 38 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | ||
| 39 | CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ | ||
| 40 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | ||
