Giter VIP home page Giter VIP logo

Comments (9)

wnj avatar wnj commented on July 22, 2024

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 1

sekrier-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.

blmorris avatar blmorris commented on July 22, 2024

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.

piranna avatar piranna commented on July 22, 2024

On the command line on the root of the code,

git pull master

should do the trick.

from micropython.

pfalcon avatar pfalcon commented on July 22, 2024

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.

blmorris avatar blmorris commented on July 22, 2024

@piranna - thanks, I hoped it would be something simple like that. (Will try it this evening after the kids are in bed...)

from micropython.

piranna avatar piranna commented on July 22, 2024

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.

mikaeleiman avatar mikaeleiman commented on July 22, 2024

I made a pull request with the remaining tweaks needed to build on plain OSX: #73

from micropython.

blmorris avatar blmorris commented on July 22, 2024

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.

dpgeorge avatar dpgeorge commented on July 22, 2024

#73 fixes the issue with unix/ building on Mac.

from micropython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.