mbaddeley / usdn

µSDN: A low-overhead SDN stack and embedded SDN controller for Contiki.
Other
13 stars 8 forks source link

When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the `make` instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not update it yet to 4.7.3 #3

Closed ghost closed 5 years ago

ghost commented 5 years ago

user@instant-contiki:~/usdn/examples/sdn/controller$ make using saved target 'exp5438' obj_exp5438/stats.d= mkdir obj_exp5438 CC ../../../apps/multiflow/multiflow.c CC ../../../apps/atom/atom.c CC ../../../apps/atom/atom-buffer.c CC ../../../apps/atom/atom-net.c CC ../../../apps/atom/atom-sb-usdn.c CC ../../../apps/atom/atom-sb-rpl.c CC ../../../apps/atom/atom-app-route-sp.c CC ../../../apps/atom/atom-app-route-rpl.c CC ../../../apps/atom/atom-app-join-cfg.c CC ../../../platform/exp5438/./msp430.c CC ../../../core/dev/leds.c CC ../../../platform/exp5438/./watchdog.c CC ../../../platform/exp5438/./spix.c CC ../../../dev/cc2420/cc2420.c CC ../../../platform/exp5438/./cc2420-arch.c CC ../../../platform/exp5438/./rtimer-arch.c CC ../../../platform/exp5438/./node-id.c CC ../../../platform/exp5438/./leds-arch.c CC ../../../platform/exp5438/./uart1x.c CC ../../../platform/exp5438/./lcd.c CC ../../../platform/exp5438/./hal_lcd.c CC ../../../platform/exp5438/./hal_lcd_fonts.c CC ../../../platform/exp5438/./duty-cycle-scroller.c CC ../../../core/cfs/cfs-ram.c CC ../../../platform/exp5438/./uart1-putchar.c CC ../../../core/lib/me.c CC ../../../core/lib/me_tabs.c CC ../../../core/dev/slip.c CC ../../../core/lib/crc16.c CC ../../../platform/exp5438/./flash.c CC ../../../platform/exp5438/./clock.c CC ../../../cpu/msp430/./lpm.c CC ../../../core/loader/elfloader.c CC ../../../core/loader/elfloader-msp430.c CC ../../../core/loader/symtab.c CC ../../../core/net/sdn/sdn.c CC ../../../core/net/sdn/sdn-cd.c CC ../../../core/net/sdn/sdn-conf.c CC ../../../core/net/sdn/sdn-ext-header.c CC ../../../core/net/sdn/sdn-ft.c CC ../../../core/net/sdn/sdn-packetbuf.c CC ../../../core/net/sdn/usdn/usdn-adapter.c CC ../../../core/net/sdn/usdn/usdn-driver.c CC ../../../core/net/sdn/usdn/usdn-engine.c CC ../../../core/sys/arg.c CC ../../../core/sys/autostart.c CC ../../../core/sys/compower.c CC ../../../core/sys/ctimer.c CC ../../../core/sys/energest.c CC ../../../core/sys/etimer.c CC ../../../core/sys/log-ng.c CC ../../../core/sys/mt.c CC ../../../core/sys/process.c CC ../../../core/sys/procinit.c CC ../../../core/sys/rtimer.c CC ../../../core/sys/stimer.c CC ../../../core/sys/timer.c CC ../../../core/dev/nullradio.c CC ../../../core/dev/serial-line.c CC ../../../core/lib/aes-128.c CC ../../../core/lib/assert.c CC ../../../core/lib/ccm-star.c CC ../../../core/lib/gcr.c CC ../../../core/lib/ifft.c CC ../../../core/lib/list.c CC ../../../core/lib/memb.c CC ../../../core/lib/mmem.c CC ../../../core/lib/petsciiconv.c obj_exp5438/stats.o= CC ../../../core/lib/random.c CC ../../../core/lib/ringbuf.c CC ../../../core/lib/ringbufindex.c CC ../../../core/lib/sensors.c CC ../../../core/lib/settings.c CC ../../../core/lib/trickle-timer.c CC ../../../core/net/ipv6/sicslowpan.c CC ../../../core/net/ipv6/uip6.c CC ../../../core/net/ipv6/uip-ds6.c CC ../../../core/net/ipv6/uip-ds6-nbr.c CC ../../../core/net/ipv6/uip-ds6-route.c CC ../../../core/net/ipv6/uip-icmp6.c CC ../../../core/net/ipv6/uip-nd6.c CC ../../../core/net/ipv6/websocket.c CC ../../../core/net/ipv6/websocket-http-client.c CC ../../../core/net/ip/dhcpc.c CC ../../../core/net/ip/ip64-addr.c CC ../../../core/net/ip/psock.c CC ../../../core/net/ip/resolv.c CC ../../../core/net/ip/simple-udp.c CC ../../../core/net/ip/slipdev.c CC ../../../core/net/ip/tcpip.c CC ../../../core/net/ip/tcp-socket.c CC ../../../core/net/ip/udp-socket.c CC ../../../core/net/ip/uip-debug.c CC ../../../core/net/ip/uiplib.c CC ../../../core/net/ip/uip-nameserver.c CC ../../../core/net/ip/uip-packetqueue.c CC ../../../core/net/ip/uip-split.c CC ../../../core/net/ip/uip-udp-packet.c CC ../../../core/net/rpl/rpl.c CC ../../../core/net/rpl/rpl-dag.c CC ../../../core/net/rpl/rpl-dag-root.c CC ../../../core/net/rpl/rpl-ext-header.c CC ../../../core/net/rpl/rpl-icmp6.c CC ../../../core/net/rpl/rpl-mrhof.c CC ../../../core/net/rpl/rpl-nbr-policy.c CC ../../../core/net/rpl/rpl-ns.c CC ../../../core/net/rpl/rpl-of0.c CC ../../../core/net/rpl/rpl-sdn.c CC ../../../core/net/rpl/rpl-timers.c CC ../../../core/net/linkaddr.c CC ../../../core/net/link-stats.c CC ../../../core/net/nbr-table.c CC ../../../core/net/net-debug.c CC ../../../core/net/netstack.c CC ../../../core/net/packetbuf.c CC ../../../core/net/queuebuf.c CC ../../../core/net/mac/csma.c CC ../../../core/net/mac/frame802154.c CC ../../../core/net/mac/frame802154e-ie.c CC ../../../core/net/mac/framer-802154.c CC ../../../core/net/mac/framer-nullmac.c CC ../../../core/net/mac/mac.c CC ../../../core/net/mac/mac-sequence.c CC ../../../core/net/mac/nordc.c CC ../../../core/net/mac/nullmac.c CC ../../../core/net/mac/nullrdc.c CC ../../../core/net/mac/nullrdc-noframer.c CC ../../../core/net/mac/phase.c CC ../../../core/net/mac/contikimac/contikimac.c CC ../../../core/net/mac/contikimac/contikimac-framer.c CC ../../../core/net/llsec/anti-replay.c CC ../../../core/net/llsec/ccm-star-packetbuf.c CC ../../../core/net/llsec/nullsec.c cp ../../../tools/empty-symbols.c symbols.c cp ../../../tools/empty-symbols.h symbols.h CC symbols.c CC ../../../core/net/sdn/sdn-stats.c AR contiki-exp5438.a msp430-ar: obj_exp5438/print-stats.o: No such file or directory make: *** [contiki-exp5438.a] Error 1

mbaddeley commented 5 years ago

Are you using the 20-bit compiler here? You also need to have added the compiler location to your $PATH.

--- edit ---

So I just read the title of this issue properly. Yes, you 100% need 4.7.3! :) This is the 20-bit compiler that the exp5438 nodes need.

--- edit again ---

If you've already tried to update to 4.7.3, and this didn't work, then it's probably because you either...

ghost commented 5 years ago

the second one that u mentioned " First did sudo apt install gcc-msp430", i didn't do it . i will try again the steps as you mentioned hopefully no errors :) Thank you very much :)

mbaddeley commented 5 years ago

Any problems let me know

ghost commented 5 years ago

Hi Michael, I hope you are doing well. I feel sorry for bothering you again :). I have had the same errors. I will tell you what the steps I did. 1- I create a new folder in opt by using this command ----> sudo mkdir /opt/compilers. 2- I extract the msp430-gcc-4.7.3 and move it in /opt/compilers. 3- For add the location in /etc/environment by using this command ----> sudo gedit /etc/ environment , and inside i put this path---> PATH="/opt/compilers/mspgcc-4.7.3/MSP430/bin/" 4- In $HOME, I edited the .bashrc file by using this path----->export PATH=$PATH:/opt/compilers/mspgcc-4.7.3/bin

Thank you very much, Best Regards,

mbaddeley commented 5 years ago

You don't need step 3. Remove that.

Just extract msp430-gcc-4.7.3 into any location

/home/mike/compilers/mspgcc-4.7.3/bin

and then add this to your ~/.bashrc

export PATH=$PATH:/home/mike/Compilers/mspgcc-4.7.3/bin

Then either restart your machine or

source ~/.bashrc

--- edit ---

Also, are you running Ubuntu 64?

ghost commented 5 years ago

yes iam running ubuntu 64. i will try again thank you very much

ghost commented 5 years ago

sorry again, but the version does not update into 4.7.3

mbaddeley commented 5 years ago

Can you please run: msp430-gcc --version

and

which msp430-gcc

and post the results here

ghost commented 5 years ago

screenshot from 2019-02-15 19-36-42

mbaddeley commented 5 years ago

and the other command?

which msp430-gcc

also please run

echo $PATH

ghost commented 5 years ago

sorry about the second one zehra

ghost commented 5 years ago

did you mean this one?

mbaddeley commented 5 years ago

No, just run those two commands in the command line

mbaddeley commented 5 years ago

I think one of the issues is you are using instant-contiki, which has msp430-gcc pre installed. It is still using the preinstalled one rather than using the new one you have extracted. We need to find out where the preinstalled one is then delete it. Or at the very least remove it from your path.

mbaddeley commented 5 years ago

Essentially...

echo $PATH

will show you something like

/home/mike/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/mike/Compilers/mspgcc-4.7.3/bin

but you will probably have two msp430-gcc locations in there. You can do a quick fix by taking out the old msp430-gcc using

export PATH=<copy-and-paste your path but without the old msp430-gcc>

I'd recommend using a full linux distro to be honest, particularly if you are going to do any development

ghost commented 5 years ago

ok, i will use full linux. To be honest, a week i had have same issue. Thank you very much really grateful for your helping.

ghost commented 5 years ago

you are right when i command echo $PATH, the same result u got.

mbaddeley commented 5 years ago
  1. Clean ubuntu64
  2. Install java 8 ppa http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/
  3. Download and extract the 4.7.3 compiler
  4. Add it to your $PATH
  5. Clone uSDN
  6. Follow the rest of the instructions for make.

It SHOULD now work! Any more issues, let me know and I'll try to help.

Sorry, I have never tried using the instant contiki vm with uSDN before. The instructions have been based on a full clean ubuntu64 install

ghost commented 5 years ago

Thank you very much , actually I will do in full Linux better because one issue in instant contikti must take care about memory because it is limited and directly crash if u try to download.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Friday, February 15, 2019 20:10 To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

  1. Clean ubuntu64
  2. Install java 8 ppa http://tipsonubuntu.com/2016/07/31/install-oracle-java-8-9-ubuntu-16-04-linux-mint-18/
  3. Download and extract the 4.7.3 compiler
  4. Add it to your $PATH
  5. Clone uSDN
  6. Follow the rest of the instructions for make.

It SHOULD now work! Any more issues, let me know and I'll try to help.

Sorry, I have never tried using the instant contiki vm with uSDN before. The instructions have been based on a full clean ubuntu64 install

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464126281, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIeKEJR5VeQ2EcBOMyCM05FL_LzhRks5vNunxgaJpZM4a6UE9.

ghost commented 5 years ago

Hi Michael, Thank you very much, I did in full Linux, and the version of msp430-gcc works perfect. However, I have an issue when Iam running "make" or another command ------->"make TARGET=exp5438" in the controller as well in nodes as shown in the picture below . Thank you in advance,

mbaddeley commented 5 years ago

You've not included the picture?

ghost commented 5 years ago

[Image] Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Tuesday, February 19, 2019 1:35:05 AM To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

You've not included the picture?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464906923, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntITEihm6N-Tpc79wEMgQnXL1Delchks5vOyqZgaJpZM4a6UE9.

mbaddeley commented 5 years ago

Still no image...

ghost commented 5 years ago

Ok I will copy as text

Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Tuesday, February 19, 2019 01:40 To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

Still no image...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464908400, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIUjx7Az3vxjEdcVddo7PlCbIQeQiks5vOyvRgaJpZM4a6UE9.

ghost commented 5 years ago

zehra@zehra-Lenovo-IdeaPad-Y510P:~/usdn/examples/sdn/controller$ make using saved target 'exp5438' obj_exp5438/stats.d= mkdir obj_exp5438 CC ../../../apps/multiflow/multiflow.c CC ../../../apps/atom/atom.c CC ../../../apps/atom/atom-buffer.c CC ../../../apps/atom/atom-net.c CC ../../../apps/atom/atom-sb-usdn.c CC ../../../apps/atom/atom-sb-rpl.c CC ../../../apps/atom/atom-app-route-sp.c CC ../../../apps/atom/atom-app-route-rpl.c CC ../../../apps/atom/atom-app-join-cfg.c CC ../../../platform/exp5438/./msp430.c CC ../../../core/dev/leds.c CC ../../../platform/exp5438/./watchdog.c CC ../../../platform/exp5438/./spix.c CC ../../../dev/cc2420/cc2420.c CC ../../../platform/exp5438/./cc2420-arch.c CC ../../../platform/exp5438/./rtimer-arch.c CC ../../../platform/exp5438/./node-id.c CC ../../../platform/exp5438/./leds-arch.c CC ../../../platform/exp5438/./uart1x.c CC ../../../platform/exp5438/./lcd.c CC ../../../platform/exp5438/./hal_lcd.c CC ../../../platform/exp5438/./hal_lcd_fonts.c CC ../../../platform/exp5438/./duty-cycle-scroller.c CC ../../../core/cfs/cfs-ram.c CC ../../../platform/exp5438/./uart1-putchar.c CC ../../../core/lib/me.c CC ../../../core/lib/me_tabs.c CC ../../../core/dev/slip.c CC ../../../core/lib/crc16.c CC ../../../platform/exp5438/./flash.c CC ../../../platform/exp5438/./clock.c CC ../../../cpu/msp430/./lpm.c CC ../../../core/loader/elfloader.c CC ../../../core/loader/elfloader-msp430.c CC ../../../core/loader/symtab.c CC ../../../core/net/sdn/sdn.c CC ../../../core/net/sdn/sdn-cd.c CC ../../../core/net/sdn/sdn-conf.c CC ../../../core/net/sdn/sdn-ext-header.c CC ../../../core/net/sdn/sdn-ft.c CC ../../../core/net/sdn/sdn-packetbuf.c CC ../../../core/net/sdn/usdn/usdn-adapter.c CC ../../../core/net/sdn/usdn/usdn-driver.c CC ../../../core/net/sdn/usdn/usdn-engine.c CC ../../../core/sys/arg.c CC ../../../core/sys/autostart.c CC ../../../core/sys/compower.c CC ../../../core/sys/ctimer.c CC ../../../core/sys/energest.c CC ../../../core/sys/etimer.c CC ../../../core/sys/log-ng.c CC ../../../core/sys/mt.c CC ../../../core/sys/process.c CC ../../../core/sys/procinit.c CC ../../../core/sys/rtimer.c CC ../../../core/sys/stimer.c CC ../../../core/sys/timer.c CC ../../../core/dev/nullradio.c CC ../../../core/dev/serial-line.c CC ../../../core/lib/aes-128.c CC ../../../core/lib/assert.c CC ../../../core/lib/ccm-star.c CC ../../../core/lib/gcr.c CC ../../../core/lib/ifft.c CC ../../../core/lib/list.c CC ../../../core/lib/memb.c CC ../../../core/lib/mmem.c CC ../../../core/lib/petsciiconv.c obj_exp5438/stats.o= CC ../../../core/lib/random.c CC ../../../core/lib/ringbuf.c CC ../../../core/lib/ringbufindex.c CC ../../../core/lib/sensors.c CC ../../../core/lib/settings.c CC ../../../core/lib/trickle-timer.c CC ../../../core/net/ipv6/sicslowpan.c CC ../../../core/net/ipv6/uip6.c CC ../../../core/net/ipv6/uip-ds6.c CC ../../../core/net/ipv6/uip-ds6-nbr.c CC ../../../core/net/ipv6/uip-ds6-route.c CC ../../../core/net/ipv6/uip-icmp6.c CC ../../../core/net/ipv6/uip-nd6.c CC ../../../core/net/ipv6/websocket.c CC ../../../core/net/ipv6/websocket-http-client.c CC ../../../core/net/ip/dhcpc.c CC ../../../core/net/ip/ip64-addr.c CC ../../../core/net/ip/psock.c CC ../../../core/net/ip/resolv.c CC ../../../core/net/ip/simple-udp.c CC ../../../core/net/ip/slipdev.c CC ../../../core/net/ip/tcpip.c CC ../../../core/net/ip/tcp-socket.c CC ../../../core/net/ip/udp-socket.c CC ../../../core/net/ip/uip-debug.c CC ../../../core/net/ip/uiplib.c CC ../../../core/net/ip/uip-nameserver.c CC ../../../core/net/ip/uip-packetqueue.c CC ../../../core/net/ip/uip-split.c CC ../../../core/net/ip/uip-udp-packet.c CC ../../../core/net/rpl/rpl.c CC ../../../core/net/rpl/rpl-dag.c CC ../../../core/net/rpl/rpl-dag-root.c CC ../../../core/net/rpl/rpl-ext-header.c CC ../../../core/net/rpl/rpl-icmp6.c CC ../../../core/net/rpl/rpl-mrhof.c CC ../../../core/net/rpl/rpl-nbr-policy.c CC ../../../core/net/rpl/rpl-ns.c CC ../../../core/net/rpl/rpl-of0.c CC ../../../core/net/rpl/rpl-sdn.c CC ../../../core/net/rpl/rpl-timers.c CC ../../../core/net/linkaddr.c CC ../../../core/net/link-stats.c CC ../../../core/net/nbr-table.c CC ../../../core/net/net-debug.c CC ../../../core/net/netstack.c CC ../../../core/net/packetbuf.c CC ../../../core/net/queuebuf.c CC ../../../core/net/mac/csma.c CC ../../../core/net/mac/frame802154.c CC ../../../core/net/mac/frame802154e-ie.c CC ../../../core/net/mac/framer-802154.c CC ../../../core/net/mac/framer-nullmac.c CC ../../../core/net/mac/mac.c CC ../../../core/net/mac/mac-sequence.c CC ../../../core/net/mac/nordc.c CC ../../../core/net/mac/nullmac.c CC ../../../core/net/mac/nullrdc.c CC ../../../core/net/mac/nullrdc-noframer.c CC ../../../core/net/mac/phase.c CC ../../../core/net/mac/contikimac/contikimac.c CC ../../../core/net/mac/contikimac/contikimac-framer.c CC ../../../core/net/llsec/anti-replay.c CC ../../../core/net/llsec/ccm-star-packetbuf.c CC ../../../core/net/llsec/nullsec.c cp ../../../tools/empty-symbols.c symbols.c cp ../../../tools/empty-symbols.h symbols.h CC symbols.c CC ../../../core/net/sdn/sdn-stats.c AR contiki-exp5438.a msp430-ar: obj_exp5438/print-stats.o: No such file or directory make: *** [contiki-exp5438.a] Error 1 zehra@zehra-Lenovo-IdeaPad-Y510P:~/usdn/examples/sdn/controller$

mbaddeley commented 5 years ago

Double check msp version and post here please. If it's correct (4.7.3) then I'll double check the repo tomorrow morning.

msp430-gcc --version

I did clone it myself recently though... so should be ok...

ghost commented 5 years ago

zehra@zehra-Lenovo-IdeaPad-Y510P:~$ msp430-gcc --version msp430-gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ghost commented 5 years ago

sorry that i have issue when drag and drop picture in github that not let me post it

mbaddeley commented 5 years ago

Are you on master of devel branch?

ghost commented 5 years ago

will i change cc in Makefile which located in ....> usdn/cpu/msp430?

ghost commented 5 years ago

what different between them?

ghost commented 5 years ago

you mean i have install contiki then i will download usdn?

mbaddeley commented 5 years ago

no no, contiki is included as part of uSDN. Hang on, I'm trying to debug it this end

ghost commented 5 years ago

yes i mean that because i test cooja works fine

mbaddeley commented 5 years ago

Try running

make clean TARGET=exp5438 && make TARGET=exp5438

ghost commented 5 years ago

same error

mbaddeley commented 5 years ago

you mean i have install contiki then i will download usdn?

Hang on, do you mean you downloaded contiki as well as usdn?

mbaddeley commented 5 years ago

I just tried usdn master branch with a clean install and it compiles ok

ghost commented 5 years ago

No I didn’t download contiki

Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Tuesday, February 19, 2019 02:16 To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

you mean i have install contiki then i will download usdn?

Hang on, do you mean you downloaded contiki as well as usdn?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464918866, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIbV3DvbD-YunWj3EgXdqcvdZjyuhks5vOzRCgaJpZM4a6UE9.

mbaddeley commented 5 years ago

try checking out devel branch

To be honest I'm having a hard time thinking of what this could be. I've tried it a number of times on my end with a clean git clone of master and devel, with no issues :/ It seems like on your end the compiler doesn't like sdn-stats.c, but that shouldn't be the case. I can take another look tomorrow morning.

We will solve this!

ghost commented 5 years ago

Ok I will do this one Thank you very much really appreciate your helping.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Tuesday, February 19, 2019 02:23 To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

try checking out devel branch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464920063, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIf9pv7KHXzqZHK_qiDUdgdGeV40zks5vOzXygaJpZM4a6UE9.

mbaddeley commented 5 years ago

So the fact it's working my end thinks this is a compiler thing rather than a specific usdn problem... but I'm not entirely sure how, as your compiler appears to be correct... But this is what it should be coming up with:

image

mbaddeley commented 5 years ago

You're on ubuntu 64 correct? What's your make version?

make --version

ghost commented 5 years ago

Yes Ubuntu 64 GNU Make 3.81

Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Tuesday, February 19, 2019 02:31 To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

You're on ubuntu 64 correct? What's your make version?

make --version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464921268, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIUXTKo8GWGtJTlyPYXn-crhcdFATks5vOzfNgaJpZM4a6UE9.

mbaddeley commented 5 years ago

hmmm I'm on Make 4.1, but I doubt its an issue - try updating?

ghost commented 5 years ago

Ok I will do it

Get Outlook for iOShttps://aka.ms/o0ukef


From: Michael Baddeley notifications@github.com Sent: Tuesday, February 19, 2019 02:33 To: mbaddeley/usdn Cc: Zahraa Zakariya Saleh; Author Subject: Re: [mbaddeley/usdn] When I turned to the directory '/examples / SDN / conttollers or nodes_ and executed the make instruction, an error. Furthermore, i did the both instructions but version msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716) not u...

hmmm I'm on Make 4.1, but I doubt its an issue - try updating?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mbaddeley/usdn/issues/3#issuecomment-464921601, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AkntIY2X557b3qpYYhA0yV8KIuwt95POks5vOzhfgaJpZM4a6UE9.

mbaddeley commented 5 years ago

So I can see why it doesn't find print-stats on yours, because it's not including sdn-stats.c when it's compiling. However it does on my end (top CC line)... very mysterious...

make clean && make
using saved target 'exp5438'
rm -f *~ *core core *.srec \
*.lst *.map \
*.cprg *.bin *.data contiki*.a *.firmware core-labels.S *.ihex *.ini \
*.ce *.co
rm -rf *.exp5438 symbols.c symbols.h
rm -rf obj_exp5438
using saved target 'exp5438'
obj_exp5438/stats.d=
mkdir obj_exp5438
  CC        ../../../core/net/sdn/sdn-stats.c
  CC        ../../../apps/multiflow/multiflow.c
  CC        ../../../apps/atom/atom.c
  CC        ../../../apps/atom/atom-buffer.c
  CC        ../../../apps/atom/atom-net.c
  CC        ../../../apps/atom/atom-sb-usdn.c
  CC        ../../../apps/atom/atom-sb-rpl.c
  CC        ../../../apps/atom/atom-app-route-sp.c
  CC        ../../../apps/atom/atom-app-route-rpl.c
  CC        ../../../apps/atom/atom-app-join-cfg.c
  CC        ../../../platform/exp5438/./msp430.c
  CC        ../../../core/dev/leds.c
  CC        ../../../platform/exp5438/./watchdog.c
  CC        ../../../platform/exp5438/./spix.c
  CC        ../../../dev/cc2420/cc2420.c
  CC        ../../../platform/exp5438/./cc2420-arch.c
  CC        ../../../platform/exp5438/./rtimer-arch.c
  CC        ../../../platform/exp5438/./node-id.c
  CC        ../../../platform/exp5438/./leds-arch.c
  CC        ../../../platform/exp5438/./uart1x.c
  CC        ../../../platform/exp5438/./lcd.c
  CC        ../../../platform/exp5438/./hal_lcd.c
  CC        ../../../platform/exp5438/./hal_lcd_fonts.c
  CC        ../../../platform/exp5438/./duty-cycle-scroller.c
  CC        ../../../core/cfs/cfs-ram.c
  CC        ../../../platform/exp5438/./uart1-putchar.c
  CC        ../../../core/lib/me.c
  CC        ../../../core/lib/me_tabs.c
  CC        ../../../core/dev/slip.c
  CC        ../../../core/lib/crc16.c
  CC        ../../../platform/exp5438/./flash.c
  CC        ../../../platform/exp5438/./clock.c
  CC        ../../../cpu/msp430/./lpm.c
  CC        ../../../core/loader/elfloader.c
  CC        ../../../core/loader/elfloader-msp430.c
  CC        ../../../core/loader/symtab.c
  CC        ../../../core/net/sdn/sdn-conf.c
  CC        ../../../core/net/sdn/sdn-ft.c
  CC        ../../../core/net/sdn/sdn-cd.c
  CC        ../../../core/net/sdn/sdn-packetbuf.c
  CC        ../../../core/net/sdn/sdn-ext-header.c
  CC        ../../../core/net/sdn/sdn.c
  CC        ../../../core/net/sdn/usdn/usdn-adapter.c
  CC        ../../../core/net/sdn/usdn/usdn-driver.c
  CC        ../../../core/net/sdn/usdn/usdn-engine.c
  CC        ../../../core/sys/autostart.c
  CC        ../../../core/sys/stimer.c
  CC        ../../../core/sys/arg.c
  CC        ../../../core/sys/energest.c
  CC        ../../../core/sys/etimer.c
  CC        ../../../core/sys/log-ng.c
  CC        ../../../core/sys/ctimer.c
  CC        ../../../core/sys/compower.c
  CC        ../../../core/sys/process.c
  CC        ../../../core/sys/rtimer.c
  CC        ../../../core/sys/mt.c
  CC        ../../../core/sys/procinit.c
  CC        ../../../core/sys/timer.c
  CC        ../../../core/dev/serial-line.c
  CC        ../../../core/dev/nullradio.c
  CC        ../../../core/lib/settings.c
  CC        ../../../core/lib/mmem.c
  CC        ../../../core/lib/ccm-star.c
  CC        ../../../core/lib/ifft.c
  CC        ../../../core/lib/sensors.c
  CC        ../../../core/lib/ringbufindex.c
  CC        ../../../core/lib/list.c
  CC        ../../../core/lib/aes-128.c
  CC        ../../../core/lib/trickle-timer.c
  CC        ../../../core/lib/print-stats.c
  CC        ../../../core/lib/memb.c
  CC        ../../../core/lib/petsciiconv.c
  CC        ../../../core/lib/gcr.c
  CC        ../../../core/lib/assert.c
  CC        ../../../core/lib/random.c
  CC        ../../../core/lib/ringbuf.c
  CC        ../../../core/net/ipv6/websocket.c
  CC        ../../../core/net/ipv6/uip-icmp6.c
  CC        ../../../core/net/ipv6/uip-ds6.c
  CC        ../../../core/net/ipv6/uip-ds6-route.c
  CC        ../../../core/net/ipv6/uip6.c
  CC        ../../../core/net/ipv6/uip-ds6-nbr.c
  CC        ../../../core/net/ipv6/uip-nd6.c
  CC        ../../../core/net/ipv6/websocket-http-client.c
  CC        ../../../core/net/ipv6/sicslowpan.c
  CC        ../../../core/net/ip/slipdev.c
  CC        ../../../core/net/ip/dhcpc.c
  CC        ../../../core/net/ip/uip-debug.c
  CC        ../../../core/net/ip/uip-packetqueue.c
  CC        ../../../core/net/ip/tcp-socket.c
  CC        ../../../core/net/ip/ip64-addr.c
  CC        ../../../core/net/ip/uip-udp-packet.c
  CC        ../../../core/net/ip/psock.c
  CC        ../../../core/net/ip/tcpip.c
  CC        ../../../core/net/ip/resolv.c
  CC        ../../../core/net/ip/uip-nameserver.c
  CC        ../../../core/net/ip/uip-split.c
  CC        ../../../core/net/ip/udp-socket.c
  CC        ../../../core/net/ip/simple-udp.c
  CC        ../../../core/net/ip/uiplib.c
  CC        ../../../core/net/rpl/rpl-nbr-policy.c
  CC        ../../../core/net/rpl/rpl-of0.c
  CC        ../../../core/net/rpl/rpl-dag.c
  CC        ../../../core/net/rpl/rpl-timers.c
  CC        ../../../core/net/rpl/rpl-ext-header.c
  CC        ../../../core/net/rpl/rpl.c
  CC        ../../../core/net/rpl/rpl-sdn.c
  CC        ../../../core/net/rpl/rpl-mrhof.c
  CC        ../../../core/net/rpl/rpl-ns.c
  CC        ../../../core/net/rpl/rpl-icmp6.c
  CC        ../../../core/net/rpl/rpl-dag-root.c
  CC        ../../../core/net/queuebuf.c
  CC        ../../../core/net/nbr-table.c
  CC        ../../../core/net/packetbuf.c
  CC        ../../../core/net/netstack.c
  CC        ../../../core/net/linkaddr.c
  CC        ../../../core/net/net-debug.c
  CC        ../../../core/net/link-stats.c
  CC        ../../../core/net/mac/framer-nullmac.c
  CC        ../../../core/net/mac/nullmac.c
  CC        ../../../core/net/mac/nullrdc-noframer.c
  CC        ../../../core/net/mac/nordc.c
  CC        ../../../core/net/mac/frame802154e-ie.c
  CC        ../../../core/net/mac/mac-sequence.c
  CC        ../../../core/net/mac/framer-802154.c
  CC        ../../../core/net/mac/csma.c
  CC        ../../../core/net/mac/frame802154.c
  CC        ../../../core/net/mac/mac.c
  CC        ../../../core/net/mac/phase.c
  CC        ../../../core/net/mac/nullrdc.c
  CC        ../../../core/net/mac/contikimac/contikimac.c
  CC        ../../../core/net/mac/contikimac/contikimac-framer.c
  CC        ../../../core/net/llsec/nullsec.c
  CC        ../../../core/net/llsec/anti-replay.c
  CC        ../../../core/net/llsec/ccm-star-packetbuf.c
cp ../../../tools/empty-symbols.c symbols.c
cp ../../../tools/empty-symbols.h symbols.h
  CC        symbols.c
  AR        contiki-exp5438.a
  CC        sdn-controller.c
  CC        ../../../platform/exp5438/./contiki-exp5438-main.c
  LD        sdn-controller.exp5438
rm obj_exp5438/contiki-exp5438-main.o sdn-controller.co
mbaddeley commented 5 years ago

Also, can you do the following command and copy-paste the result here please?

echo $PATH

ghost commented 5 years ago

zehra@zehra-Lenovo-IdeaPad-Y510P:~$ echo $PATH /opt/mspgccx/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/compilers/mspgcc-4.7.3/bin

mbaddeley commented 5 years ago

Why do you have two mspgcc....? Remove the first one from your path. You path should look like this.

/home/mike/Compilers/mspgcc-.7.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

If you take out the mspgccx then I think it will work:

export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/compilers/mspgcc-4.7.3/bin

---Note---

I don't know where the mspgccx environment variable is coming from so to delete it permanently you'll need to find that out, otherwise you will need to run that the export PATH=... command each time.