trouble with make

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
manitou
Posts: 73
Joined: Wed Feb 25, 2015 12:15 am

trouble with make

Post by manitou » Fri Mar 20, 2015 11:53 am

A few weeks ago I cloned the micropython from github, and since I have done several successful make's for new .dfu.

today, i got a fresh clone of micropython, but the make failed ?? (ubuntu 14.04)

Code: Select all

 make BOARD=PYBV10
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build-PYBV10/genhdr
Create build-PYBV10/genhdr/pins.h
CPP ../py/qstrdefs.h
cc1: error: unrecognized command line option "-Wdouble-promotion"
make: *** [build-PYBV10/genhdr/qstrdefs.generated.h] Error 1
I hacked the Makefile to get rid of -Wdouble-promotion, but then it failed with

Code: Select all

  CPP ../py/qstrdefs.h
In file included from ../py/qstrdefs.h:27:
../py/mpconfig.h:620: error: #error endianness not defined and cannot detect it
make: *** [build-PYBV10/genhdr/qstrdefs.generated.h] Error 1
.... sigh :?:

so i just downloaded the latest dfu, but i'd like to get make working again.

i was hoping the new firmware would fix the RTC ppm problem--looks like there were patches to rtc.c, but with the 3/20/15 firmware i still see 175 ppm on the RTC --

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: trouble with make

Post by blmorris » Fri Mar 20, 2015 1:39 pm

I just updated my source tree pulling the latest commits and it compiled without throwing any errors.
This commit on Wednesday enabled the compiler warning '-Wdouble-promotion' in the unix port, but that appears to have been present in stmhal/Makefile for a while.

Which compiler version are you using? (I am on OSX 10.7.5)

Code: Select all

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.3 20140228 (release) [ARM/embedded-4_8-branch revision 208322]
Copyright (C) 2013 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.
I suspect this isn't your problem, but wanted to mention it just in case.
-Bryan

manitou
Posts: 73
Joined: Wed Feb 25, 2015 12:15 am

Re: trouble with make

Post by manitou » Fri Mar 20, 2015 2:43 pm

Dang, pilot error! I forgot to fix the path to the arm gcc in the Makefile ....
be thankful I'm not a surgeon.

all is well

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: trouble with make

Post by blmorris » Fri Mar 20, 2015 2:58 pm

Ha! I'm also grateful to have found a line of work where my products are extremely unlikely to hurt anyone :)
Glad you have it working.
-Bryan

Post Reply