Changeset 7354b9a for general/prog
- Timestamp:
- 05/08/2022 07:45:31 PM (2 years ago)
- Branches:
- 11.2, 11.3, 12.0, 12.1, 12.2, gimp3, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/for-12.3, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/xf86-video-removal
- Children:
- e28b6fcf
- Parents:
- bbfc73c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/gcc.xml
rbbfc73c r7354b9a 7 7 <!ENTITY gcc-download-http "&gnu-http;/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.xz"> 8 8 <!ENTITY gcc-download-ftp "&gnu-ftp;/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.xz"> 9 <!ENTITY gcc-md5sum " 4ee3e8c4c99e7b3444eb79f00f5f7a7e">10 <!ENTITY gcc-size "7 7MB">11 <!ENTITY gcc-buildsize " 8.0 GB (2.4 GB installed with all listed languages; add 1.0GB for tests)">9 <!ENTITY gcc-md5sum "ed45b55ee859ada4b25a1e76e0c4d966"> 10 <!ENTITY gcc-size "79 MB"> 11 <!ENTITY gcc-buildsize "10.5 GB (2.4 GB installed with all listed languages; add 1.3 GB for tests)"> 12 12 <!-- For me the SBU values are a bit faster on haswell, but much slower on ryzen 3400G, 13 13 so keeping these existing values as an approximation - ken --> 14 <!ENTITY gcc-time " 25 SBU (add 56SBU for tests; both with parallelism=4)">14 <!ENTITY gcc-time "31 SBU (add 67 SBU for tests; both with parallelism=4)"> 15 15 ]> 16 16 … … 34 34 The <application>GCC</application> package contains the GNU Compiler 35 35 Collection. This page describes the installation of compilers for the 36 following languages: C, C++, D, Fortran, Objective C, Objective C++, and Go. 37 <!--One additional language, Ada, is available in the collection. It has 38 a binary bootstrap requirement for the first installation, so it is 39 described on a separate page (<xref linkend="gcc-ada"/>) but can be added 40 here if you are performing a rebuild or upgrade. Since C and C++ are 41 installed in LFS, this page is either for upgrading C and C++, or for 42 installing additional compilers.--> 43 </para> 36 following languages: C, C++, Fortran, Objective C, Objective C++, and Go. 37 Since C and C++ are installed in LFS, this page is either for upgrading 38 C and C++, or for installing additional compilers. 39 </para> 40 41 <note> 42 <para> 43 Additional languages, among which D and ADA, are available in the 44 collection. D and ADA have a binary bootstrap requirement for the first 45 installation, so their installation is not described here. To install 46 them, you can proceed along the same lines as below after installing 47 the corresponding compiler from a binary package, adding 48 <option>ada</option> or <option>d</option> to the 49 <parameter>--enable-languages</parameter> line. 50 </para> 51 </note> 44 52 45 53 &lfs111_checked; … … 114 122 115 123 <bridgehead renderas="sect3">GCC Dependencies</bridgehead> 116 <!-- 117 <bridgehead renderas="sect4">Recommended</bridgehead> 118 <para role="recommended"> 119 <xref linkend="dejagnu"/>, for tests 120 </para> 121 --> 124 122 125 <bridgehead renderas="sect4">Optional</bridgehead> 123 126 <para role="optional"> … … 142 145 installation process will overwrite your existing 143 146 <application>GCC</application> C and C++ compilers and libraries. 144 <!--Having the <application>Tcl</application>,145 <application>Expect</application> and <application>DejaGnu</application>146 packages installed before beginning the build is highly recommended so147 you can run the full suite of tests.-->148 147 Running the full suite of tests is recommended. 149 148 </para> … … 167 166 <command>./configure</command> options below. 168 167 </para> 169 <!-- Fixed in gcc-11.0.3 170 <para> 171 As in LFS fix an issue breaking libasan.a identified upstream: 172 </para> 173 174 <screen><userinput>sed -e '/static.*SIGSTKSZ/d' \ 175 -e 's/return kAltStackSize/return SIGSTKSZ * 4/' \ 176 -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp</userinput></screen> 177 --> 168 178 169 <para> 179 170 Install <application>GCC</application> by running the following commands: … … 193 184 --disable-multilib \ 194 185 --with-system-zlib \ 195 --enable-languages=c,c++, d,fortran,go,objc,obj-c++ &&186 --enable-languages=c,c++,fortran,go,objc,obj-c++ && 196 187 make</userinput></screen> 197 188 … … 201 192 the <application>GCC</application> part of the testsuite will run more 202 193 tests than in LFS. Some of those will report FAIL and others XPASS 203 (pass when expected to FAIL). As of gcc-1 1.3.0, about 90 FAIL occur194 (pass when expected to FAIL). As of gcc-12.1.0, about 90 FAIL occur 204 195 in the <quote>guality</quote> suite, as well as miscellaneous failures 205 196 throughout the rest of the test suite. If all the compilers above are 206 built, there will be around 1 11unexpected failures out of over207 481,000 tests. To run the tests, issue:197 built, there will be around 100 unexpected failures out of over 198 523,000 tests. To run the tests, issue: 208 199 </para> 209 200 … … 221 212 <screen><userinput>../contrib/test_summary</userinput></screen> 222 213 223 <para>A few tests, less than 20 out of about 450,000, will fail, but unless224 the failures are excessive, they can be ignored.</para>225 226 214 <para> 227 215 Now, as the <systemitem class="username">root</systemitem> user: … … 234 222 235 223 chown -v -R root:root \ 236 /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed} 237 238 rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen> 224 /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen> 239 225 240 226 <para> … … 277 263 278 264 <para> 279 <parameter>--enable-languages=c,c++, d,fortran,go,objc,obj-c++</parameter>:265 <parameter>--enable-languages=c,c++,fortran,go,objc,obj-c++</parameter>: 280 266 This command identifies which languages to build. You may modify 281 this command to remove undesired languages. Three other languages can be282 added, including ADA, BRIG (add267 this command to remove undesired languages. Other languages can be 268 added, including ADA, D, BRIG (add 283 269 <parameter>brig</parameter> to the list of enabled languages), a binary 284 270 format for HSAIL (Heterogeneous System Architecture Intermediate … … 288 274 been tested by the BLFS developers. 289 275 </para> 290 <!-- It's been three major versions now, and many years.291 Commenting out unless needed somewhere. -renodr292 <para>293 <option>- -with-default-libstdcxx-abi=gcc4-compatible</option>: Use this294 switch if you are upgrading from a <application>GCC</application>295 version prior to 5.1.0, and you do not want to recompile all the296 libraries written in C++.297 </para>298 -->299 276 300 277 <para> … … 332 309 </para> 333 310 334 <para>335 <command>rm -rf .../include-fixed/bits/</command>: Remove an erroneous336 file in gcc added by the fixincludes process.337 </para>338 339 311 </sect2> 340 312 … … 357 329 <seglistitem> 358 330 <seg> 359 gccgo, g dc, gfortran, go, and gofmt, hard-linked to architecture331 gccgo, gfortran, go, and gofmt, hard-linked to architecture 360 332 specific names 361 333 </seg> 362 334 <seg> 363 335 libgfortran.{so,a}, 364 libgdruntime.{so,a}, libgphobos.{so,a}365 336 libgo.{so,a}, libgobegin.a, libgolibbegin.a, 366 337 libobjc.{so,a}, and numerous other run-time libraries and executables … … 413 384 </listitem> 414 385 </varlistentry> 415 386 <!-- 416 387 <varlistentry id="gdc"> 417 388 <term><command>gdc</command></term> … … 426 397 </listitem> 427 398 </varlistentry> 428 399 --> 429 400 <varlistentry id="gfortran"> 430 401 <term><command>gfortran</command></term>
Note:
See TracChangeset
for help on using the changeset viewer.