{"action":"opened","issue":{"url":"https://api.github.com/repos/CTSRD-CHERI/cheribsd/issues/107","labels_url":"https://api.github.com/repos/CTSRD-CHERI/cheribsd/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/CTSRD-CHERI/cheribsd/issues/107/comments","events_url":"https://api.github.com/repos/CTSRD-CHERI/cheribsd/issues/107/events","html_url":"https://github.com/CTSRD-CHERI/cheribsd/issues/107","id":128422613,"number":107,"title":"METALOG is not a valid mtree file for makefs (error at ./usr/libcheri/.debug)","user":{"login":"RichardsonAlex","id":4019307,"avatar_url":"https://avatars.githubusercontent.com/u/4019307?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardsonAlex","html_url":"https://github.com/RichardsonAlex","followers_url":"https://api.github.com/users/RichardsonAlex/followers","following_url":"https://api.github.com/users/RichardsonAlex/following{/other_user}","gists_url":"https://api.github.com/users/RichardsonAlex/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardsonAlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardsonAlex/subscriptions","organizations_url":"https://api.github.com/users/RichardsonAlex/orgs","repos_url":"https://api.github.com/users/RichardsonAlex/repos","events_url":"https://api.github.com/users/RichardsonAlex/events{/privacy}","received_events_url":"https://api.github.com/users/RichardsonAlex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-24T20:25:24Z","updated_at":"2016-01-24T20:25:24Z","closed_at":null,"body":"When I build a disk image for QEMU (`cd /home/alr48 && makefs -M 1077936128 -B be -F /home/alr48/cheri/output/rootfs/METALOG -N /home/alr48/cheri/cheribsd/etc /home/alr48/cheri/output/disk.image /home/alr48/cheri/output/rootfs`) I get the following error: \r\n```\r\nmakefs: ./usr/libcheri/.debug: missing directory in specification\r\nmakefs: failed at line 4306 of the specification\r\n```\r\nIn order to successfully build the disk image I need to move the `./usr/libcheri/.debug` line to the top of the file. Not sure why this is necessary but it fixes the build for me:\r\n```\r\n@@ -121,6 +121,7 @@\r\n ./usr/lib/libxo type=dir uname=root gname=wheel mode=0755\r\n ./usr/lib/libxo/encoder type=dir uname=root gname=wheel mode=0755\r\n ./usr/libcheri type=dir uname=root gname=wheel mode=0755\r\n+./usr/libcheri/.debug type=dir mode=0755 tags=debug\r\n ./usr/libdata type=dir uname=root gname=wheel mode=0755\r\n ./usr/libdata/gcc type=dir uname=root gname=wheel mode=0755\r\n ./usr/libdata/ldscripts type=dir uname=root gname=wheel mode=0755\r\n@@ -4434,7 +4435,6 @@\r\n ./usr/lib//libhelloworld_p.a type=file uname=root gname=wheel mode=0444 size=6614\r\n ./usr/include/cheri//helloworld.h type=file uname=root gname=wheel mode=0444 size=2370\r\n ./usr/libcheri/helloworld.co.0 type=file uname=root gname=wheel mode=0555 size=77984\r\n-./usr/libcheri/.debug/ type=dir mode=0755 tags=debug\r\n ./usr/libcheri/.debug/helloworld.co.0.debug type=file uname=root gname=wheel mode=0444 size=67656 tags=debug\r\n ./usr/libcheri//helloworld.co.0.dump type=file uname=root gname=wheel mode=0444 size=1049489\r\n ./usr/lib//librpcsec_gss.a type=file uname=root gname=wheel mode=0444 size=53040\r\n```\r\n\r\n\r\nThese are the commands executed by my build script (https://github.com/RichardsonAlex/cheri-scripts)\r\n```bash\r\ncd /home/alr48/cheri/qemu && git checkout HEAD po/ \r\ncd /home/alr48/cheri/qemu && git pull --rebase \r\ncd /home/alr48/cheri/output/qemu-build && /home/alr48/cheri/qemu/configure --target-list=cheri-softmmu --disable-linux-user --disable-linux-aio --disable-kvm --disable-xen --extra-cflags=-g --prefix=/home/alr48/cheri/output/host-tools \r\ncd /home/alr48/cheri/output/qemu-build && gmake -j16 \r\ncd /home/alr48/cheri/output/qemu-build && gmake install \r\ncd /home/alr48/cheri/binutils && git pull --rebase \r\ncd /home/alr48/cheri/output/binutils-build && /home/alr48/cheri/binutils/configure --target=mips64 --disable-werror --prefix=/home/alr48/cheri/output/host-tools \r\ncd /home/alr48/cheri/output/binutils-build && make -j16 \r\ncd /home/alr48/cheri/output/binutils-build && make install \r\ncd /home/alr48/cheri/llvm && git pull --rebase \r\ncd /home/alr48/cheri/llvm/tools/clang && git pull --rebase \r\ncd /home/alr48/cheri/output/llvm-build && cmake /home/alr48/cheri/llvm -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++37 -DCMAKE_C_COMPILER=clang37 -DLLVM_DEFAULT_TARGET_TRIPLE=cheri-unknown-freebsd -DCMAKE_INSTALL_PREFIX=/home/alr48/cheri/output/host-tools -DDEFAULT_SYSROOT=/home/alr48/cheri/output/cheribsd-obj/mips.mips64/home/alr48/cheri/cheribsd/tmp \r\ncd /home/alr48/cheri/output/llvm-build && ninja -j16 \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stdint.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stdalign.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stdarg.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stdatomic.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stddef.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stdbool.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/stdnoreturn.h \r\nrm /home/alr48/cheri/output/llvm-build/lib/clang/3.8.0/include/limits.h \r\ncd /home/alr48/cheri/cheribsd && git pull --rebase \r\n# Set PATH to /home/alr48/cheri/output/host-tools/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/alr48/bin\r\nrm -rf /home/alr48/cheri/output/rootfs \r\ncd /home/alr48/cheri/cheribsd && make CHERI=256 CHERI_CC=/home/alr48/cheri/output/llvm-build/bin/clang -DDB_FROM_SRC -DNO_ROOT -DNO_WERROR DESTDIR=/home/alr48/cheri/output/rootfs KERNCONF=CHERI_MALTA64 buildworld -j16 \r\ncd /home/alr48/cheri/cheribsd && make CHERI=256 CHERI_CC=/home/alr48/cheri/output/llvm-build/bin/clang -DDB_FROM_SRC -DNO_ROOT -DNO_WERROR DESTDIR=/home/alr48/cheri/output/rootfs KERNCONF=CHERI_MALTA64 buildkernel -j16 \r\ncd /home/alr48/cheri/cheribsd && make CHERI=256 CHERI_CC=/home/alr48/cheri/output/llvm-build/bin/clang -DDB_FROM_SRC -DNO_ROOT -DNO_WERROR DESTDIR=/home/alr48/cheri/output/rootfs KERNCONF=CHERI_MALTA64 installworld \r\ncd /home/alr48/cheri/cheribsd && make CHERI=256 CHERI_CC=/home/alr48/cheri/output/llvm-build/bin/clang -DDB_FROM_SRC -DNO_ROOT -DNO_WERROR DESTDIR=/home/alr48/cheri/output/rootfs KERNCONF=CHERI_MALTA64 installkernel \r\ncd /home/alr48/cheri/cheribsd && make CHERI=256 CHERI_CC=/home/alr48/cheri/output/llvm-build/bin/clang -DDB_FROM_SRC -DNO_ROOT -DNO_WERROR DESTDIR=/home/alr48/cheri/output/rootfs KERNCONF=CHERI_MALTA64 distribution \r\nmakefs -M 1077936128 -B be -F /home/alr48/cheri/output/rootfs/METALOG -N /home/alr48/cheri/cheribsd/etc /home/alr48/cheri/output/disk.image /home/alr48/cheri/output/rootfs \r\n```\r\n\r\nstderr is empty except for a few messages like this: `[1]: \"/home/alr48/cheri/cheribsd/Makefile.inc1\" line 122: warning: ctsrd/lib not added to SUBDIR list.  See UPDATING 20141121.` as well as the following messages during installworld:\r\n```\r\nchflags: /home/alr48/cheri/output/rootfs/usr/bin/chpass: Operation not permitted\r\nchflags: /home/alr48/cheri/output/rootfs/usr/bin/passwd: Operation not permitted\r\n```"}}