Hello. My name is Lim,GeunSik. I currently tre to compile llvm-2.2 source.
at first, I download http://llvm.org/releases/2.2/llvm-gcc4.2-2.2-x86-linux-RHEL4.tar.gz at http://llvm.org website.
I run into a problem with a version of My GCC on fedora/redhat series. Belows are about error info.
Compile Error Case 1) Fedora Core 6 ( GCC 4.1.1 20061011 ) + LLVM-2.2 Source
… Upper Omission ….gnu.linkonce.r._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj' of /usr/src/redhat/BUILD/llvm-2.2/Release/lib/libLLVMSelectionDAG.a(SelectionDAGISel.o): defined in discarded section
.gnu.linkonce.t._ZNK4llvm14TargetLowering19ValueTypeActionImpl13getTypeActionEj’ of /usr/src/redhat/BUILD/llvm-2.2/Release/lib/libLLVMSelectionDAG.a(SelectionDAGISel.o)
collect2: ld returned 1 exit status
make[2]: *** [/usr/src/redhat/BUILD/llvm-2.2/Release/bin/llc] Error 1
make[2]: Leaving directory/usr/src/redhat/BUILD/llvm-2.2/tools/llc'<br><br><br><br>make[1]: *** [llc/.makeall] Error 2<br><br><br><br>make[1]: Leaving directory
/usr/src/redhat/BUILD/llvm-2.2/tools’
make: *** [all] Error 1
오류: /var/tmp/rpm-tmp.17935의 잘못된 종료 상황 (%build)
[invain@fc6 ~]$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)
|
- |
So, I used gcc34/g++34 on fedora core 6 distirubition to solve compatibility & Dependency about llvm-2.2 source.
At the result, I will get binary files(ex: lli,llvmc,llvm-ld,llvm-ranlib, etc)
from ./usr/srec/redhat/BUILD/llvm-2.2/Release/bin/ directory.
But, llvm-2.2 source have some of the problem about docs/ dire and rpmlib like screenshot of compilng status.
… Upper Omissiomn …
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd llvm-2.2
+ DOCDIR=/var/tmp/llvm-root/usr/share/doc/llvm-2.2
+ export DOCDIR
+ rm -rf /var/tmp/llvm-root/usr/share/doc/llvm-2.2
+ /bin/mkdir -p /var/tmp/llvm-root/usr/share/doc/llvm-2.2
+ cp -pr CREDITS.TXT LICENSE.TXT README.txt docs/AliasAnalysis.html docs/BitCode
Format.html docs/Bugpoint.html docs/CFEBuildInstrs.html docs/CodeGenerator.html
docs/CodingStandards.html docs/CommandLine.html docs/CompilerDriver.html docs/Co
mpilerWriterInfo.html docs/DeveloperPolicy.html docs/ExceptionHandling.html docs
/ExtendingLLVM.html docs/FAQ.html docs/GarbageCollection.html docs/GetElementPtr
.html docs/GettingStarted.html docs/GettingStartedVS.html docs/HowToReleaseLLVM.
html docs/HowToSubmitABug.html docs/index.html docs/LangRef.html docs/Lexicon.ht
ml docs/LinkTimeOptimization.html docs/MakefileGuide.html docs/Passes.html docs/
ProgrammersManual.html docs/Projects.html docs/ReleaseNotes.html docs/SourceLeve
lDebugging.html docs/Stacker.html docs/SystemLibrary.html docs/TableGenFundament
als.html docs/TestingGuide.html docs/UsingLibraries.html docs/WritingAnLLVMBacke
nd.html docs/WritingAnLLVMPass.html docs/doxygen.css docs/llvm.css ‘docs/.gif’
'docs/.jpg’ docs/CommandGuide /var/tmp/llvm-root/usr/share/doc/llvm-2.2
cp: cannot statdocs/*.gif': No such file or directory__<br><br><br><br>__cp: cannot stat
docs/*.jpg’: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.95285 (%doc)
Processing files: llvm-debuginfo-2.2-0
Provides: LLVMHello.so.0.0.0.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHave Prefix) <= 4.0-1
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.95285 (%doc)
[invain@fc6 ~]$ gcc34 -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-4)
|
- |
Thanks you for reading my report about llvm-2.2 source.
Have Nice day…
end of line.