-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is autogen.sh missing in mtcp directory? #52
Comments
Can you please share the complete error log? Maybe sharing the config.log file should be enough. I tested mtcp right now and it did not show me any errors. Can you try updating your |
Hello, Sorry, I cannot provide you with a log file since I deleted it. ./configure: line 3625: `ACX_PTHREAD( It was solved by running autogen.sh after installing autoconf. Thanks, |
Hello, I was running autogen.sh and face the same error as duoh. Here is my configu.log file content. May I ask what is the right distribution to compile mtcp? I am using fedora 22 and I compile dpdk inside mtcp is fine. Thanks in advance Regards This file contains any messages produced by compilers while It was created by mtcp configure 3, which was $ ./configure --with-dpdk-lib=/home/test/mtcp/dpdk ---------Platform.---------hostname = localhost.localdomain /usr/bin/uname -p = x86_64 /bin/arch = x86_64 PATH: /usr/lib64/ccache -----------Core tests.-----------configure:2399: checking for gcc configure:2675: $? = 0 ----------------Cache variables.----------------ac_cv_c_compiler_gnu=yes -----------------Output variables.-----------------ACLOCAL='' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 2 |
I only tested the configure script in Ubuntu 14.04. But it should work for Fedora distributions as well. $ autoreconf -ivf You may need to install some extra packages such as m4, autoconf, automake (if you haven't already). Please let me know if this works. |
Hi ajamshed, Thanks I got this error and what to do next? Thanks in advance [test@localhost mtcp]$ autoreconf -ivf |
If I do this command And make, I get following error [test@localhost mtcp]$ make |
Looks like AX_PTHREAD macro is the problem. It is causing more problems than I expected. Can you please comment lines 18~23 in configure.ac and repeat the following commands.
This should solve this problem. I will make the changes in the github version soon. |
Hi ajamshed, Thanks It works fine now. But I run make and have lots of error. Here is the log Regards make all-recursive |
Not sure why it is showing linking errors. All these functions actually exist in the mtcp core library. I see that you are using gcc version 5.3.1. Can you please try compiling with gcc-4.x (e.g. 4.8) and see if these errors go away. I will test mTCP compilation with an upgraded gcc version as well. |
Hi ajamshed, I plan to reformat my hard drive and install ubuntu-14.04.4-server-am64.iso. Is it ok to get mTCP working? Do you know any url to install right packages to get mTCP working? Thanks in advance |
Okay.. I tested mTCP on Fedora 22 and saw that gcc-5.3 does print out a lot of errors. It turns out that gcc-5.3 has upgraded its default standard to std11: http://www.gnu.org/software/gcc/gcc-5/porting_to.html which means that all inline function headers should have extern linkages. You will have to do a little bit more manual labor. Please open all header files present in mtcp/src/include/ directory and pre-append extern with all inline function prototypes. This should remove all linking errors. I will update the code in my next commit. You don't need to reformat your hard disk. |
Hi ajamshed, Thank you When will be your next commit? Thanks in advance |
Hi ajamshed, I followed your instructions and I also need to put extern in the c source code. Regards |
I have just committed my patch. Let me know if you still face this issue. |
Hi ajamshed, Thank you very much. I installed a fresh copy fedora 23 and I follow the initial instruction on this page http://pseudo.co.de/dpdk-on-an-intel-nuc/ and readme of https://github.com/eunyoung14/mtcp and it compiles :-) Regards |
Hi ajamshed, I got No Ethernet port! running the example server app. I followed the instruction https://github.com/eunyoung14/mtcp I first sudo ifdown enp11s0f0 ( my_network_card_interface) Here is my network information enp11s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 enp11s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 I modified the epserver.conf and use my network card interface enp11s0f0 in the file and I got this error. Here is the conf file. The underlying I/O module you want to use. Pleaseenable only one out of the two.#io = psio No. of cores setting (enabling this option will overridethe `cpu' config for those applications that acceptnum_cores as command line arguments)e.g. in case ./epserver is executed with `-N 4', themtcp core will still invoke 8 mTCP threads if thefollowing line is uncommented.#num_cores = 8 Number of memory channels per processor socket (dpdk-only)num_mem_ch = 4 Enable multi-process support (under development)#multiprocess = 0 master Used port (please adjust accordingly)#------ PSIO ports -------# Maximum concurrency per coremax_concurrency = 10000 Maximum number of socket buffers per coreSet this to small value if there are many idle connectionsmax_num_buffers = 10000 Receive buffer size of socketsrcvbuf = 8192 Send buffer size of socketssndbuf = 8192 TCP timeout seconds(tcp_timeout = -1 can disable the timeout check)tcp_timeout = 30 TCP timewait secondstcp_timewait = 0 Interface to print stats (please adjust accordingly)You can enable multiple ports in separate lines#------ PSIO ports -------# ####################################################### [test@localhost example]$ sudo ./epserver -p /home/test/www -f epserver.conf -N 8 Configuration updated by mtcp_setconf().Loading mtcp configuration from : epserver.conf |
[test@localhost tools]$ sudo ./dpdk_nic_bind.py --status Network devices using DPDK-compatible driver0000:0b:00.0 'NetXtreme II BCM5709 Gigabit Ethernet' drv=igb_uio unused=bnx2 Network devices using kernel driver0000:0b:00.1 'NetXtreme II BCM5709 Gigabit Ethernet' if=enp11s0f1 drv=bnx2 unused=igb_uio Active Other network devices |
Hi ajamshed, I checked my network card NetXtreme II BCM5709 Gigabit Ethernet of ibm x3650 m3 is not in the dpdk support list http://dpdk.org/doc/nics. My question is if I got the message "No Ethernet port!" does that mean my network card is not supported? Thanks in advance |
Hi ajamshed, I never use mTcp dpdk before. Is following log shows that my network card is working with mtcp dpdk? Thanks in advance [test@localhost example]$ sudo ./epserver -p /home/test/www -f epserver.conf -N 1 Configuration updated by mtcp_setconf().Loading mtcp configuration from : epserver.conf NICs to print statistics: enp7s0Interfaces: Number of NIC queues: 1Loading routing configurations from : config/route.conf Destination: 10.0.0.0/24, Mask: 255.255.255.0, Masked: 10.0.0.0, Route: ifdx-0Loading ARP table from : config/arp.conf (blank)Initializing port 0... PMD: eth_em_rx_queue_setup(): sw_ring=0x7f3ad970f900 hw_ring=0x7f3ad970fe00 dma_addr=0x600d0fe00 Checking link status...........................done |
goodmanwed, You guessed it right: NetXtreme II BCM5709 won't work with DPDK. That's why mTCP is also unable to
shows that mTCP was unable to identify the MAC address of the interface. Can you try mTCP with Intel Ethernet adapter? |
Hi ajamshed, Thank you You are right. The ethernet on ibm x3650 m3 does not work with mTcp. My supermicro 1u server has two intel 82574L ethernet ports and I tried and I got epserver running and working :-) I am very happy. Thank you for your support. I can learn the source code of Mtcp now. :-) Regards |
Hi,
It seems autogen.sh is required for building mtcp.
Is it your intention?
Best regards,
Wiriyang
The text was updated successfully, but these errors were encountered: