arduino / arduino/ArduinoCore-megaavr

Compiling fails when using precompiled library

Open
#100 2 comments 0 reactions 0 assignees View on GitHub
waiting for feedback
Dominant language
C++
Stars
111
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Hi,
Compiling fails at linking when using a precompiled library .a for atmega4809 targets. The following message appears in the verbose:

"Using precompiled library in C:\... (archive library path)
The plaform does not support 'compiler.libraries.ldflags' for precompiled libraries."

Looking at the verbose, the library path (-Lfolder -lname) is missing from the linking command line.

Is that a normal behavior and could this be solved?
Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing an atmega4809 build with a precompiled .a library and compare the verbose linking command with the reported archive-library path. Investigate the handling of compiler.libraries.ldflags for precompiled libraries; done means the library's -L folder and -l name are included so linking succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.