-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stage0 -> stage1 bootstrap currently broken on void and arch #505
Comments
Test 1:
build_gcc3.log:
/src/build/gcc3/gcc-3.4.6/libiberty/config.log: http://true.stallman.faith/kwpwha.txt This already fails when trying to build stage0. |
Test 2:
Fails also at stage0, but at a later point. |
Test 3:
Original error with gcc630 failing to be built from the stage0 enviroment This change doesn't seem to produce different results from the current brokenness. |
this issue might be caused by a new relocation type R_X86_64_REX_GOTPCRELX which was added to binutils around 2.25 with no possibility to opt out. 56ceb5b5405af23eddd12e12d8ba849010120324 and 02a866936de7e63ad4962ccba56c8cd05c231275 are the commit hashes in binutils git repo. |
we tried to backport the patches for that relocation a couple weeks ago, but it looked too complicated for me as the code was very different |
since 7620293 , when we started building stage3 gcc with C++ support, so we can build gcc630 during stage1, instead of building gcc474 first as an intermediate step.
the issue is caused by either the specific binutils version (2.27) used by these 2 distros, or by defaulting to PIE. the effect is that the libstdc++.a created during gcc3 build is broken.
so compiling any C++ code with the stage0 compiler fails.
gcc630 will fail during the build with the message
config.log reveals more details:
build log of gcc3 is available here: http://true.stallman.faith/PJKYHn.txt
possible solutions:
as a temporary workaround until it is fixed, it should be sufficient to just build gcc474 when stage1 fails, and then continue building stage1. gcc474 will then be used to compile gcc630, which should work.
The text was updated successfully, but these errors were encountered: