Error compiling with ic-cdk-timers 0.7+

:wave:

While upgrading my packages i’m running into a linking with rust-lld failed: exit status: 1 issue when going above version 0.6.0 of the ic-cdk-timers (@AdamS)

im using an M1 mac with OSX 14.3.1 (23D60)

Not sure if usable but part of the error looks like this

This is unfortunately missing the actual error message; can you paste the full thing? (But does cargo clean fix it?)

Sorry for the late response but unfortunatly it does not solve the issue;

this are the deps i’m using

candid = "0.10"
ic-cdk = "0.14"
ic-stable-structures = "0.6"
serde = "1.0"
serde_json = "1.0"
ic-websocket-cdk = "0.3"
ic-cdk-timers = "0.8"
ic-ledger-types = "0.11"
email_address = "0.2"
unicode-segmentation = "1"
icrc-ledger-types = "0.1"

but im still getting an error;

note: rust-lld: error: duplicate symbol: canister_global_timer
          >>> defined in /../release/deps/libic_cdk_timers-72cd1133b0b93799.rlib(ic_cdk_timers-72cd1133b0b93799.ic_cdk_timers.e6d22bddeb331fc9-cgu.05.rcgu.o)
          >>> defined in /../release/deps/libic_cdk_timers-2f8d20a847a37445.rlib(ic_cdk_timers-2f8d20a847a37445.ic_cdk_timers.b0aa4317fd322d96-cgu.04.rcgu.o)
          
          rust-lld: error: duplicate symbol: canister_update <ic-cdk internal> timer_executor
          >>> defined in /../release/deps/libic_cdk_timers-72cd1133b0b93799.rlib(ic_cdk_timers-72cd1133b0b93799.ic_cdk_timers.e6d22bddeb331fc9-cgu.05.rcgu.o)
          >>> defined in /../release/deps/libic_cdk_timers-2f8d20a847a37445.rlib(ic_cdk_timers-2f8d20a847a37445.ic_cdk_timers.b0aa4317fd322d96-cgu.04.rcgu.o)

You need to use the same version of ic-cdk and ic-cdk-timers that ic-websocket-cdk is using.

1 Like

You are right, thanks for the quick response