| 136 | |
| 137 | ---- |
| 138 | |
| 139 | ==== gcc failes in pass2 of chap5 |
| 140 | |
| 141 | Description:: |
| 142 | |
| 143 | {{{ |
| 144 | configure:5279: checking for CET support |
| 145 | configure:5328: x86_64-lfs-linux-gnu-gcc -c -g -O2 -fcf-protection conftest.c >&5 |
| 146 | configure:5328: $? = 0 |
| 147 | configure:5364: x86_64-lfs-linux-gnu-gcc -o conftest -g -O2 -fcf-protection=none -static-libstdc++ -static-libgcc -Wl,-z,ibt,-z,shstk conftest.c >&5 |
| 148 | configure:5364: $? = 0 |
| 149 | configure:5375: error: in `/mnt/lfs/sources/gcc-10.1.0/build/libiberty': |
| 150 | configure:5377: error: cannot run test program while cross compiling |
| 151 | }}} |
| 152 | |
| 153 | Solution:: |
| 154 | A patch is available |
| 155 | |
| 156 | https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545392.html |
| 157 | |