xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Singapore Citizen Mr. Teo En Ming (Zhang Enming)" <singapore.mr.teo.en.ming@gmail.com>
To: singapore.mr.teo.en.ming@gmail.com
Cc: Ian Campbell <ian.campbell@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Error Compiling Xen-unstable 4.4 Changeset 27214
Date: Sun, 14 Jul 2013 10:50:43 +0800	[thread overview]
Message-ID: <51E21203.4060509@gmail.com> (raw)
In-Reply-To: <51E20FC3.7030203@gmail.com>

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)

  reply	other threads:[~2013-07-14  2:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-13  5:36 Error Compiling Xen-unstable 4.4 Changeset 27214 Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-13  9:45 ` Ian Campbell
2013-07-13 10:30   ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-13 11:30     ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-14  2:41       ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-14  2:50         ` Singapore Citizen Mr. Teo En Ming (Zhang Enming) [this message]
2013-07-14  3:20         ` Matthew Daley
2013-07-14  5:57           ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)
2013-07-14 10:44             ` Singapore Citizen Mr. Teo En Ming (Zhang Enming)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51E21203.4060509@gmail.com \
    --to=singapore.mr.teo.en.ming@gmail.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).