rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

[Bug] command:"scons --target=cmake -s " makes error in Ubuntu 24.04.1 LTS x86_64

Open starry-m opened this issue 9 months ago • 1 comments

RT-Thread Version

master

Hardware Type/Architectures

at32f403a-start

Develop Toolchain

GCC

Describe the bug

  1. scons --target=cmake -s after got a

Image

entire program 2. $ scons --target=cmake -s Newlib version: 4.4.0 Update setting files for CMakeLists.txt... AttributeError: 'CLVar' object has no attribute 'replace': File "/home/starry/mcu/at32f403a_example/SConstruct", line 65: DoBuilding(TARGET, objs) File "/home/starry/mcu/at32f403a_example/rt-thread/tools/building.py", line 874: EndBuilding(target, program) File "/home/starry/mcu/at32f403a_example/rt-thread/tools/building.py", line 983: GenTargetProject(program) File "/home/starry/mcu/at32f403a_example/rt-thread/tools/building.py", line 947: CMakeProject(Env, Projects, GetOption('project-name')) File "/home/starry/mcu/at32f403a_example/rt-thread/tools/cmake.py", line 343: GenerateCFiles(env, project, project_name) File "/home/starry/mcu/at32f403a_example/rt-thread/tools/cmake.py", line 67: CXXFLAGS = env['CXXFLAGS'].replace('\\', "/").replace('\"', "\\\"") 3.

Image

  1. it works after make it

Image

Other additional context

No response

starry-m avatar Mar 15 '25 17:03 starry-m

欢迎pr一下

supperthomas avatar Mar 19 '25 00:03 supperthomas