Problem with echo_server / echo_client samples running in QEMU (No rule to make target 'qemu' ?)


Priyanka
 

Hello


While testing with recent zephyr (master branch),

echo_server and echo_client samples running in QEMU fail.


Both "make server" and "make client" fail for QEMU with error

No rule to make target 'qemu'.  


I did "git pull" today, after that I get the error "No rule to make target 'qemu'.

Whereas with 3 weeks older master branch, this error was not there, but even earlier the sample "echo-client" failed to compile with errors such as "undefined reference to net_app_send_pkt" as shown below.


I want to test IPv6 over 802.15.4 so I test the sample application

zephyr/samples/net/ieee802154/qemu

Here are the steps to show my test set up:


Terminal 1  echo_server

-----------------------------------

I modified makefile to  do "make server" else I also tried "make BOARD=qemu_x86 CONF_FILE=prj_qemu_802154.conf server"


zephyr/samples/net/echo_server$ make server
or
zephyr/samples/net/echo_server$ make CONF_FILE=prj_qemu_802154.conf server

rm -f /tmp/ip-stack-server.in /tmp/ip-stack-server.out /tmp/ip-stack-client.in \
      /tmp/ip-stack-client.out
mkfifo /tmp/ip-stack-server.in
mkfifo /tmp/ip-stack-server.out
ln /tmp/ip-stack-server.in /tmp/ip-stack-client.out
ln /tmp/ip-stack-server.out /tmp/ip-stack-client.in
make[1]: Entering directory 'Downloads/zephyr-LTI/zephyr'
make[2]: Entering directory '/Downloads/zephyr-LTI/zephyr/samples/net/echo_server/outdir/qemu_x86'
  CHK     include/generated/generated_dts_board.conf
  UPD     include/generated/generated_dts_board.conf
  CHK     include/generated/generated_dts_board.conf
make[2]: *** No rule to make target 'qemu'.  Stop.
make[2]: Leaving directory '/Downloads/zephyr-LTI/zephyr/samples/net/echo_server/outdir/qemu_x86'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory 'Downloads/zephyr-LTI/zephyr'

Terminal 2 echo_client
--------------------------------
Moreover, echo_client fails to compile with following errors

zephyr/samples/net/echo_client$ make CONF_FILE=prj_qemu_802154.conf

In function `prepare_send_pkt':
/zephyr/samples/net/echo_client/src/echo-client.c:111: undefined reference to `net_app_get_net_pkt'
src/built-in.o: In function `send_udp_data':
zephyr/samples/net/echo_client/src/udp.c:160: undefined reference to `net_app_send_pkt'
src/built-in.o: In function `connect_udp':
/zephyr/samples/net/echo_client/src/udp.c:262: undefined reference to `net_app_init_udp_client'
zephyr/samples/net/echo_client/src/udp.c:273: undefined reference to `net_app_set_cb'
/zephyr/samples/net/echo_client/src/udp.c:302: undefined reference to `net_app_connect'
src/built-in.o: In function `stop_udp':
zephyr/samples/net/echo_client/src/udp.c:360: undefined reference to `net_app_close'
/zephyr/samples/net/echo_client/src/udp.c:361: undefined reference to `net_app_release'


zephyr/samples/net/echo_client$ make CONF_FILE=prj_qemu_802154.conf client

make[1]: Entering directory 'Downloads/zephyr-LTI/zephyr'
make[2]: Entering directory 'Downloads/zephyr-LTI/zephyr/samples/net/echo_client/outdir/qemu_x86'
  CHK     include/generated/generated_dts_board.conf
  UPD     include/generated/generated_dts_board.conf
  CHK     include/generated/generated_dts_board.conf
make[2]: *** No rule to make target 'qemu'.  Stop.
make[2]: Leaving directory 'Downloads/zephyr-LTI/zephyr/samples/net/echo_client/outdir/qemu_x86'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory 'Downloads/zephyr-LTI/zephyr'

Best,
Priyanka



Join users@lists.zephyrproject.org to automatically receive all group messages.