GithubHelp home page GithubHelp logo

stmicro-stm32's Issues

zig build fails unexpectedly

First, build.zig is trying to access a non-existing field (see #24 ). After fixing this though, compilation fails with a weird error.
Output of running zig build:

zig build-exe STM32F429.minimal Debug thumb-freestanding-none: error: the following command terminated unexpectedly:
/home/fran/.zig/zig build-exe /home/fran/Documents/stmicro-stm32/deps/microzig/src/start.zig -fno-strip --cache-dir /home/fran
/Documents/stmicro-stm32/zig-cache --global-cache-dir /home/fran/.cache/zig --name STM32F429.minimal -fcompiler-rt -fsingle-th
readed -target thumb-freestanding-none -mcpu cortex_m4 --script /home/fran/Documents/stmicro-stm32/zig-cache/microzig/9eaf9c0e
5ae93f43e508a2a8b6abb0a6/STM32F429_ARM Cortex-M4.ld --mod cpu:microzig:/home/fran/Documents/stmicro-stm32/deps/microzig/src/mo
dules/cpus/cortex-m.zig --mod chip:microzig:/home/fran/Documents/stmicro-stm32/src/chips/STM32F429.zig --mod microzig:config,c
hip,cpu,hal:/home/fran/Documents/stmicro-stm32/deps/microzig/src/microzig.zig --mod hal:microzig:/home/fran/Documents/stmicro-
stm32/src/hals/STM32F429.zig --mod config::/home/fran/Documents/stmicro-stm32/zig-cache/microzig/config-94b727d09a5e61986629e2
266c040a6a.zig --mod app:microzig:/home/fran/Documents/stmicro-stm32/test/programs/minimal.zig --deps app,microzig --listen=- 

... (All boards fail the same way)

Build Summary: 8/25 steps succeeded; 8 failed (disable with --summary none)
install transitive failure
├─ install STM32F3DISCOVERY.minimal transitive failure
│  └─ zig build-exe STM32F3DISCOVERY.minimal Debug thumb-freestanding-none failure
├─ install STM32F4DISCOVERY.minimal transitive failure
│  └─ zig build-exe STM32F4DISCOVERY.minimal Debug thumb-freestanding-none failure
├─ install STM3240G_EVAL.minimal transitive failure
│  └─ zig build-exe STM3240G_EVAL.minimal Debug thumb-freestanding-none failure
├─ install STM32F429IDISCOVERY.minimal transitive failure
│  └─ zig build-exe STM32F429IDISCOVERY.minimal Debug thumb-freestanding-none failure
├─ install STM32F103.minimal transitive failure
│  └─ zig build-exe STM32F103.minimal Debug thumb-freestanding-none failure
├─ install STM32F303.minimal transitive failure
│  └─ zig build-exe STM32F303.minimal Debug thumb-freestanding-none failure
├─ install STM32F407.minimal transitive failure
│  └─ zig build-exe STM32F407.minimal Debug thumb-freestanding-none failure
└─ install STM32F429.minimal transitive failure
   └─ zig build-exe STM32F429.minimal Debug thumb-freestanding-none failure
error: the following build command failed with exit code 1:
/home/fran/Documents/stmicro-stm32/zig-cache/o/cf9b1829ca48e4a32cb2a3193eecd0f2/build /home/fran/.zig/zig /home/fran/Documents
/stmicro-stm32 /home/fran/Documents/stmicro-stm32/zig-cache /home/fran/.cache/zig

I'm running this with zig version 0.11.0

the .rodata should be in the .text section

Think there might be an issue with the creation of the linker files, I think the \ (.rodata)
should be moved from the .data section to the .text section below the \ (.text) line

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.