Renesas' toolchain errors

Discuss issues related to Calculator Hacking/Modding.
Senior Member
User avatar
Posts: 94
Joined: Sun Mar 27, 2016 10:24 am
Location: France
Calculators: Casio Afx 1.0, Casio fx-9750 G II, Casio fx-9860 GII

Renesas' toolchain errors

Postby cakeisalie5 » Fri May 12, 2017 8:56 pm

Hi! These last days, I've been trying to build libcarrot (my alternative libc) using Python 3.x and Renesas' toolchain. After a few stupid problems with the C compiler and the assembler, I'm encountering a problem with the linker, optlnk.exe. Basically, I'm doing a command like this (using -subcommand):
Code: Select all
form library=s
output "libcarrot.lib"

But here is the error I get:
Code: Select all
** L2301 (E) Duplicate module "sdk.c" in "arch\casiowin\fxlib\obj\file\sdk.c.obj"

The thing is, I want to be able to have two sdk.c, so I would like to change the module name, or import it in the created library with the new name (which would basically be the complete path, if possible). But I looked through the manual, and couldn't find anything like this... help D:

PS: My subcommand for using SHC is the following one (CPU options, source and object files are generated, SHCPU, SHC_LIB, SHC_INC and SHC_TMP are set):
Code: Select all
Part of the Planète Casio community (FR) - main author of the P7 project - libp7 - libg1m - FONTCHARACTER reference

Senior Member
User avatar
Posts: 578
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750 G II, Casio fx-9750 G II (SH4), Casio fx-9860G, Casio fx-9860 G SD, Casio fx-9860G Slim, Casio fx-9860 GII SD, Casio fx-9860 GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG 20, Casio Classpad fx-cp400, Casio fx-CG 50

Re: Renesas' toolchain errors

Postby SimonLothar » Fri May 12, 2017 10:00 pm

This are some optlnk commands to manage libraries

Add or replace the module "lean_setup_test" in library fx_test.lib:
optlnk -FO=library -LIB=fx_test -LIS=fx_test.lst -REP=lean_setup_test.obj

Delete the module "lean_setup_test" from library fx_test.lib:
optlnk -FO=library -LIB=fx_test -LIS=fx_test.lst -DEL=lean_setup_test

List a library:
optlnk -FO=library -LIB=fx_test -LIS=fx_test.lst
I'll be back!

Return to Calculator Hacking/Modding Discussions

Who is online

Users browsing this forum: No registered users and 2 guests