Hello, Ted> __main is supposed to be inside hello.bc, so why can�t lli find it?No, it shouldn't be there. On targets, which lacks init sections (for example, all win-based, like mingw & cygwin) __main is used to call static constructors and relevant stuff. The call to __main is assembled early in the main routine before the actual code will be executed. I'll try to look into this problem today. -- WBR, Anton Korobeynikov
I am *more* than willing to believe it's an environment/configuration error, so if you can't repro it, let's assume the problem is somewhere on my end. FWIW, I took the 2.2 release from the website, the GCC 4.2 release from the website, and tried to follow the README.LLVM directions (build LLVM 2.2, configure gcc in the obj directory, make and make install), then ran through the hello steps. Only the lli step fails. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com> -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Anton Korobeynikov > Sent: Friday, February 15, 2008 3:52 AM > To: LLVM Developers Mailing List > Subject: Re: [LLVMdev] Question on link error > > Hello, Ted > > > __main is supposed to be inside hello.bc, so why cant lli find it? > No, it shouldn't be there. On targets, which lacks init sections (for > example, all win-based, like mingw & cygwin) __main is used to call > static constructors and relevant stuff. > > The call to __main is assembled early in the main routine before the > actual code will be executed. I'll try to look into this problem today. > > -- > WBR, Anton Korobeynikov > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: > 2/14/2008 10:28 AM > >No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.6/1280 - Release Date: 2/15/2008 9:00 AM
Any insights? Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com> -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Anton Korobeynikov > Sent: Friday, February 15, 2008 3:52 AM > To: LLVM Developers Mailing List > Subject: Re: [LLVMdev] Question on link error > > Hello, Ted > > > __main is supposed to be inside hello.bc, so why cant lli find it? > No, it shouldn't be there. On targets, which lacks init sections (for > example, all win-based, like mingw & cygwin) __main is used to call > static constructors and relevant stuff. > > The call to __main is assembled early in the main routine before the > actual code will be executed. I'll try to look into this problem today. > > -- > WBR, Anton Korobeynikov > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: > 2/14/2008 10:28 AM > >No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.9/1291 - Release Date: 2/21/2008 11:05 AM