llvm.org GIT mirror llvm / 201ddef
Correct documentation to reflect the change in location of the CFE runtime libraries. They are now in $CFEINSTALL/lib not $CFEINSTALL/bytecode-lib. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18939 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
4 changed file(s) with 11 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
230230 These are the commands you need.

231231

                  
                
232232 % gmake
233 % mkdir $CFEINSTALL/bytecode-libs
233 % mkdir $CFEINSTALL/lib
234234 % gmake -C runtime install-bytecode
235 % setenv LLVM_LIB_SEARCH_PATH $CFEINSTALL/bytecode-libs
235 % setenv LLVM_LIB_SEARCH_PATH $CFEINSTALL/lib
236236
237237
238238
  • Optionally, build a symbol table for the newly installed runtime

  • 363363 To fix it, verify that LLVM_LIB_SEARCH_PATH points to the correct directory
    364364 and that libcrtend.a is inside. For pre-built LLVM GCC front ends, this
    365365 should be the absolute path to
    366 cfrontend/<platform>/llvm-gcc/bytecode-libs. If you've
    366 cfrontend/<platform>/llvm-gcc/lib. If you've
    367367 built your own LLVM GCC front end, then ensure that you've built and installed
    368368 the libraries in llvm/runtime and have LLVM_LIB_SEARCH_PATH pointing
    369 to the LLVMGCCDIR/bytecode-libs subdirectory.
    369 to the $LLVMGCCDIR/lib subdirectory.
    370370

    371371
    372372
    459459

    460460 In order to find libcrtend.a, you must have the directory in which it lives in
    461461 your LLVM_LIB_SEARCH_PATH environment variable. For the binary distribution of
    462 the LLVM GCC front end, this will be the full path of the bytecode-libs
    462 the LLVM GCC front end, this will be the full path of the lib
    463463 directory inside of the LLVM GCC distribution.
    464464

    465465
    547547 .cshrc or .profile.
    548548
    549549
    550
    LLVM_LIB_SEARCH_PATH=LLVMGCCDIR/bytecode-libs
    550
    LLVM_LIB_SEARCH_PATH=LLVMGCCDIR/lib
    551551
    552552 This environment variable helps the LLVM GCC front end find bytecode
    553553 libraries that it will need for compilation.
    805805 LLVM_LIB_SEARCH_PATH environment variable in your startup shell
    806806 scripts. This environment variable is used to locate "system" libraries like
    807807 "-lc" and "-lm" when linking. This variable should be set to
    808 the absolute path of the bytecode-libs subdirectory of the GCC front
    809 end, or LLVMGCCDIR/bytecode-libs. For example, one might set
    808 the absolute path of the lib subdirectory of the GCC front
    809 end, or LLVMGCCDIR/lib. For example, one might set
    810810 LLVM_LIB_SEARCH_PATH to
    811 /home/vadve/lattner/local/x86/llvm-gcc/bytecode-libs for the x86
    811 /home/vadve/lattner/local/x86/llvm-gcc/lib for the x86
    812812 version of the GCC front end on our research machines.

    813813
    814814
    473473

    474474
    475475
    
                      
                    
    476 5 3 * * * LLVM_LIB_SEARCH_PATH=.../llvm-gcc/bytecode-libs $HOME/llvm/utils/NightlyTest.pl -parallel -enable-linscan ...CVSREPOSTRING... $HOME/buildtest-X86 $HOME/cvs/testresults-X86
    476 5 3 * * * LLVM_LIB_SEARCH_PATH=.../llvm-gcc/lib $HOME/llvm/utils/NightlyTest.pl -parallel -enable-linscan ...CVSREPOSTRING... $HOME/buildtest-X86 $HOME/cvs/testresults-X86
    477477
    478478
    479479

    Or, you can create a shell script to encapsulate the running of the script.

    487487 export LLVMGCCDIR=/proj/work/llvm/cfrontend/install
    488488 export PATH=/proj/install/bin:$LLVMGCCDIR/bin:$PATH
    489489 export LD_LIBRARY_PATH=/proj/install/lib
    490 export LLVM_LIB_SEARCH_PATH=/proj/work/llvm/cfrontend/install/bytecode-libs
    490 export LLVM_LIB_SEARCH_PATH=/proj/work/llvm/cfrontend/install/lib
    491491 cd $BASE
    492492 cp /proj/work/llvm/llvm/utils/NightlyTest.pl .
    493493 nice ./NightlyTest.pl -nice -release -verbose -parallel -enable-linscan -noexternals