scons: LINK is setted to riscv64-unknown-elf-gcc, but env.Program execute use ld

LINK is setted to riscv64-unknown-elf-gcc, but env.Program execute use ld. I use env.Dump()get below outputs: 'LINK': 'riscv64-unknown-elf-gcc', 'LINKCOM': '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS ' '$_LIBFLAGS', 'LINKFLAGS': ' ' '-march=rv64imafdcv_zicbom_zicbop_zicboz_zicond1p0_zihintntl0p2_zihintpause_zawrs_zfa0p1_zfbfmin0p8_zfh_zca_zcb_zcd_zba_zbb_zbc_zbs_zvfbfmin0p8_zvfbfwma0p8_svinval_svpbmt_xtheadc_xtheadvdot ' '-mabi=lp64d -mtune=c920 -nostartfiles -lc -lgcc -lm -T ' '/ssd_fes/jiongz/desktop/github/diff_ip_vv/pc801_c920_ip_vv/smart_run/tests/lib/init/linker.lcf ' '-L ' '/ssd_fes/jiongz/desktop/github/diff_ip_vv/pc801_c920_ip_vv/smart_run/tests/lib/init', Could anyone help me about this issue?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (7 by maintainers)

Most upvoted comments

@zhajio1988 glad @mwichmann and I could help.

@bdbaddog Finally,my SCons can work now, thank you very much.

@bdbaddog Yes, It does have nothing to do with scons anymore, I’m seeing what’s going on, thanks a lot!