!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

498 Members
109 Servers

Load older messages


SenderMessageTime
23 Apr 2025
@rosssmyth:matrix.orgrosssmyth * Yes, Clang is sane. But right now a clang stdenv can't be built for arm-embedded 16:41:47
@dramforever:matrix.orgdramforevercan you confirm that arm-embedded has ever worked before?16:41:52
@dramforever:matrix.orgdramforever to me it doesn't seem like pkgsCross.arm-embedded.stdenv.cc should successfully build for -mcpu=cortex-m0 16:43:12
@dramforever:matrix.orgdramforeverit is effectively an unimplemented case16:43:29
@dramforever:matrix.orgdramforever* it is effectively an unimplemented case in nixpkgs16:43:34
@rosssmyth:matrix.orgrosssmythDefine "worked"16:44:09
@dramforever:matrix.orgdramforeversuccessfully produce a program for cortex-m016:44:35
@rosssmyth:matrix.orgrosssmythI showed you how I have done it, and it compiled successfully. I have not flashed any firmware, and inspecting the objdump it would have failed to flash.16:44:42
@rosssmyth:matrix.orgrosssmythI also just opened an issue because the armv6-m machinery is messed up and doesn't generate the correct gcc16:45:12
@rosssmyth:matrix.orgrosssmyth* I also just opened an issue because the armv6-m machinery is messed up and doesn't generate the correct gcc wrapper16:45:19
@dramforever:matrix.orgdramforever maybe i misunderstood but did you ever have an old version of nixpkgs that had a working pkgsCross.arm-embedded.stdenv.cc 16:46:29
@dramforever:matrix.orgdramforeveragain, as in, produce code correctly for cortex-m016:46:46
@rosssmyth:matrix.orgrosssmythno16:46:50
@dramforever:matrix.orgdramforeverokay thanks for clarifying16:47:01
@dramforever:matrix.orgdramforever this is the thing i'm getting
../.././newlib/libm/math/e_atanh.c:73:1: sorry, unimplemented: '-fstack-check=specific' for Thumb-1
16:47:41
@dramforever:matrix.orgdramforeverand like, tens of other errors on other similar functions16:47:52
@rosssmyth:matrix.orgrosssmythOk16:48:48
@dramforever:matrix.orgdramforever that's (import ./. { crossSystem = { config = "armv6m-none-eabi"; libc = "newlib"; gcc.float-abi = "softfp"; gcc.cpu = "cortex-m0"; }; }).stdenv.cc on aca270648ecaa9450a6feb34ff2d995e0b0a3444 16:49:16
@rosssmyth:matrix.orgrosssmythThere are many broken things in how arm seems to be handled in generating a stdenv16:49:22
@rosssmyth:matrix.orgrosssmythThe armv6m config is broken16:49:41
@rosssmyth:matrix.orgrosssmythand then handling for cortex-m0 doesn't seem implemented 16:49:58
@dramforever:matrix.orgdramforever handling for specifying config = "armv6m-none-eabi" isn't implemented 16:52:29
@dramforever:matrix.orgdramforever as in like, it doesn't know to properly configure armv6m 16:52:37
@dramforever:matrix.orgdramforever this one would have worked, if there wasn't this -fstack-check problem 16:53:22
@dramforever:matrix.orgdramforeverlog https://fars.ee/SUAG16:53:26
@rosssmyth:matrix.orgrosssmyth There is some stuff in lib/systems for armv6m. I do not know what else is needed 16:53:58
@dramforever:matrix.orgdramforever we need to either pass --with-arch=armv6-m to the gcc config, or pass -march=armv6-m in the gcc wrapper 16:54:51
@dramforever:matrix.orgdramforever when we parse armv6m, parsed.cpu.arch gets set to "armv6-m" but that seems unused 16:57:05
@wucke13:matrix.orgwucke13
In reply to @dramforever:matrix.org
i've been trying to go all in on the configurification and used gcc.cpu = "cortex-m0". newlib fails to compile
Have you tried stdenvNoLibc ?
22:09:53
24 Apr 2025
@dramforever:matrix.orgdramforever
In reply to @wucke13:matrix.org
Have you tried stdenvNoLibc ?
it would not work because ross indeed need newlib
00:31:07

Show newer messages


Back to Room ListRoom Version: 6