Comments (9)
OSX is only supported on the osx branch.
If you first do
git checkout osx
it should work.
willy
On 03 Jan 2014, at 17:35 , focsic [email protected] wrote:
sekrier-mac:unix sekrier$ make
mkdir -p build
gcc -I. -I../py -Wall -Werror -ansi -std=gnu99 -Os -DUSE_READLINE -c -o build/main.o main.c
gcc -I. -I../py -Wall -Werror -ansi -std=gnu99 -Os -DUSE_READLINE -c -o build/nlrx86.o ../py/nlrx86.S
gcc -I. -I../py -Wall -Werror -ansi -std=gnu99 -Os -DUSE_READLINE -c -o build/nlrx64.o ../py/nlrx64.S
../py/nlrx64.S:9:5: error: unknown directive
.type nlr_push, @function
^
../py/nlrx64.S:25:5: error: unknown directive
.size nlr_push, .-nlr_push
^
../py/nlrx64.S:29:5: error: unknown directive
.type nlr_pop, @function
^
../py/nlrx64.S:35:5: error: unknown directive
.size nlr_pop, .-nlr_pop
^
../py/nlrx64.S:39:5: error: unknown directive
.type nlr_jump, @function
^
../py/nlrx64.S:58:5: error: unknown directive
.size nlr_jump, .-nlr_jump
^
../py/nlrx64.S:60:5: error: unknown directive
.local nlr_top
^
make: *** [build/nlrx64.o] Error 1sekrier-mac:build sekrier$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix—
Reply to this email directly or view it on GitHub.
from micropython.
Question about this: I grabbed the osx branch and successfully compiled the stm port on my mac, and proceeded to install it on hardware that I developed that happens to use the STM32F405 chip. (This happy coincidence is what got me excited about the micropython project in the first place.)
Unfortunately, there does not appear to have been any action on the osx branch in the two weeks since it was forked. I am new to git, (and much more of a hardware developer rather than software,) so I'm not really sure if there is an easy way to pull the changes on the main branch to the osx branch so that I can continue to follow and test the ongoing development. Does anyone have any pointers, and is this a straightforward thing to do?
from micropython.
On the command line on the root of the code,
git pull master
should do the trick.
from micropython.
I also moved asm files to be preprocessed first, so one should be able to add #ifdef's to have Apple-hacked Clang happy in the main branch.
from micropython.
@piranna - thanks, I hoped it would be something simple like that. (Will try it this evening after the kids are in bed...)
from micropython.
You are welcome :-) Maybe you'll need to do something more especially if
there are conflicts that git can't be able to fix itself (I don't think so,
it's just a commit in advance), but anyway, there are a lot of git manuals
on internet and this is just content of second day of class 101, so don't
worry about it :-)
2014/1/3 blmorris [email protected]
@piranna https://github.com/piranna - thanks, I hoped it would be
something simple like that. (Will try it this evening after the kids are in
bed...)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/48#issuecomment-31554930
.
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un monton
de sitios diferentes, simplemente escribe un sistema operativo Unix."
– Linus Tordvals, creador del sistema operativo Linux
from micropython.
I made a pull request with the remaining tweaks needed to build on plain OSX: #73
from micropython.
A clarification for those doing their development on a mac: the tweaks in the osx branch are only necessary for those trying to compile and run the unix port on OSX. For those compiling and testing the stm port (probably very few at this point until Damien delivers the Micro Python boards) the stm port within the main branch compiles perfectly well under osx using the compiler toolchain from https://launchpad.net/gcc-arm-embedded
There is a prebuilt mac-osx binary for the toolchain that is one version out of date (4.7) but worked perfectly for me.
Sorry for the confusion.
from micropython.
#73 fixes the issue with unix/ building on Mac.
from micropython.
Related Issues (20)
- ESP32 SPIRAM IRAM overflow HOT 1
- ESP32 Outputting Garbage in REPL HOT 1
- ValueError: incompatible .mpy file HOT 2
- Raspberry Pi Pico _thread OSError: TinyUSB callback can't recurse HOT 5
- array: Add typecode property HOT 3
- from_bytes, sign=True not recognized, behaves differently in micropython than in python HOT 2
- esp32: Enabling debug printers bootloops ESP32C3 boards
- Suggestion for faster collection of sumbodules
- Micropython BLE has higher latency than Arduino. Is there any way to reduce it? HOT 8
- BLE with multiple periperals (OSError: [Errno 107] ENOTCONN) HOT 3
- Enable Hardware I2C2 to Portenta C33 Port
- Inconsistent thread behavior in different versions of MicroPython on ESP32 HOT 4
- Micropython allows uninitialised, invalid LAN MAC addresses on network
- Freebsd build failing; regression HOT 3
- Adding Bluetooth , audio, mic well compatibility with it HOT 2
- SAMD: Support SAMD internal flash and QSPI flash simultaneously HOT 3
- docs: explain optional global-interpreter-lock HOT 1
- os.dupterm() appears never to call readinto() method on ESP32_S2 and C3 HOT 1
- super().__init__(*args, **kwargs) doesn't pass kwargs to parent C class. HOT 3
- os.statvfs() misreports first 9 values on the list as 0 on Arduino Nano RP2040 Connect HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython.