Spinnaker tools local setup

158 views
Skip to first unread message

Clea Smith

unread,
Apr 20, 2021, 7:10:29 PM4/20/21
to SpiNNaker Users Group
Hi Spinnaker team,

I am new to the software development for spinnaker. And now I wish to use spinnaker tools locally. Following the instructions, I am supposed to edit the setup file so that it points to the installations of ARM and/or GNU software development tools. How should I do this for Mac os X?  I have installed the latest version of Xcode, and it seems what was installed is clang rather than gcc.

Besides, it seems I could not source the setup file with the error like this:
setup: 28: = not found

Many thanks
Clea

Andrew Rowley

unread,
Apr 21, 2021, 3:29:27 AM4/21/21
to Clea Smith, SpiNNaker Users Group

Hi,

 

The instructions for installing the compiler are here:

https://spinnakermanchester.github.io/common_pages/6.0.0/Compiler.html#MacOSXDev

 

Although this does get you to install xcode, I believe that this is so that you get the basic make install.  The remaining instructions then get you to install arm-none-eabi-gcc as well, which is then actually called from the command line like that i.e. the whole arm-none-eabi-gcc not just gcc.

 

The “setup” script is part of the spinnaker_tools folder; I think it might be better to run “source ./setup” when in that folder to avoid it picking up some other file.  Note that if you follow the instructions below, it probably won’t be necessary to run that setup script, as all the environment variables will already be set up:

https://spinnakermanchester.github.io/spinn_tools/3.4.1/index.html#SpinnakerTools

 

If you successfully run “make” at the end of those instructions, it suggests that all will be well.

 

Andrew :)

 

 

--
You received this message because you are subscribed to the Google Groups "SpiNNaker Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spinnakeruser...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/spinnakerusers/fc143207-8ea9-4611-80a6-3b2bb451cfcan%40googlegroups.com.

Clea Smith

unread,
Apr 21, 2021, 2:25:33 PM4/21/21
to SpiNNaker Users Group
Hi Andrew,

Thanks for your prompt reply, I think issue might be the installation of arm-none-eabi-gcc using macports. 

I am using the Mac with M1 processor, and error like this was given while I was trying to install:
Error: Failed to build arm-none-eabi-gcc: command execution failed

Guess there is still some compatibility issue with the new Mac.

Anyway, thank you all the same!!

Clea :D

Andrew Gait

unread,
Apr 22, 2021, 3:20:28 AM4/22/21
to SpiNNaker Users Group
Hi Clea,

Is there any other error trace other than the "command execution failed" message?  This has happened in the past with older versions of gcc / arm-none-eabi-gcc but I wasn't aware of it being a problem recently.

What Mac OS are you on, and what version of gcc do you have (do "gcc --version" at the command line)?

Another option if that doesn't work is to download arm-none-eabi-gcc directly from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads and install it yourself (basically this means unzip the file in a location and make sure that your PATH variable contains the location of the binary file from this download).

Andy

----------------------------------------------------
Dr. Andrew Gait,
Research Software Engineer,
APT Group,
Department of Computer Science,
The University of Manchester,
Oxford Road, Manchester M13 9PL

email: andre...@manchester.ac.uk
web: http://personalpages.manchester.ac.uk/staff/Andrew.Gait/

From: spinnak...@googlegroups.com <spinnak...@googlegroups.com> on behalf of Clea Smith <clea...@gmail.com>
Sent: 21 April 2021 19:25

To: SpiNNaker Users Group <spinnak...@googlegroups.com>
Subject: Re: [SpiNNaker Mailing List] Spinnaker tools local setup
 

Andrew Rowley

unread,
Apr 22, 2021, 3:26:18 AM4/22/21
to Andrew Gait, SpiNNaker Users Group

Hi,

 

It looks like there is no arm-none-eabi-gcc compiled for M1 processors (see e.g. https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/issues/12).  I don’t know if the M1 macs support some sort of x86 virtualisation or emulation but without either that or a native compile, it isn’t likely to work – sorry!

 

Andrew :)

Clea Smith

unread,
Apr 22, 2021, 6:44:47 AM4/22/21
to SpiNNaker Users Group
Hi Andy,

Thanks for asking about this, this is what I get from gcc --version:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1

Apple clang version 12.0.0 (clang-1200.0.32.29)

Target: arm64-apple-darwin20.3.0

And it seems that I have solved this using hombrew to install arm-none-eabi-gcc instead of Macports. Your suggestion should work too.

Clea

Clea Smith

unread,
Apr 22, 2021, 6:48:03 AM4/22/21
to SpiNNaker Users Group
Hi Andrew,

It seems Macports does have an issue with building arm-none-eabi-gcc and it is a common one, but I installed it using homebrew successfully, and running "make" in spinnaker_tools folder seems to work. 

Clea ;D

Andrew Rowley

unread,
Apr 22, 2021, 7:03:11 AM4/22/21
to Clea Smith, SpiNNaker Users Group

OK, good to know it works already – thanks for letting us know!

 

Andrew :)

 

Reply all
Reply to author
Forward
0 new messages