Skip to content

Need ELF version of Makefile to build stm32-neopixel on Ubuntu #107

Open
@MihaelIsaev

Description

@MihaelIsaev

I'm trying to build the stm32-neopixel project via make but getting error:

In file included from /workspaces/stm4/Sources/Support/Support.c:14:
In file included from /swift/toolchains/6.1-RELEASE/usr/lib/clang/17/include/stdint.h:56:
/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
   26 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:32: build] Error 1

OS: Ubuntu 20.04 aarch64
Swift version 6.1 (swift-6.1-RELEASE)
Target: aarch64-unknown-linux-gnu

stm32-blink and esp32 examples builds fine, but this one throws the error

UPD: same on Ubuntu 24.04

UPD1: same on Swift 6.2-dev

Swift version 6.2-dev (LLVM 81ab6d9f7e4810f, Swift 9cc1947527bacea)
Target: aarch64-unknown-linux-gnu
Build config: +assertions

UPD2: same on Ubuntu 24.04 on x68_64 machine with Swift 6.1, so it is not architecture specific

UPD3: Seems it is because Makefile is trying to build Mach-O while I need ELF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions