Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-13 05:36 UTC
Error Compiling Xen-unstable 4.4 Changeset 27214
Hi, I was trying to compiling Xen-unstable 4.4 changeset 27214 but ran into the following problem: checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-xen-elf checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log'' for more details. make[2]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libc.a] Error 77 make[2]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs27214/stubdom'' make[1]: *** [install-stubdom] Error 2 make[1]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs27214'' make: *** [world] Error 2 Could you help me solve this problem? Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
On Sat, 2013-07-13 at 13:36 +0800, Singapore Citizen Mr. Teo En Ming checking for C compiler default output file name... configure: error: C> compiler cannot create executablesYour compiler appears to be broken. This most likely has nothing to do with Xen.> See `config.log'' for more details.I bet you''ll find some clues in here. Ian.
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-13 10:30 UTC
Re: Error Compiling Xen-unstable 4.4 Changeset 27214
On 13/07/2013 17:45, Ian Campbell wrote:> On Sat, 2013-07-13 at 13:36 +0800, Singapore Citizen Mr. Teo En Ming > checking for C compiler default output file name... configure: error: C >> compiler cannot create executables > Your compiler appears to be broken. This most likely has nothing to do > with Xen. > >> See `config.log'' for more details. > I bet you''ll find some clues in here. > > Ian. > >Dear Ian, So I should reinstall gcc? I checked config.log but there''s nothing. Configure exited with 0 status. Attached is my config.log in the stubdom directory. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-13 11:30 UTC
Re: Error Compiling Xen-unstable 4.4 Changeset 27214
On 13/07/2013 18:30, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> On 13/07/2013 17:45, Ian Campbell wrote: >> On Sat, 2013-07-13 at 13:36 +0800, Singapore Citizen Mr. Teo En Ming >> checking for C compiler default output file name... configure: error: C >>> compiler cannot create executables >> Your compiler appears to be broken. This most likely has nothing to do >> with Xen. >> >>> See `config.log'' for more details. >> I bet you''ll find some clues in here. >> >> Ian. >> >> > > Dear Ian, > > So I should reinstall gcc? I checked config.log but there''s nothing. > Configure exited with 0 status. Attached is my config.log in the > stubdom directory. >Dear Ian, But I can compile and install Linux kernel 3.10.0 successfully. So it shouldn''t be the case where my compiler is broken. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-14 02:41 UTC
Re: Error Compiling Xen-unstable 4.4 Changeset 27214
On 13/07/2013 19:30, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> On 13/07/2013 18:30, Singapore Citizen Mr. Teo En Ming (Zhang Enming) > wrote: >> On 13/07/2013 17:45, Ian Campbell wrote: >>> On Sat, 2013-07-13 at 13:36 +0800, Singapore Citizen Mr. Teo En Ming >>> checking for C compiler default output file name... configure: error: C >>>> compiler cannot create executables >>> Your compiler appears to be broken. This most likely has nothing to do >>> with Xen. >>> >>>> See `config.log'' for more details. >>> I bet you''ll find some clues in here. >>> >>> Ian. >>> >>> >> >> Dear Ian, >> >> So I should reinstall gcc? I checked config.log but there''s nothing. >> Configure exited with 0 status. Attached is my config.log in the >> stubdom directory. >> > > Dear Ian, > > But I can compile and install Linux kernel 3.10.0 successfully. So it > shouldn''t be the case where my compiler is broken. >Hi, I have just downloaded the official stable xen-4.3.0.tar.gz. With the official stable xen-4.3.0, I also encountered the same problem. checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log'' for more details. make[2]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libc.a] Error 77 make[2]: Leaving directory `/home/teo-en-ming/xen-4.3.0/stubdom'' make[1]: *** [install-stubdom] Error 2 make[1]: Leaving directory `/home/teo-en-ming/xen-4.3.0'' make: *** [world] Error 2 I have attached config.log. Please refer to it. Please advise what is wrong as I have totally no clue. Thank you very much. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-14 02:50 UTC
Re: Error Compiling Xen-unstable 4.4 Changeset 27214
On 14/07/2013 10:41, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> On 13/07/2013 19:30, Singapore Citizen Mr. Teo En Ming (Zhang Enming) > wrote: >> On 13/07/2013 18:30, Singapore Citizen Mr. Teo En Ming (Zhang Enming) >> wrote: >>> On 13/07/2013 17:45, Ian Campbell wrote: >>>> On Sat, 2013-07-13 at 13:36 +0800, Singapore Citizen Mr. Teo En Ming >>>> checking for C compiler default output file name... configure: >>>> error: C >>>>> compiler cannot create executables >>>> Your compiler appears to be broken. This most likely has nothing to do >>>> with Xen. >>>> >>>>> See `config.log'' for more details. >>>> I bet you''ll find some clues in here. >>>> >>>> Ian. >>>> >>>> >>> >>> Dear Ian, >>> >>> So I should reinstall gcc? I checked config.log but there''s nothing. >>> Configure exited with 0 status. Attached is my config.log in the >>> stubdom directory. >>> >> >> Dear Ian, >> >> But I can compile and install Linux kernel 3.10.0 successfully. So it >> shouldn''t be the case where my compiler is broken. >> > > Hi, > > I have just downloaded the official stable xen-4.3.0.tar.gz. With the > official stable xen-4.3.0, I also encountered the same problem. > > checking for C compiler default output file name... configure: error: > C compiler cannot create executables > See `config.log'' for more details. > make[2]: *** [cross-root-x86_64/x86_64-xen-elf/lib/libc.a] Error 77 > make[2]: Leaving directory `/home/teo-en-ming/xen-4.3.0/stubdom'' > make[1]: *** [install-stubdom] Error 2 > make[1]: Leaving directory `/home/teo-en-ming/xen-4.3.0'' > make: *** [world] Error 2 > > I have attached config.log. Please refer to it. > > Please advise what is wrong as I have totally no clue. > > Thank you very much. >Hi, I ran ./configure in the stubdom directory. This is what I get. teo-en-ming@intel-core-i5-4430-desktop:~/xen-4.3.0/stubdom$ ./configure checking for wget... /usr/bin/wget checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for cmake... /usr/bin/cmake Will build the following stub domains: ioemu-stubdom pv-grub xenstore-stubdom vtpm-stubdom vtpmmgr-stubdom configure: creating ./config.status config.status: creating ../config/Stubdom.mk I think the problem lies in... checking for suffix of executables... That is, the configure script cannot determine the suffix of executables, that''s why it says "C compiler cannot create executables". But how do I overcome the problem? Do I have to hack the configure script? -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
On Sun, Jul 14, 2013 at 2:41 PM, Singapore Citizen Mr. Teo En Ming (Zhang Enming)> I have attached config.log. Please refer to it.This is stubdom/config.log. What does stubdom/newlib-x86_64/config.log look like?
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-14 05:57 UTC
Re: Error Compiling Xen-unstable 4.4 Changeset 27214
On 14/07/2013 11:20, Matthew Daley wrote:> On Sun, Jul 14, 2013 at 2:41 PM, Singapore Citizen Mr. Teo En Ming > (Zhang Enming) >> I have attached config.log. Please refer to it. > This is stubdom/config.log. What does stubdom/newlib-x86_64/config.log > look like? >Hi Matthew, I have attached config.log from stubdom/newlib-x86_64. -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-14 10:44 UTC
Re: Error Compiling Xen-unstable 4.4 Changeset 27214
On 14/07/2013 13:57, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> On 14/07/2013 11:20, Matthew Daley wrote: >> On Sun, Jul 14, 2013 at 2:41 PM, Singapore Citizen Mr. Teo En Ming >> (Zhang Enming) >>> I have attached config.log. Please refer to it. >> This is stubdom/config.log. What does stubdom/newlib-x86_64/config.log >> look like? >> > Hi Matthew, > > I have attached config.log from stubdom/newlib-x86_64. >Hi All, I have solved the problem. I just have to execute everything as the root user and the error "configure: error: C compiler cannot create executable" disappears. $ sudo -s -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)
Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-Jul-14 10:44 UTC
Re: [Xen-devel] Error Compiling Xen-unstable 4.4 Changeset 27214
On 14/07/2013 13:57, Singapore Citizen Mr. Teo En Ming (Zhang Enming) wrote:> On 14/07/2013 11:20, Matthew Daley wrote: >> On Sun, Jul 14, 2013 at 2:41 PM, Singapore Citizen Mr. Teo En Ming >> (Zhang Enming) >>> I have attached config.log. Please refer to it. >> This is stubdom/config.log. What does stubdom/newlib-x86_64/config.log >> look like? >> > Hi Matthew, > > I have attached config.log from stubdom/newlib-x86_64. >Hi All, I have solved the problem. I just have to execute everything as the root user and the error "configure: error: C compiler cannot create executable" disappears. $ sudo -s -- Yours sincerely, Singapore Citizen Mr. Teo En Ming (Zhang Enming)