Open ytxing opened 4 years ago
What architecture are you on (what is the result of 'uname -i')?
It seems to be a libc issue; perhaps make sure that both 'libc6-dev-i386' and 'libc6-dev-amd64' packages are installed, and try again?
I had the same issue while trying to package net-next-sim / libos.
nixos has a tool that indexes installed filenames (akin to apt-file
but with their disposition once installed) and it seems on linux there is no machine/cdefs.h (or maybe on older libcs ?). Looks like a bsd file. liblinux.so is already built by the time I have this error: I wonder if/how we can disable building the rump thingy @thehajime ?
Hello, It seems that even Ubuntu 16 is packed with new libraries and gcc (though may not be latest), because 3-4 months ago I was trying hard to install dce in Ubuntu 16, but go similar errors. Then I was able to install dce in Vmware Ubuntu 16, and it worked.
I had the same issue while trying to package net-next-sim / libos. nixos has a tool that indexes installed filenames (akin to
apt-file
but with their disposition once installed) and it seems on linux there is no machine/cdefs.h (or maybe on older libcs ?). Looks like a bsd file. liblinux.so is already built by the time I have this error: I wonder if/how we can disable building the rump thingy @thehajime ?
Yep the file liblinux.so is already there. Is it usable?
What architecture are you on (what is the result of 'uname -i')?
It seems to be a libc issue; perhaps make sure that both 'libc6-dev-i386' and 'libc6-dev-amd64' packages are installed, and try again?
uname -r and I get 4.4.0-93-generic x86_64 ( -i ) 'libc6-dev-i386' is installed successfully but 'libc6-dev-amd64' is not. It seems like that amd64 is not avaliable for my machine. Still get the same information as above.
There are a few things I'd like to suggest based on reading your console output. 1) It appears that you tried to configure dce-ns3-dev only, but your build is failing on net-next-nuse-4.4.0. The latter is not part of dce-ns3-dev, it is part of dce-linux-dev. If you have been reconfiguring, your bakefile.xml might be munged. I recommend that you delete these files and directories: build, source, and bakefile.xml, and start over. 2) Check that you have the file it is complaining about: /usr/include/x86_64-linux-gnu/sys/cdefs.h 3) Also, it looks like you are building as root (in /root); I don't know whether this will affect your environment paths as opposed to building as an unprivileged user. There is no need to build DCE as root; I suggest that you try as an unprivileged user.
I have successfully done this on my Ubuntu 16.04 machine this morning:
$ bake.py configure -e net-next-nuse-4.4.0
$ bake.py download
$ bake.py build
If I try with the dce-ns3-dev target, it will eventually fail to build ns-3-dce (due to a separate issue) but it will not fail as you describe above.
Hi! Thanks for advice!
I get another question here (or should I open an issue somewhere else): There are several examples in the dce code such as dce-mptcp-lte-wifi.cc and I want to run them. What am I supposed to do? Like should I use dce-linux-dev and change the edition of net-next-nuse because there is an mptcp-trunk-libos branch?
The wiki seems to help but I don't know how it can work with ns3-dce instead of being used alone.
Have a nice day.
Hi,
Actually I am trying to build DCE1.10+NS3.30+mptcp_trunk_libos. When building mptcp_trunk_libos I got the same problem here:
CC rump/lib/librumpuser/rumpuser_sp.o
In file included from rump/lib/librumpuser/rumpuser_port.h:70:0,
from rump/lib/librumpuser/rumpuser_sp.c:37:
./rump/sys/sys/cdefs.h:58:27: fatal error: machine/cdefs.h: No such file or directory
compilation terminated.
Makefile.rump:79: recipe for target 'rump/lib/librumpuser/rumpuser_sp.o' failed
make[2]: *** [rump/lib/librumpuser/rumpuser_sp.o] Error 1
Makefile:88: recipe for target 'librumpserver.so' failed
make[1]: *** [librumpserver.so] Error 2
arch/lib/Makefile:193: recipe for target 'arch/lib/tools' failed
make: *** [arch/lib/tools] Error 2
libc6-dev-i386 and libc are installed but machine/cdefs.h is nowhere to find.
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/evbmips/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/evbarm/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/evbarm64/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/powerpc/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/sparc/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/evbppc/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/amd64/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/sparc64/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/i386/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/arm/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/mips/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/arch/aarch64/include/cdefs.h
./home/ytxing/mptcp_libos/arch/lib/tools/rump/sys/sys/cdefs.h
./usr/include/sys/cdefs.h
./usr/include/x86_64-linux-gnu/sys/cdefs.h
Here are all the cdefs.h in my ubuntu 16.04 but none of them seems to be right. Is there any chance I can build this? Maybe a suggested lower version ubuntu system? Again, HELP PLZ :0
Description of the problem
I am trying to install ns-3-dce with the guidance of the manual. Successfully run
bake.py configure -e dce-ns3-dev
bake.py check
bake.py show
bake.py download
but error happened when runningbake.py build -vvv
. Got the out put like thisThen I try to do
make defconfig OPT=yes ARCH=sim
andmake library OPT=yes ARCH=sim
in the net-next-nuse-4.4.0 directory, but only gotands
I don't know why it goes like this and HELP PLZ.