Thanks,
I am getting a compile error when running tool_chain_rump script. I am running this on Ubuntu 15.10. It looks as if there is a stricter compiler finding optimization problems. How can we get around this ?
Regards, Adrian
./mkremote.sh fsck_ext2fs rumpsrc/sbin/fsck_ext2fs/fsck_ext2fs.ro rump/lib/libutil.a ( cd rumpsrc/sbin/fsck_ffs && /home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumptools/rumpmake LIBCRT0= BUILDRUMP_CFLAGS="-fPIC -std=gnu99 -D__NetBSD__ " fsck_ffs.ro ) compile fsck_ffs/inode.o inode.c: In function 'swap_dinode2': inode.c:378:21: error: iteration 2u invokes undefined behavior [-Werror=aggressive-loop-optimizations] dp2->di_extb[j] = bswap64(dp2->di_extb[j]); ^ inode.c:377:4: note: containing loop for (j = 0; j < (UFS_NDADDR + UFS_NIADDR + UFS_NXADDR); j++) ^ inode.c: In function 'swap_dinode1': inode.c:362:22: error: iteration 12u invokes undefined behavior [-Werror=aggressive-loop-optimizations] dp1->di_db[j] = bswap32(dp1->di_db[j]); ^ inode.c:361:4: note: containing loop for (j = 0; j < (UFS_NDADDR + UFS_NIADDR); j++) ^ cc1: all warnings being treated as errors
*** Failed target: inode.o *** Failed command: /home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumptools/bin/x86_64--netbsd-gcc -O2 -g -fPIC -std=gnu99 -D__NetBSD__ -std=gnu99 -Werror -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-maybe-uninitialized -I/home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumptools/compat/include -D__NetBSD__ -Ulinux -U__linux -U__linux__ -U__gnu_linux__ -DHAVE_POSIX_MEMALIGN -DHAVE_PTHREAD_SETNAME_2 --sysroot=/home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumptools/dest -I/home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumpsrc/sbin/fsck -I/home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumpsrc/sbin/dump -DPROGRESS -DWAPBL_DEBUG_PRINT=0 -c inode.c *** Error code 1
Stop. nbmake[2]: stopped in /home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun/rumpsrc/sbin/fsck_ffs Makefile:128: recipe for target 'rumpsrc/sbin/fsck_ffs/fsck_ffs.ro' failed make[1]: *** [rumpsrc/sbin/fsck_ffs/fsck_ffs.ro] Error 1 make[1]: Leaving directory '/home/adrian/genode-vbox_usb_run/tmp/contrib/rumprun' ../tool/tool_chain_rump:86: recipe for target 'contrib/rumprun/.compile.tag' failed make: *** [contrib/rumprun/.compile.tag] Error 2
On 17.12.2015 14:30, Alexander Boettcher wrote:
On 17.12.2015 14:10, a3an wrote:
Thanks Alex. Another question: how do I build tool_chain_rump ?
In the genode repository in the tool/ directory you find a script called "tool_chain_rump"
If you just invoke it without parameters in a shell it tells you what to do, e.g. how to build and install.
Cheers,
Alex.
genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main