임근식
2008-Feb-14 01:15 UTC
[LLVMdev] Bug Report - Broken versions of FC6-GCC.4.1.1 when complie llvm-2.2 source
<HTML><HEAD><META http-equiv=Content-Type content='text/html;
charset=euc-kr'>
<title>Samsung Enterprise Portal mySingle</title>
<style> P, td, li {font-family:±¼¸²Ã¼, arial; font-size:9pt;
margin-top:5px;margin-bottom:5px;} body{font-family:±¼¸²Ã¼, arial;
font-size:9pt;}</style>
</HEAD>
<BODY>Hello. My name is Lim,GeunSik. I currently tre to compile llvm-2.2
source.
<p>at first, I download <a
href="http://llvm.org/releases/2.2/llvm-gcc4.2-2.2-x86-linux-RHEL4.tar.gz"
target="_blank">http://llvm.org/releases/2.2/llvm-gcc4.2-2.2-x86-linux-RHEL4.tar.gz</a>
at <a href="http://llvm.org"
target="_blank">http://llvm.org</a> website.</p>
I run into a problem with a version of My GCC on fedora/redhat series. Belows
are about error info.
<p> </p>
<p> </p>
<p><b>Compile Error Case 1)</b> Fedora Core 6 ( GCC 4.1.1
20061011 ) +
LLVM-2.2 Source</p>
<table border="1" cellspacing="0">
<tr>
<td width="752">
<p> ...................
Upper Omission .........................</p>
<p>`.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)</p>
<p>collect2: ld returned 1 exit status</p>
<p><b>make[2]: ***
[/usr/src/redhat/BUILD/llvm-2.2/Release/bin/llc]
Error 1</b></p>
<p>make[2]: Leaving directory
`/usr/src/redhat/BUILD/llvm-2.2/tools/llc'</p>
<p>make[1]: *** [llc/.makeall] Error 2</p>
<p>make[1]: Leaving directory
`/usr/src/redhat/BUILD/llvm-2.2/tools'</p>
<p>make: *** [all] Error 1</p>
<p>¿À·ù: /var/tmp/rpm-tmp.17935ÀÇ À߸øµÈ Á¾·á »óȲ
(%build)</p>
<p> </p>
<p><b>[invain@fc6 ~]$ gcc -v</b></p>
<p>Using built-in specs.</p>
<p>Target: i386-redhat-linux</p>
<p>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</p>
<p>Thread model: posix</p>
<p>gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)</p>
</td>
</tr>
</table>
<p> </p>
<p>So, I used gcc34/g++34 on fedora core 6 distirubition to solve
compatibility
& Dependency about llvm-2.2 source.</p>
<p>At the result, I will get binary files(ex:
lli,llvmc,llvm-ld,llvm-ranlib,
etc) </p>
<p>from ./usr/srec/redhat/BUILD/llvm-2.2/Release/bin/ directory.</p>
<p>But, llvm-2.2 source have some of the problem about docs/
dire and rpmlib like screenshot of compilng status.</p>
<table border="1" cellspacing="0">
<tr>
<td width="752">
<p>................... Upper Omissiomn
.......................</p>
<p>+ umask 022</p>
<p>+ cd /usr/src/redhat/BUILD</p>
<p>+ cd llvm-2.2</p>
<p>+
DOCDIR=/var/tmp/llvm-root/usr/share/doc/llvm-2.2</p>
<p>+ export DOCDIR</p>
<p>+ rm -rf
/var/tmp/llvm-root/usr/share/doc/llvm-2.2</p>
<p>+ /bin/mkdir -p
/var/tmp/llvm-root/usr/share/doc/llvm-2.2</p>
<p>+ cp -pr CREDITS.TXT LICENSE.TXT README.txt
docs/AliasAnalysis.html
docs/BitCode</p>
<p>Format.html docs/Bugpoint.html docs/CFEBuildInstrs.html
docs/CodeGenerator.html</p>
<p>docs/CodingStandards.html docs/CommandLine.html
docs/CompilerDriver.html
docs/Co</p>
<p>mpilerWriterInfo.html docs/DeveloperPolicy.html
docs/ExceptionHandling.html
docs</p>
<p>/ExtendingLLVM.html docs/FAQ.html
docs/GarbageCollection.html
docs/GetElementPtr</p>
<p>.html docs/GettingStarted.html docs/GettingStartedVS.html
docs/HowToReleaseLLVM.</p>
<p>html docs/HowToSubmitABug.html docs/index.html
docs/LangRef.html
docs/Lexicon.ht</p>
<p>ml docs/LinkTimeOptimization.html docs/MakefileGuide.html
docs/Passes.html
docs/</p>
<p>ProgrammersManual.html docs/Projects.html
docs/ReleaseNotes.html
docs/SourceLeve</p>
<p>lDebugging.html docs/Stacker.html docs/SystemLibrary.html
docs/TableGenFundament</p>
<p>als.html docs/TestingGuide.html docs/UsingLibraries.html
docs/WritingAnLLVMBacke</p>
<p>nd.html docs/WritingAnLLVMPass.html docs/doxygen.css
docs/llvm.css
'docs/*.gif'</p>
<p>'docs/*.jpg' docs/CommandGuide
/var/tmp/llvm-root/usr/share/doc/llvm-2.2</p>
<p><b>cp: cannot stat `docs/*.gif': No such file or
directory</b></p>
<p><b>cp: cannot stat `docs/*.jpg': No such file or
directory</b></p>
<p>error: Bad exit status from /var/tmp/rpm-tmp.95285
(%doc)</p>
<p>Processing files: llvm-debuginfo-2.2-0</p>
<p>Provides: LLVMHello.so.0.0.0.debug</p>
<p><b>Requires(rpmlib): rpmlib(CompressedFileNames)
<= 3.0.4-1
rpmlib(PayloadFilesHave Prefix) <= 4.0-1</b></p>
<p> </p>
<p> </p>
<p>RPM build errors:</p>
<p> Bad exit status from /var/tmp/rpm-tmp.95285
(%doc)</p>
<p> </p>
<p><b>[invain@fc6 ~]$ gcc34 -v</b></p>
<p>Reading specs from
/usr/lib/gcc/i386-redhat-linux/3.4.6/specs</p>
<p>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</p>
<p>Thread model: posix</p>
<p>gcc version 3.4.6 20060404 (Red Hat 3.4.6-4)</p>
<p> </p>
</td>
</tr>
</table>
<p> </p>
<p>Thanks you for reading my report about llvm-2.2 source. </p>
<p>Have Nice day...</p>
<p> </p>
<p>end of line. </p>
<p> </p>
<p> </p><p> </p><!--SP:geunsik.lim-->
<p> </p>
<p> </p>
<p> </p>
<p> </p>
-------------------------------------------------------------------------
<p>
Lim,GeunSik , ELS Part , Linux Technology Group , Software
Laboratories</p>
<p>TEL : +82-31-277-7502
FAX : +82-31-277-7730
</p>
<p>e-Mail : 1) geunsik.lim@samsung.com</p>
<p>
2) leemgs<a
href="mailto:invain@ssm.samsung.co.kr">@ssm.samsung.co.kr</a>
</p>
<p>
MSN : <a href="mailto:invain@hanmail.net"
target="_blank">invain@hanmail.net</a>
</p>
<p>ICQ : 46455794<br>gTalker : leemgs@gamil.com</p>
<p>HomePage: <a
href="http://invain.servehttp.com/invain/me/"
target="_blank">http://invain.servehttp.com/invain/me/</a>
</p>
<p>¢À ²ÞÀ» °è¼Ó °£Á÷Çϰí ÀÖÀ¸¸é ¹Ýµå½Ã ½ÇÇöÇÒ ±âȸ°¡ ¿Â´Ù. - ±«Å× -
</p>
<p>
-------------------------------------------------------------------------</p><!--geunsik.lim:EP--></BODY></HTML>
Chris Lattner
2008-Feb-14 05:35 UTC
[LLVMdev] Bug Report - Broken versions of FC6-GCC.4.1.1 when complie llvm-2.2 source
On Feb 13, 2008, at 5:15 PM, 임근식 wrote:> 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. >Hi, please be aware that you're using some known-broken compilers. Please don't use any compilers on this list: http://llvm.org/docs/GettingStarted.html#brokengcc -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080213/7978ad57/attachment.html>