Changeset 2037ec4 for general/prog/llvm.xml
- Timestamp:
- 01/27/2016 11:21:15 PM (8 years ago)
- Branches:
- systemd-13485
- Children:
- 1e76622
- Parents:
- a7e1ac8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/llvm.xml
ra7e1ac8 r2037ec4 7 7 <!ENTITY llvm-download-http "http://llvm.org/releases/&llvm-version;/llvm-&llvm-version;.src.tar.xz"> 8 8 <!ENTITY llvm-download-ftp " "> 9 <!ENTITY llvm-md5sum "b 98b9495e5655a672dbcb83e1a180f8e">9 <!ENTITY llvm-md5sum "bf8b3a2c79e61212c5409041dfdbd319"> 10 10 <!ENTITY llvm-size "14 MB"> 11 <!ENTITY llvm-buildsize "1. 7 GB (with Clang)">12 <!ENTITY llvm-time " 39 SBU (with Clang and parallelism=2)">11 <!ENTITY llvm-buildsize "1.6 GB (with Clang and tests)"> 12 <!ENTITY llvm-time "13 SBU (with Clang, tests and parallelism = 4)"> 13 13 14 14 <!ENTITY clang-download-http "http://llvm.org/releases/&llvm-version;/cfe-&llvm-version;.src.tar.xz"> 15 <!ENTITY clang-md5sum " 8f9d27335e7331cf0a4711e952f21f01">16 <!ENTITY clang-size " 8.8MB">15 <!ENTITY clang-md5sum "0acd026b5529164197563d135a8fd83e"> 16 <!ENTITY clang-size " 8.7 MB"> 17 17 18 18 <!ENTITY rt-version "&llvm-version;"> 19 19 <!ENTITY compiler-rt-download-http "http://llvm.org/releases/&rt-version;/compiler-rt-&rt-version;.src.tar.xz"> 20 <!ENTITY compiler-rt-md5sum " 383c10affd513026f08936b5525523f5">20 <!ENTITY compiler-rt-md5sum "1c6975daf30bb3b0473b53c3a1a6ff01"> 21 21 <!ENTITY compiler-rt-size "1.2 MB"> 22 22 ]> … … 55 55 <application>LLVM</application>. 56 56 </para> 57 58 <note> 59 <para> 60 This package hits a bug in GCC-4.9.0 or an unpatched GCC-4.9.1. 61 To build this package, GCC needs to be updated if you have one of 62 these versions. See <xref linkend="gcc"/> 63 for <application>gcc</application> installation instructions. 64 </para> 65 </note> 57 66 58 67 &lfs78_checked; … … 172 181 mv projects/compiler-rt-&rt-version;.src projects/compiler-rt</userinput></screen> 173 182 183 <!-- Only for 3.7.0: hopefully fixed on later versions --> 184 <para> 185 The run-time library needs to be fixed for 32 bit installations: 186 </para> 187 188 <screen><userinput>sed -r "/ifeq.*CompilerTargetArch/s#i386#i686#g" \ 189 -i projects/compiler-rt/make/platform/clang_linux.mk</userinput></screen> 190 174 191 <para> 175 192 Install <application>LLVM</application> by running the following … … 180 197 -i Makefile.config.in && 181 198 182 CC=gcc CXX=g++ \ 183 ./configure --prefix=/usr \ 184 --sysconfdir=/etc \ 185 --enable-libffi \ 186 --enable-optimized \ 187 --enable-shared \ 188 --disable-assertions && 199 mkdir -v build && 200 cd build && 201 202 CC=gcc CXX=g++ \ 203 ../configure --prefix=/usr \ 204 --datarootdir=/usr/share \ 205 --sysconfdir=/etc \ 206 --enable-libffi \ 207 --enable-optimized \ 208 --enable-shared \ 209 --enable-targets=host,r600 \ 210 --disable-assertions \ 211 --docdir=/usr/share/doc/llvm-&llvm-version; && 189 212 make</userinput></screen> 190 213 … … 194 217 </para> 195 218 196 <screen><userinput>make -C docs -f Makefile.sphinx man</userinput></screen>219 <screen><userinput>make -C ../docs -f Makefile.sphinx man</userinput></screen> 197 220 198 221 <para> 199 222 To test the results, issue: <command>make -k check-all</command>. 200 There is a number of unexpected failures that can safely be 201 ignored. 223 Some tests may fail for unknown reasons. 202 224 </para> 203 225 … … 211 233 do 212 234 test -f $file && chmod -v 644 $file 213 done &&235 done 214 236 unset file</userinput></screen> 215 237 … … 226 248 for prog in scan-build scan-view 227 249 do 228 cp -rfv tools/clang/tools/$prog /usr/lib/clang-analyzer/250 cp -rfv ../tools/clang/tools/$prog /usr/lib/clang-analyzer/ && 229 251 ln -sfv ../lib/clang-analyzer/$prog/$prog /usr/bin/ 230 done && 231 232 ln -sfv /usr/bin/clang /usr/lib/clang-analyzer/scan-build/ && 233 mv -v /usr/lib/clang-analyzer/scan-build/scan-build.1 /usr/share/man/man1/ && 234 unset prog</userinput></screen> 252 done 253 unset prog && 254 255 ln -sfv /usr/bin/clang \ 256 /usr/lib/clang-analyzer/scan-build/ && 257 mv -v /usr/lib/clang-analyzer/scan-build/scan-build.1 \ 258 /usr/share/man/man1/</userinput></screen> 235 259 236 260 <para> … … 240 264 </para> 241 265 242 <screen role="root"><userinput>install -v -m644 docs/_build/man/* /usr/share/man/man1/</userinput></screen>266 <screen role="root"><userinput>install -v -m644 ../docs/_build/man/* /usr/share/man/man1/</userinput></screen> 243 267 244 268 </sect2> … … 248 272 249 273 <para> 250 <command>sed -e ... Makefile.config.in</command>: This sed fixes the274 <command>sed -e ... Makefile.config.in</command>: This sed fixes 251 275 location of the installed documentation. 252 276 </para> … … 268 292 <parameter>--enable-shared</parameter>: This switch enables 269 293 building of the <application>LLVM</application> shared 270 library which contains all of the static libraries linked into a 271 single library. 272 </para> 273 274 <para> 275 <parameter>--disable-assertions</parameter>: This switch disables some 276 additional compile checks which are not neccessary on a production 277 system. 294 library which contains all of the static libraries linked into 295 a single library. 296 </para> 297 298 <para> 299 <parameter>--enable-targets=host,r600</parameter>: This switch enables 300 building for the same target as the host, and also for the r600 AMD GPU 301 used by the Mesa r600 and radeonsi drivers. Default is all. You can use 302 a comma separated list. Valid targets are: host, x86, x86_64, sparc, 303 powerpc, arm64, arm, aarch64, mips, hexagon, xcore, msp430, nvptx, 304 systemz, r600, amdgpu (equivalent to r600), bpf, wasm, and cpp. 305 </para> 306 307 <para> 308 <parameter>--disable-assertions</parameter>: Disable some compile checks, 309 not necessary on a production system. 278 310 </para> 279 311 … … 293 325 clang-check, clang-format, clang-tblgen, llc, lli, lli-child-target, 294 326 llvm-ar, llvm-as, llvm-bcanalyzer, llvm-config, llvm-cov, 295 llvm-cxxdump, llvm-diff, llvm-dis, llvm-dsymutil, llvm-dwarfdump, 296 llvm-extract, llvm-link, llvm-mc, llvm-mcmarkup, llvm-nm, 297 llvm-objdump, llvm-profdata, llvm-pdbdump, 298 llvm-ranlib (symlink), llvm-readobj, llvm-rtdyld, llvm-size, 299 llvm-stress, llvm-symbolizer, llvm-tblgen, macho-dump, not, obj2yaml, 300 opt, scan-build (symlink), scan-view (symlink), verify-uselistorder, 301 and yaml2obj 327 llvm-cxxdump, llvm-diff, llvm-dis, llvm-dsymutil, llvm-dwarfdump, 328 llvm-extract, llvm-link, llvm-mc, llvm-mcmarkup, llvm-nm, 329 llvm-objdump, llvm-pdbdump, llvm-profdata, llvm-ranlib (symlink), 330 llvm-readobj, llvm-rtdyld, llvm-size, llvm-stress, llvm-symbolizer, 331 llvm-tblgen, macho-dump, not, obj2yaml, opt, scan-build (symlink), 332 scan-view (symlink), verify-uselistorder, and yaml2obj 302 333 </seg> 303 334 <seg> 304 335 BugpointPasses.so, libclang.so, libLLVM-&llvm-version;.so, 305 libL LVM-3.7.so, libLTO.so,<!-- libprofile_rt.so,-->306 LLVMHello.so and numerousstatic libraries in /usr/lib336 libLTO.so,<!-- libprofile_rt.so,--> LLVMHello.so and numerous 337 static libraries in /usr/lib 307 338 </seg> 308 339 <seg> 309 340 /usr/include/{clang,clang-c,llvm,llvm-c}, 310 /usr/lib/{clang,clang-analyzer}, 311 /usr/share/doc/llvm-&llvm-version;, and 312 /usr/share/llvm 341 /usr/lib/{clang,clang-analyzer}, and 342 /usr/share/{doc/llvm-&llvm-version;,llvm} 313 343 </seg> 314 344 </seglistitem> … … 430 460 </varlistentry> 431 461 462 <varlistentry id="llvm-cxxdump"> 463 <term><command>llvm-cxxdump</command></term> 464 <listitem> 465 <para> 466 is used for C++ ABI Data Dumper. 467 </para> 468 <indexterm zone="llvm llvm-cxxdump"> 469 <primary sortas="b-llvm-cxxdump">llvm-cxxdump</primary> 470 </indexterm> 471 </listitem> 472 </varlistentry> 473 432 474 <varlistentry id="llvm-diff"> 433 475 <term><command>llvm-diff</command></term> … … 459 501 <listitem> 460 502 <para> 461 is atool used to manipulate archived DWARF debug symbol files,503 tool used to manipulate archived DWARF debug symbol files, 462 504 compatible with the Darwin command <command>dsymutil</command>. 463 505 </para> … … 502 544 <indexterm zone="llvm llvm-nm"> 503 545 <primary sortas="b-llvm-nm">llvm-nm</primary> 546 </indexterm> 547 </listitem> 548 </varlistentry> 549 550 <varlistentry id="llvm-pdbdump"> 551 <term><command>llvm-pdbdump</command></term> 552 <listitem> 553 <para> 554 is used as PDB Dumper. 555 </para> 556 <indexterm zone="llvm llvm-pdbdump"> 557 <primary sortas="b-llvm-pdbdump">llvm-pdbdump</primary> 504 558 </indexterm> 505 559 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.