-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Wrong longcalls flag in 'ASFLAGS' #1314
Comments
Hi @hexeguitar, are you sure it's |
Oh, you're right. My files had lowercase extension. With uppercase all works fine.
|
This way assembly sources that don't require preprocessing (.s) will be run without generic compiler flags. Issue #1314
The problem here is that IDF's build system used behind the scene doesn't provide default assembly flags as they always run both [env:esp32dev]
platform = espressif32
framework = espidf
board = esp32dev
extra_scripts =
pre:add_asmflags.py
Import ("env")
env.Append(
ASFLAGS=["--longcalls"]
) |
This way assembly sources that don't require preprocessing (.s) will be run without generic compiler flags. Issue platformio#1314
Encountered this problem while trying to compile *.S assembly files. The process fails with message:
xtensa-esp32s3-elf-as: unrecognized option '-mlongcalls'
After digging deeper i found that the
xtensa-esp32s3-elf-as
accepts-longcalls
and-no-longcalls
flags only, without the -m used by the cpp compiler.I did try to remove the
'-mlongflags'
from'ASFLAGS'
using extra scripts, however with no avail. It seems the-mlongcalls
flag is added anyway in the build process.I was also able to confirm that the assembly files do compile correctly when the command is invoked from terminal with correct flag set.
The text was updated successfully, but these errors were encountered: