Skip to content

Precompiled libraries include path doesn't include FPU variant #4454

Open
@mike1808

Description

@mike1808

What kind of issue is this?

  • Question.
    This issue tracker is not the place for questions. If you want to ask how to do something,
    or to understand why something isn't working the way you expect it to,
    use Community Forums or Premium Support

  • PlatformIO IDE.
    All issues related to PlatformIO IDE should be reported to appropriate repository:
    PlatformIO IDE for Atom or
    PlatformIO IDE for VSCode

  • Development Platform or Board.
    All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
    should be reported to appropriate repository related to your hardware
    https://github.com/topics/platformio-platform

  • Feature Request.
    Start by telling us what problem you’re trying to solve. Often a solution
    already exists! Don’t send pull requests to implement new features without first getting our
    support. Sometimes we leave features out on purpose to keep the project small.

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system: Linux workstation 5.15.71-1-MANJARO

PlatformIO Version (platformio --version): PlatformIO Core, version 6.1.6a

Description of problem

Some precompiled arduino libraries have the FPU variant in the source and include the library depending on it.
For instance, Adafruit nRFCrypto library has `fpv4-sp-d16-hard

Steps to Reproduce

  1. Create a new project with nrf52 platform and Arduino framework and add nRFCrypto to the depedencies:
[env:nrf52]
platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = arduino
lib_deps = 
  adafruit/Adafruit nRFCrypto@^0.0.7
  1. Compile

Actual Results

Fails to link:

Linking .pio/build/adafruit_feather_nrf52840/firmware.elf
/home/USER/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: cannot find -lnrf_cc310_0.9.13-no-interrupts
collect2: error: ld returned 1 exit status
*** [.pio/build/xiaonrf_adafruit/firmware.elf] Error 1

Expected Results

To successfully link.

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:nrf52]
platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = arduino
lib_deps = 
	adafruit/Adafruit nRFCrypto@^0.0.7```

**Source file to reproduce issue:**
```cpp
Insert here...

Additional info

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions