Re: error on building tool_chain_rump

2017-08-14 Thread Christian Helmuth
Hello Jan-Ralph,

given your reasonable current host Linux I expect an incompatibility
of Rump with your recent host tool chain. I did not try this myself
but the following error seems to hint that.

On Mon, Aug 14, 2017 at 05:16:54PM +, Jan-Ralph Sroka wrote:
> 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]);

You may install an older (version 4?) Ubuntu GCC, generate appropriate
symbolic links for gcc etc. in a distinct directory, add that
directory to the front of your PATH environment variable, and rebuild
tool_chain_rump.

Regards
-- 
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main


error on building tool_chain_rump

2017-08-14 Thread Jan-Ralph Sroka

Hello everyone,

following the release-notes 14.05 I try to build the tool_chain_rump.

I am running Ubuntu 16.04 LTS.

Maybe someone can point out my mistake or refer me to a file with  
instructions since i was not able to

find one myself.


I get the following Output:

./mkremote.sh fsck_ext2fs rumpsrc/sbin/fsck_ext2fs/fsck_ext2fs.ro  
rump/lib/libutil.a
( cd rumpsrc/sbin/fsck_ffs &&  
/home/j-r/UNI/genode/contrib/rumprun/rumptools/rumpmake LIBCRT0=  
BUILDRUMP_CFLAGS="-fPIC -std=gnu99 -D__NetBSD__ " fsck_ffs.ro )

compile  fsck_ffs/dir.o
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/j-r/UNI/genode/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/j-r/UNI/genode/contrib/rumprun/rumptools/compat/include  
-D__NetBSD__ -Ulinux -U__linux -U__linux__ -U__gnu_linux__  
-DHAVE_POSIX_MEMALIGN -DHAVE_PTHREAD_SETNAME_2  
--sysroot=/home/j-r/UNI/genode/contrib/rumprun/rumptools/dest  
-I/home/j-r/UNI/genode/contrib/rumprun/rumpsrc/sbin/fsck  
-I/home/j-r/UNI/genode/contrib/rumprun/rumpsrc/sbin/dump -DPROGRESS  
-DWAPBL_DEBUG_PRINT=0 -c inode.c

*** Error code 1

Stop.
nbmake[2]: stopped in  
/home/j-r/UNI/genode/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/j-r/UNI/genode/contrib/rumprun'
tool/tool_chain_rump:86: recipe for target  
'contrib/rumprun/.compile.tag' failed

make: *** [contrib/rumprun/.compile.tag] Error 2



Thank you in advance,
Jan




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main