Skip to contentSkip to conversation

Xen makefiles wants to write to /..d ?

DISCUSSION Håkon Alstadheim 2 participants 2 messages May 28, 2016 – May 30, 2016

lore
Share & tools
lore
#0 lore raw

I confess I'm a rank amateur, but I'm trying to get xen-4.7.0_rc* rammed into a gentoo package, so that I can try it out and still switch back to 4.6 again as quickly as possible.

I don't have it working yet, but aside from that, gentoo build sandbox complains about several instances like this:
--

F: fopen_wr
S: deny
P: /..d
A: /..d
R: /..d
C: /usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/cc1 -quiet -nostdinc -I /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include
-I /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/asm-x86/mach-generic -I /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/asm-x86/mach-default -MMD /dev/null.d -MF /..d -MQ /dev/null -D __ASSEMBLY__ -D BUILD_ID -D
__XEN__ -D __OBJECT_FILE__="" -D VERBOSE -D CONFIG_FRAME_POINTER -D __OBJECT_LABEL__=include$ -include /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/xen/config.h -include /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/xen/config.h
- -quiet -dumpbase - -m64 -msoft-float -mtune=generic -march=x86-64 -auxbase-strip /dev/null -g -g -O1 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wredundant-decls -Wno-pointer-arith
-Wnested-externs -fno-strict-aliasing -fno-builtin -fno-common -fno-optimize-sibling-calls -fno-omit-frame-pointer -fno-stack-protector -fno-exceptions -o -

Signature · 15 lines
From what I can *guess* it has something to do with compiling to
/dev/null to generate build dependencies, and this snippet from
Rules.mk: "CFLAGS-y += -MMD -MF $(@D)/.$(@F).d"
--
Building outside sandbox does create that file in the root of my file
system, but it seems kind of fishy, and the resulting build seems to
have loads of weird problems.

So; am I doing something wrong, or is there a bug in the build system ?


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 48 lines
Quoted 1 line
Quoted 1 line · On 28.05.16 at 14:12, <[email protected]> wrote:

I confess I'm a rank amateur, but I'm trying to get xen-4.7.0_rc* rammed into a gentoo package, so that I can try it out and still switch back to 4.6 again as quickly as possible.

I don't have it working yet, but aside from that, gentoo build sandbox complains about several instances like this:
--

F: fopen_wr
S: deny
P: /..d
A: /..d
R: /..d
C: /usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.3/cc1 -quiet -nostdinc -I /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include -I /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/ asm-x86/mach-generic
-I /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/ asm-x86/mach-default
-MMD /dev/null.d -MF /..d -MQ /dev/null -D __ASSEMBLY__ -D BUILD_ID -D __XEN__ -D __OBJECT_FILE__="" -D VERBOSE -D CONFIG_FRAME_POINTER -D __OBJECT_LABEL__=include$ -include /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/ xen/config.h
-include /var/tmp/portage/app-emulation/xen-4.7.0_rc4/work/xen-4.7.0-rc4/xen/include/ xen/config.h
- -quiet -dumpbase - -m64 -msoft-float -mtune=generic -march=x86-64

(quoted diff) +0 -6
-auxbase-strip /dev/null -g -g -O1 -Wall -Wstrict-prototypes
-Wdeclaration-after-statement -Wno-unused-but-set-variable
-Wno-unused-local-typedefs -Wredundant-decls -Wno-pointer-arith
-Wnested-externs -fno-strict-aliasing -fno-builtin -fno-common
-fno-optimize-sibling-calls -fno-omit-frame-pointer -fno-stack-protector
-fno-exceptions -o -
Signature · 10 lines
-- 
From what I can *guess* it has something to do with compiling to
/dev/null to generate build dependencies, and this snippet from
Rules.mk: "CFLAGS-y += -MMD -MF $(@D)/.$(@F).d"
--
Building outside sandbox does create that file in the root of my file
system, but it seems kind of fishy, and the resulting build seems to
have loads of weird problems.

So; am I doing something wrong, or is there a bug in the build system ?

Bug in the build system, see
http://lists.xenproject.org/archives/html/xen-devel/2016-05/msg02822.html
for a fix.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel