Skip to content

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

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

Open
starry-m opened this issue Mar 15, 2025 · 1 comment

Comments

@starry-m
Copy link
Contributor

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

@supperthomas
Copy link
Member

欢迎pr一下

starry-m pushed a commit to starry-m/rt-thread that referenced this issue Apr 1, 2025
starry-m added a commit to starry-m/rt-thread that referenced this issue Apr 2, 2025
supperthomas pushed a commit that referenced this issue Apr 13, 2025
…10164)

Fixed an error by running scons --tartget=cmake under LINUX, and associated issue #10113
Lin-Chengqiu pushed a commit to Lin-Chengqiu/rt-thread that referenced this issue Apr 14, 2025
add RT_THREAD_CTRL_SET_PRIORITY

add RT_THREAD_CTRL_SET_PRIORITY

doxygen: cleanup and re-org files

This patch contains two small changes, mainly to
prepare for the next step of organizing the modules
framework.

The first change: move the files related to doxygen
examples to `documentation/0.doxygen/example/`

The second change: delete `documentation/0.doxygen/mainpage.h`,
which is the mainpage of the old page. Now the new mainpage
is `documentation/INDEX.md`, so the duplicate can be
deleted.

Signed-off-by: Chen Wang <[email protected]>

[bsp/hpm5300evk]: 修复readme中的描述问题 (RT-Thread#10187)

1.bsp中描述路径boards不存在,只有board,并且路径中会包含openocd,把openocd路径去掉
2. 运行openocd发现cmsis-dap.cfg异常,使用ft2232.cfg可以正常烧入,修改readme
3. 添加download.bat脚本,方便下载

libcpu: aarch64: Fix NORMAL_NOCACHE_MEM attr (RT-Thread#10180)

Signed-off-by: Cliff Chen <[email protected]>
Signed-off-by: mouch6131 <[email protected]>
Co-authored-by: Cliff Chen <[email protected]>

Fixed an error by running scons --tartget=cmake under LINUX, RT-Thread#10113 (RT-Thread#10164)

Fixed an error by running scons --tartget=cmake under LINUX, and associated issue RT-Thread#10113
Lin-Chengqiu pushed a commit to Lin-Chengqiu/rt-thread that referenced this issue Apr 14, 2025
add RT_THREAD_CTRL_SET_PRIORITY

add RT_THREAD_CTRL_SET_PRIORITY

doxygen: cleanup and re-org files

This patch contains two small changes, mainly to
prepare for the next step of organizing the modules
framework.

The first change: move the files related to doxygen
examples to `documentation/0.doxygen/example/`

The second change: delete `documentation/0.doxygen/mainpage.h`,
which is the mainpage of the old page. Now the new mainpage
is `documentation/INDEX.md`, so the duplicate can be
deleted.

Signed-off-by: Chen Wang <[email protected]>

[bsp/hpm5300evk]: 修复readme中的描述问题 (RT-Thread#10187)

1.bsp中描述路径boards不存在,只有board,并且路径中会包含openocd,把openocd路径去掉
2. 运行openocd发现cmsis-dap.cfg异常,使用ft2232.cfg可以正常烧入,修改readme
3. 添加download.bat脚本,方便下载

libcpu: aarch64: Fix NORMAL_NOCACHE_MEM attr (RT-Thread#10180)

Signed-off-by: Cliff Chen <[email protected]>
Signed-off-by: mouch6131 <[email protected]>
Co-authored-by: Cliff Chen <[email protected]>

Fixed an error by running scons --tartget=cmake under LINUX, RT-Thread#10113 (RT-Thread#10164)

Fixed an error by running scons --tartget=cmake under LINUX, and associated issue RT-Thread#10113

[DM/FDT] Fix garble when booting

Fix garble caused by empty implementation of earlycon series
function in driver.If driver doesn't offer earlycon_id or rt_f
dt_earlycon_id.setup function but open option, the checking
of best_earlycon_id will failed.

Signed-off-by: 1078249029 <[email protected]>

[bsp/phytium]适配rtthread5.2版本 (RT-Thread#10178)

* rtthread 5.2适配
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

No branches or pull requests

2 participants