# MIOS32 - Compile error after fresh install of the toolchain

**URL:** <https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576>\
**Category:** MIOS programming (C)\
**Created:** [June 24, 2019, 7:39pm UTC](https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576 "2019-06-24T19:39:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jujule](https://forum.midibox.org/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jujule](https://forum.midibox.org/u/jujule)\
**Post date:** [June 24, 2019, 7:39pm UTC](https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576/1 "2019-06-24T19:39:56Z")

</div>

Hello everyone,

I am completely new to MIDIbox.&nbsp;I am trying to get the first&nbsp;tutorial to compile under Ubuntu 18.04 for Core 32 STM32F4 and get the following error message :  
&nbsp;

```
\> make -s Creating object file for strtol.c /home/sojastar/Documents/Programmation/MIOS32/mios32/programming\_models/traditional/strtol.c:147:19: error: expected ')' before '(' token &nbsp;\_DEFUN (\_strtol\_r, (rptr, nptr, endptr, base), &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^~&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)

```

&nbsp;

This is from a fresh ( probably faulty ) install of the toolchain :&nbsp;I first cloned the git repo for MIOS32 then installed the latest arm toolchain following these instructions :&nbsp;[https://gnu-mcu-eclipse.github.io/toolchain/arm/install/](https://gnu-mcu-eclipse.github.io/toolchain/arm/install/)&nbsp;I did add the toolchain path to my PATH.

Any advice or pointer would be greatly appreciated !

Thanks !

Julien

---

<div class="post-metadata">

**Author:** ![Phatline](https://forum.midibox.org/user_avatar/forum.midibox.org/phatline/32/501_2.png) [@Phatline](https://forum.midibox.org/u/Phatline)\
**Post date:** [June 24, 2019, 8:30pm UTC](https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576/2 "2019-06-24T20:30:43Z")

</div>

do you compile a standard app? or some own programmed? (\> you get that message by every app you want to compile?)

(i also use ubuntu - and for me its always pain in the ass - to get it running \> all the librarys you have to install… luckely i dont have to fresh install my OS only once a few years…)

---

<div class="post-metadata">

**Author:** ![jujule](https://forum.midibox.org/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jujule](https://forum.midibox.org/u/jujule)\
**Post date:** [June 24, 2019, 8:44pm UTC](https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576/3 "2019-06-24T20:44:27Z")

</div>

Hey Phatline,

Thanks for the quick answer.

No, I just tried to compile the first tutorial project in apps/tutorials/001\_forwarding\_midi and the app skeleton in apps/templates/app\_skeleton. Both projects give the same error.

Thanks,

Julien

---

<div class="post-metadata">

**Author:** ![jujule](https://forum.midibox.org/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jujule](https://forum.midibox.org/u/jujule)\
**Post date:** [June 24, 2019, 9:10pm UTC](https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576/4 "2019-06-24T21:10:54Z")

</div>

Oops,

Silly me, an issue was already opened on the GitHub repo site :&nbsp;[https://github.com/midibox/mios32/issues/3](https://github.com/midibox/mios32/issues/3)

Maybe better to focus efforts there.

Julien

---

<div class="post-metadata">

**Author:** ![jujule](https://forum.midibox.org/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jujule](https://forum.midibox.org/u/jujule)\
**Post date:** [June 26, 2019, 12:13pm UTC](https://forum.midibox.org/t/mios32-compile-error-after-fresh-install-of-the-toolchain/20576/5 "2019-06-26T12:13:11Z")

</div>

Problem solved. I left a comment in the GitHub issue but here is a copy of it for convenience :

I installed the toolchain found here :&nbsp;[http://www.midibox.org/mios32\_toolchain/](http://www.midibox.org/mios32_toolchain/)&nbsp;( as I should have from the beginning but I got wary when I saw it was last updated in 2013 ) and everything works fine now but for a few warnings.

Apparently the newer arm toolchain doesn’t define the&nbsp;`_DEFUN`,&nbsp;&nbsp;`_AND`&nbsp;and&nbsp;`_CONST`&nbsp;macros ( and a bunch of other ones too ) in \_ansi.h.
