Skip to content

fix make -C mpy-cross on arm #2848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

fix make -C mpy-cross on arm #2848

wants to merge 4 commits into from

Conversation

BobRyan530
Copy link
Contributor

I believe the @ in this line is being interpreted as a comment. Checking if arch is arm and replacing @ with % makes this build properly. I don't know if the stack is being marked no execute as intended however.

.section .note.GNU-stack,"",@progbits

bryan@chip0:~/Source/micropython$ make -C mpy-cross
make: Entering directory '/home/bryan/Source/micropython/mpy-cross'
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Generating build/genhdr/mpversion.h
CC ../py/nlrx86.S
../py/nlrx86.S: Assembler messages:
../py/nlrx86.S:194: Error: junk at end of line, first unrecognized character is `,'
../py/mkrules.mk:25: recipe for target 'build/py/nlrx86.o' failed
make: *** [build/py/nlrx86.o] Error 1
make: Leaving directory '/home/bryan/Source/micropython/mpy-cross'

There is likely a cleaner way to make this change but this is what I came up with.

dhylands added a commit to dhylands/micropython that referenced this pull request Feb 7, 2017
It seems that the gcc toolchain on the RaspberryPi
likes %progbits instead of @progbits. I verified that
%progbits also works under x86, so this should
fix micropython#2848 and fix micropython#2842

I verified that unix and mpy-cross both compile
on my RaspberryPi and on my x64 machine.
@dpgeorge dpgeorge closed this in aa34c55 Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy