All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yukun Du <yukundu@yeah.net>
To: Ian Campbell <ian.campbell@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: 答复:  [stubdom] Makefile configuration failed for user-defined studbom
Date: Thu, 14 Jan 2016 21:27:37 +0800	[thread overview]
Message-ID: <5697A293.C15082.19947@m132-177.yeah.net> (raw)
In-Reply-To: <1452769562.2185.23.camel@citrix.com>


[-- Attachment #1.1: Type: text/plain, Size: 3936 bytes --]

Hi, Ian
	The error message is this:
```
make[2]: Leaving directory `/usr/src/xen-4.6.0/stubdom/libvmi'
make[1]: Leaving directory `/usr/src/xen-4.6.0/stubdom/libvmi'
DEF_CPPFLAGS="-isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/include/posix -isystem /usr/src/xen-4.6.0/stubdom/../tools/xenstore/include  -isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/include/x86 -isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/include/posix -isystem /usr/src/xen-4.6.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.3/include -isystem /usr/src/xen-4.6.0/stubdom/lwip-x86_64/src/include -isystem /usr/src/xen-4.6.0/stubdom/lwip-x86_64/src/include/ipv4 -isystem /usr/src/xen-4.6.0/stubdom/libvmi/libvmi -I/usr/src/xen-4.6.0/stubdom/include -I/usr/src/xen-4.6.0/stubdom/../xen/include" DEF_CFLAGS="-mno-red-zone -O1 -fno-omit-frame-pointer  -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -fno-stack-protector -fno-exceptions" DEF_LDFLAGS="-nostdlib -L/usr/src/xen-4.6.0/stubdom/cross-root-x86_64/x86_64-xen-elf/lib" MINIOS_CONFIG="/usr/src/xen-4.6.0/stubdom/libvmi/minios.cfg" make DESTDIR= -C /usr/src/xen-4.6.0/stubdom/../extras/mini-os OBJ_DIR=/usr/src/xen-4.6.0/stubdom/mini-os-x86_64-libvmi APP_OBJS=/usr/src/xen-4.6.0/stubdom/libvmi/example/process-list.a
make[1]: Entering directory `/usr/src/xen-4.6.0/extras/mini-os'
make[1]: *** No rule to make target `/usr/src/xen-4.6.0/stubdom/libvmi/example/process-list.a', needed by `/usr/src/xen-4.6.0/stubdom/mini-os-x86_64-libvmi/mini-os_app.o'.  Stop.
make[1]: Leaving directory `/usr/src/xen-4.6.0/extras/mini-os'
make: *** [libvmi-stubdom] Error 2
```

Obviously, It has finished the makefile in /xen/stubdom/libvmi, then it goes wrong. 

I have tried to add related rules, such as `ar process-list.a process-list.o`, in the Makefile in directory libvmi, but it did not work correctly.

And I didn’t find any related rules in mini-os directory Makefile.

Where should I add the rules to run this correctly? Thanks a lot.



发件人: Ian Campbell
发送时间: 2016年1月14日 19:06
收件人: Du Yukun; xen-devel@lists.xen.org
主题: Re: [Xen-devel] [stubdom] Makefile configuration failed for user-defined studbom

On Thu, 2016-01-14 at 17:08 +0800, Du Yukun wrote:
> Hi, everyone!
>         I am trying to add my own program as a stubdom. I failed several
> times with the Makefile. I have add my own party in xen/stubdom/Makefile.
> It works fine except the mini-os section saying that no rule for target
> APP_OBJS

Please post the actual error message.

Please also post in plain text and avoid wrapping (since it is important to
the Makefile syntax). In fact it might be best to post your modifications
(all of them) as a patch to remove any ambiguity.

> I only modified the xen/stubdom/Makefile and configure.ac. Can anyone
> help me with this problem. Thanks a lot.
>     
> ~~~~~~~~~~~~~~~~~~~~ I added this part into the Makefile in stubdom
>  .PHONY: libvmi-stubdom
> libvmi-stubdom: mini-os-$(XEN_TARGET_ARCH)-libvmi libxc libvmi
>     DEF_CPPFLAGS="$(TARGET_CPPFLAGS)" DEF_CFLAGS="$(TARGET_CFLAGS)"
> DEF_LDFLAGS="$(TARGET_LDFLAGS)"
> MINIOS_CONFIG="$(CURDIR)/libvmi/minios.cfg" $(MAKE    ) DESTDIR= -C
> $(MINI_OS) OBJ_DIR=$(CURDIR)/$<
> APP_OBJS=$(CURDIR)/libvmi/example/process-list.a
> ~~~~~~~~~~~~~~~~~~~~
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel


[-- Attachment #1.2: Type: text/html, Size: 8961 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-01-14 13:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-14  9:08 [stubdom] Makefile configuration failed for user-defined studbom Du Yukun
2016-01-14 11:06 ` Ian Campbell
2016-01-14 13:27   ` Yukun Du [this message]
2016-01-14 13:56     ` 答复: " Ian Campbell
2016-01-14 14:42       ` Du Yukun
2016-01-14 14:58         ` Ian Campbell

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=5697A293.C15082.19947@m132-177.yeah.net \
    --to=yukundu@yeah.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.