Skip to content

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

@starry-m

Description

@starry-m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions