platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
138 stars 105 forks source link

Problem with building usbdrvasm.o in DigisparkKeyboard on digispark-tiny... #61

Closed brainwagon closed 6 years ago

brainwagon commented 7 years ago

While trying to build the example framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard for the digispark-tiny, I get the following. It appears that this error has previously been reported and fixed....

Any hints? I'm using version 3.4.0.

[Thu Jul 27 21:44:09 2017] Processing digispark-tiny (platform: atmelavr; board: digispark-tiny; framework: arduino)

Verbose mode can be enabled via -v, --verbose option Converting spark.ino Collected 69 compatible libraries Looking for dependencies... Library Dependency Graph |--

*** Multiple ways to build the same target were specified for: /home/markv/spark/.pioenvs/digispark-tiny/lib/DigisparkKeyboard/usbdrvasm.o (from ['/home/markv/.platformio/packages/framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard/usbdrvasm.S'] and from ['/home/markv/.platformio/packages/framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard/usbdrvasm.asm']) File "/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py", line 273, in BuildLibrary

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/47688205-problem-with-building-usbdrvasm-o-in-digisparkkeyboard-on-digispark-tiny?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F38207915&utm_medium=issues&utm_source=github).
m0n1s commented 7 years ago

Got the same error on Visual Studio Code on macOS 10.12.5

asteriskie commented 6 years ago

Same issue on linux, both arm and x86_64, doesn't seem to be an architecture issue. Both fresh installs from platformio

ivankravets commented 6 years ago

Fixed in https://github.com/platformio/platformio-pkg-framework-arduinoavr/commit/0ca5066ea859618ea8cf11768781d710343f1e08

Will be released soon.

P.S: You can remove usbdrvasm.asm manually from ~/.platformio/packages/framework-arduinoavr/libraries/cores/digispark/DigisparkKeyboard