From: Yukun Du Subject: =?utf-8?b?562U5aSNOiAgW3N0dWJkb21dIE1ha2VmaWxlIGNv?= =?utf-8?q?nfiguration_failed_for_user-defined_studbom?= Date: Thu, 14 Jan 2016 21:27:37 +0800 Message-ID: <5697A293.C15082.19947@m132-177.yeah.net> References: <1159b47e.19fa.1523f6491c3.Coremail.yukundu@yeah.net> <1452769562.2185.23.camel@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8541799719020012851==" Return-path: In-Reply-To: <1452769562.2185.23.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============8541799719020012851== Content-Type: multipart/alternative; boundary="_A3923196-F0B4-492A-932B-30C901F4041B_" --_A3923196-F0B4-492A-932B-30C901F4041B_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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=3D"-isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/inclu= de -D__MINIOS__ -DHAVE_LIBC -isystem /usr/src/xen-4.6.0/stubdom/../extras/m= ini-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-redh= at-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 -i= system /usr/src/xen-4.6.0/stubdom/libvmi/libvmi -I/usr/src/xen-4.6.0/stubdo= m/include -I/usr/src/xen-4.6.0/stubdom/../xen/include" DEF_CFLAGS=3D"-mno-r= ed-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -fno-reorder-blocks= -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing -std=3Dgnu99 = -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set= -variable -Wno-unused-local-typedefs -fno-stack-protector -fno-exceptions= " DEF_LDFLAGS=3D"-nostdlib -L/usr/src/xen-4.6.0/stubdom/cross-root-x86_64/x= 86_64-xen-elf/lib" MINIOS_CONFIG=3D"/usr/src/xen-4.6.0/stubdom/libvmi/minio= s.cfg" make DESTDIR=3D -C /usr/src/xen-4.6.0/stubdom/../extras/mini-os OBJ_= DIR=3D/usr/src/xen-4.6.0/stubdom/mini-os-x86_64-libvmi APP_OBJS=3D/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/exam= ple/process-list.a', needed by `/usr/src/xen-4.6.0/stubdom/mini-os-x86_64-l= ibvmi/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 goe= s wrong.=20 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=E2=80=99t find any related rules in mini-os directory Makefile. Where should I add the rules to run this correctly? Thanks a lot. =E5=8F=91=E4=BB=B6=E4=BA=BA: Ian Campbell =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2016=E5=B9=B41=E6=9C=8814=E6=97=A5 19= :06 =E6=94=B6=E4=BB=B6=E4=BA=BA: Du Yukun; xen-devel@lists.xen.org =E4=B8=BB=E9=A2=98: 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! > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0I am trying to add my own= program=C2=A0as a=C2=A0stubdom. I failed several > times with the Makefile. I have add my own party in xen/stubdom/Makefile. > It works fine=C2=A0except the mini-os section saying that no rule for tar= get > 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. > =C2=A0=C2=A0=C2=A0=C2=A0 > ~~~~~~~~~~~~~~~~~~~~ I added this part into the Makefile in stubdom > =C2=A0.PHONY: libvmi-stubdom > libvmi-stubdom: mini-os-$(XEN_TARGET_ARCH)-libvmi libxc libvmi > =C2=A0=C2=A0=C2=A0 DEF_CPPFLAGS=3D"$(TARGET_CPPFLAGS)" DEF_CFLAGS=3D"$(TA= RGET_CFLAGS)" > DEF_LDFLAGS=3D"$(TARGET_LDFLAGS)" > MINIOS_CONFIG=3D"$(CURDIR)/libvmi/minios.cfg" $(MAKE=C2=A0=C2=A0=C2=A0 ) = DESTDIR=3D -C > $(MINI_OS) OBJ_DIR=3D$(CURDIR)/$< > APP_OBJS=3D$(CURDIR)/libvmi/example/process-list.a > ~~~~~~~~~~~~~~~~~~~~ > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel --_A3923196-F0B4-492A-932B-30C901F4041B_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Hi, Ian

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 The error message is this:

```

make[2]: Leavin= g directory `/usr/src/xen-4.6.0/stubdom/libvmi'

make[1]: Leaving directory `/usr/src/xen-4.6.0/stubd= om/libvmi'

DEF_CPPFLAGS= =3D"-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= =C2=A0 -isystem /usr/src/xen-4.6.0/stubdom/../extras/mini-os/include/x86 -i= system /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/st= ubdom/../extras/mini-os/include/posix -isystem /usr/src/xen-4.6.0/stubdom/c= ross-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/in= clude -isystem /usr/src/xen-4.6.0/stubdom/lwip-x86_64/src/include/ipv4 -isy= stem /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=3D&quo= t;-mno-red-zone -O1 -fno-omit-frame-pointer=C2=A0 -m64 -mno-red-zone -fno-r= eorder-blocks -fno-asynchronous-unwind-tables -m64 -g -fno-strict-aliasing = -std=3Dgnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-u= nused-but-set-variable -Wno-unused-local-typedefs=C2=A0=C2=A0 -fno-stack-pr= otector -fno-exceptions" DEF_LDFLAGS=3D"-nostdlib -L/usr/src/xen-= 4.6.0/stubdom/cross-root-x86_64/x86_64-xen-elf/lib" MINIOS_CONFIG=3D&q= uot;/usr/src/xen-4.6.0/stubdom/libvmi/minios.cfg" make DESTDIR=3D -C /= usr/src/xen-4.6.0/stubdom/../extras/mini-os OBJ_DIR=3D/usr/src/xen-4.6.0/st= ubdom/mini-os-x86_64-libvmi APP_OBJS=3D/usr/src/xen-4.6.0/stubdom/libvmi/ex= ample/process-list.a

make= [1]: Entering directory `/usr/src/xen-4.6.0/extras/mini-os'

make[1]: *** No rule to make target `/us= r/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'.=C2=A0 Stop.=

make[1]: Leaving directory `/us= r/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 rul= es, such as `ar process-list.a process-list.o`, in the Makefile in director= y libvmi, but it did not work correctly.

 

And I didn=E2=80=99t find any related rules in mini-os directory M= akefile.

 

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

<= span lang=3DEN-US style=3D'font-size:11.0pt'> 

 


=E5=8F=91=E4=BB=B6=E4=BA=BA: Ian Campbell=
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: = 2016=E5=B9=B41=E6=9C=8814=E6=97=A5 19:06=E6=94=B6=E4=BB=B6=E4=BA=BA: Du Yukun; xen-devel@lists.xen.org
= =E4=B8=BB=E9=A2=98: Re: [X= en-devel] [stubdom] Makefile configuration failed for user-defined studbom<= /span>

 

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 s= everal

> times with th= e 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

<= span lang=3DEN-US>> APP_OBJS

 

Please post the actual error message.

 

Please also post in plain text and avoid wrapping (since it is imp= ortant to

the Makefile sy= ntax). In fact it might be best to post your modifications

(all of them) as a patch to remove any am= biguity.

 

> I only modified th= e xen/stubdom/Makefile and configure.ac. Can anyone

> help me with this problem. Thanks a lot.

>    &nbs= p;

> ~~~~~~~~~~~~~~~~~= ~~~ I added this part into the Makefile in stubdom

>  .PHONY: libvmi-stubdom

> libvmi-stubdom: mini-os-$(XEN_TARGE= T_ARCH)-libvmi libxc libvmi

>     DEF_CPPFLAGS=3D"$(TARGET_CPPFLAGS)" DE= F_CFLAGS=3D"$(TARGET_CFLAGS)"

> DEF_LDFLAGS=3D"$(TARGET_LDFLAGS)"

<= p class=3DMsoNormal>> MINIOS_CONFIG=3D"$(CURDIR)= /libvmi/minios.cfg" $(MAKE    ) DESTDIR=3D -C

> $(MINI_OS) OBJ_DIR=3D$(CURDIR= )/$<

> APP_OBJS=3D$= (CURDIR)/libvmi/example/process-list.a

> ~~~~~~~~~~~~~~~~~~~~

> _______________________________________________<= /p>

> Xen-devel mailing list

> Xen-devel@lists.xen.org<= /span>

> http://lists.xen.org= /xen-devel

 

= --_A3923196-F0B4-492A-932B-30C901F4041B_-- --===============8541799719020012851== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8541799719020012851==--