# Make software call fails

**URL:** <https://forums.sifive.com/t/make-software-call-fails/158>\
**Category:** Freedom E300\
**Created:** [December 4, 2016, 9:56am UTC](https://forums.sifive.com/t/make-software-call-fails/158 "2016-12-04T09:56:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![welten](https://avatars.discourse-cdn.com/v4/letter/w/6a8cbe/32.png) [@welten](https://forums.sifive.com/u/welten)\
**Post date:** [December 4, 2016, 9:56am UTC](https://forums.sifive.com/t/make-software-call-fails/158/1 "2016-12-04T09:56:14Z")

</div>

Following the instructions in chapter 5 of document SiFive-E310-arty-gettingstarted-v1.0.pdf I was not able to successfully compile the gpio example for the arty board via:

> make software PROGRAM=demo\_gpio BOARD=freedom-e300-arty

I additionally tried:

> export PROGRAM=demo\_gpio  
> export BOARD=freedom-e300-arty  
> make software

Both runs returned

> cd /home/ralf/mnt/Downloads/freedom-e-sdk/software/demo\_gpio;  
> make  
> make[1]: Entering directory `/home/ralf/mnt/Downloads/freedom-e-sdk/software/demo_gpio' ../../bsp/../toolchain/bin/riscv32-unknown-elf-gcc -fno-builtin-printf -DUSE_PLIC -DUSE_M_TIME -g -I. -I../../bsp/include -I../../bsp/env -I../../bsp/env/freedom-e300-arty -c -o demo_gpio.o demo_gpio.c demo_gpio.c:7:25: fatal error: plic_driver.h: No such file or directory #include "plic_driver.h" ^ compilation terminated. make[1]: *** [demo_gpio.o] Error 1 make[1]: Leaving directory `/home/ralf/mnt/Downloads/freedom-e-sdk/software/demo\_gpio’  
> make: \*\*\* [software] Error 2

Finally I tried

> make software [PROGRAM=demo\_gpio BOARD=freedom-e300-arty]

which returned

> cd /home/ralf/mnt/Downloads/freedom-e-sdk/software/demo\_gpio;  
> make  
> make[1]: Entering directory `/home/ralf/mnt/Downloads/freedom-e-sdk/software/demo_gpio' make[1]: *** No rule to make target `…/…/bsp/env/freedom-e300-arty]/entry.S’, needed by `../../bsp/env/freedom-e300-arty]/entry.o'. Stop. make[1]: Leaving directory `/home/ralf/mnt/Downloads/freedom-e-sdk/software/demo\_gpio’  
> make: \*\*\* [software] Error 2

I tested this on Ubuntu 14.04.3 LTS (64 bit).

Note: Finally tested compilation on Ubuntu 16.04.1 LTS (64 bit) and everything works fine.

---

<div class="post-metadata">

**Author:** ![mwachs5](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/mwachs5/32/13_2.png) [@mwachs5](https://forums.sifive.com/u/mwachs5)\
**Post date:** [December 5, 2016, 12:24am UTC](https://forums.sifive.com/t/make-software-call-fails/158/2 "2016-12-05T00:24:31Z")

</div>

Thanks for trying it out! Another user had the same problem, we realized we had forgotten to include the plic\_driver.h file. We added the file to the repository. Can you try updating your freedom-e-sdk repository to the latest version?

````auto
cd freedom-e-sdk
git pull origin/master
```

Then re-try the software make command:

```
cd freedom-e-sdk
make software_clean PROGRAM=demo_gpio BOARD=freedom-e300-arty
make software PROGRAM=demo_gpio BOARD=freedom-e300-arty
```
````

---

<div class="post-metadata">

**Author:** ![dgrubb](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/dgrubb/32/23_2.png) [@dgrubb](https://forums.sifive.com/u/dgrubb)\
**Post date:** [December 5, 2016, 2:39am UTC](https://forums.sifive.com/t/make-software-call-fails/158/3 "2016-12-05T02:39:37Z")

</div>

Cheers. I was experiencing the same problem and it’s resolved by the update.

---

<div class="post-metadata">

**Author:** ![dagema](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/dagema/32/59_2.png) [@dagema](https://forums.sifive.com/u/dagema)\
**Post date:** [December 11, 2016, 10:18pm UTC](https://forums.sifive.com/t/make-software-call-fails/158/4 "2016-12-11T22:18:34Z")

</div>

I just cloned freedom-3-sdk today in a fresh VirtualBox installation of Ubuntu 16.04. The make tools seemed to run wirthout problems, but make software throws the following errors:

 ![](https://us1.discourse-cdn.com/flex020/uploads/sifive/original/1X/ebe101a37a266ebe3c6c166e4ec713fcf81389e3.png)

Has the repository changed during the past 7 days? If so what changed which might be causing this?

Thanks and regards,  
Donnie

---

<div class="post-metadata">

**Author:** ![mwachs5](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/mwachs5/32/13_2.png) [@mwachs5](https://forums.sifive.com/u/mwachs5)\
**Post date:** [December 11, 2016, 10:26pm UTC](https://forums.sifive.com/t/make-software-call-fails/158/5 "2016-12-11T22:26:55Z")

</div>

Donnie,

Yes, we updated the repo a couple days ago to make the demo actually do something “interesting” with the buttons. We’ve also updated the FE310 Arty Dev Kit Getting Started Guide to match.

Please try this command (the [] brackets are to indicate those are optional parameters):

```auto
make software_clean PROGRAM=demo_gpio BOARD=freedom-e300-arty
make software PROGRAM=demo_gpio BOARD=freedom-e300-arty

```

---

<div class="post-metadata">

**Author:** ![dagema](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/dagema/32/59_2.png) [@dagema](https://forums.sifive.com/u/dagema)\
**Post date:** [December 11, 2016, 10:39pm UTC](https://forums.sifive.com/t/make-software-call-fails/158/6 "2016-12-11T22:39:22Z")

</div>

> Hi Megan,

> That worked. Thank you very much.

> Best regards,  
> Donnie[quote=“mwachs5, post:5, topic:158”]  
> Donnie,

> Yes, we updated the repo a couple days ago to make the demo actually do something “interesting” with the buttons. We’ve also updated the FE310 Arty Dev Kit Getting Started Guide to match.  
> [/quote]

Hi Megan,

I just looked at the new Getting Started Guide - there is a typo in the debugger section. It should read “make run\_debug …” instead of “make run.debug …”

Best regards,  
Donnie

---

<div class="post-metadata">

**Author:** ![mwachs5](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/mwachs5/32/13_2.png) [@mwachs5](https://forums.sifive.com/u/mwachs5)\
**Post date:** [December 12, 2016, 6:53pm UTC](https://forums.sifive.com/t/make-software-call-fails/158/7 "2016-12-12T18:53:11Z")

</div>

Thanks Donnie… you’re talking about section 6.2 right? It looks like that may be a font issue.The character is indeed \_ but might look like . on some viewers.

---

<div class="post-metadata">

**Author:** ![dagema](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/dagema/32/59_2.png) [@dagema](https://forums.sifive.com/u/dagema)\
**Post date:** [December 12, 2016, 7:56pm UTC](https://forums.sifive.com/t/make-software-call-fails/158/8 "2016-12-12T19:56:15Z")

</div>

> [@mwachs5](#):
>
> Thanks Donnie… you’re talking about section 6.2 right? It looks like that may be a font issue.The character is indeed \_ but might look like . on some viewers.

Yes, that was it. Sorry for the trouble. I think it was just my poor eyesight at fault.

Best regards,
