!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

410 Members
99 Servers

Load older messages


SenderMessageTime
26 Aug 2024
@getchoo:matrix.orggetchoo
In reply to @qyliss:fairydust.space
https://github.com/NixOS/nixpkgs/pull/337251
This is awesome! Really excited to see how it works with ARM
03:04:02
@terrorjack:matrix.terrorjack.comterrorjack joined the room.13:52:28
@msanft:matrix.org@msanft:matrix.org left the room.17:50:03
28 Aug 2024
@ereslibre:matrix.org@ereslibre:matrix.org left the room.07:37:38
@sorrowbird:matrix.orgbrutus joined the room.09:53:44
@sorrowbird:matrix.orgbrutus

hello, i'm new to nix and i was looking for a way to configure a clean cross platform environment for i686-elf as mean to try and follow osdev wiki

is there a way or nix-shell ready to just provide cross-compilers shell?

09:55:51
@sorrowbird:matrix.orgbrutusthe shell.nix was a bit confusing09:56:09
@k900:0upti.meK900For i686 you should be able to just use the default gcc with -m3209:56:54
@sorrowbird:matrix.orgbrutus
In reply to @k900:0upti.me
For i686 you should be able to just use the default gcc with -m32
wouldn't that target linux?
09:57:34
@k900:0upti.meK900The compiler itself doesn't really have a specific target (assuming no libc etc), what you get out is up to the linker09:59:14
@sorrowbird:matrix.orgbrutusaha ok10:00:00
@sorrowbird:matrix.orgbrutusi will do more research into it then10:00:12
@sorrowbird:matrix.orgbrutusthanks10:00:15
@k900:0upti.meK900You'd have to use -nostdinc and friends to avoid libc10:00:17
@k900:0upti.meK900But that's to be expected10:00:37
@sorrowbird:matrix.orgbrutus i will download gcc and binutils sources and make i686-elf-unknown just for the like of it
maybe it's beneficial later
10:05:33
29 Aug 2024
@trofi:matrix.orgtrofi At least pkgsCross.i686-embedded.stdenv.hostPlatform.config reports "i686-elf". That looks closest to bare-metal. 22:09:48
31 Aug 2024
@qyliss:fairydust.spaceAlyssa Ross

John Ericsondo you know what to do about this? https://matrix.to/#/!VjfUzaKsXokUdnQcvP:nixos.org/$0MvZSnxZ46Tco6vWU7qKEqRe3RdJUpyN94QvUCgCTso?via=nixos.org&via=matrix.org&via=nixos.dev

15:22:22
@qyliss:fairydust.spaceAlyssa Rossmaybe I could fix it by changing the argument passed to addEnvHooks?15:22:41
1 Sep 2024
@elvishjerricco:matrix.orgElvishJerriccoHm. Mongodb cross compilation is using the host platform's python311. Which worked by coincidence because I have aarch64 as an emulated system, but it made a 10min build into 1hr 32min17:10:48
@curid:matrix.orgCuridweb scale software require web scale build times17:19:09
@elvishjerricco:matrix.orgElvishJerriccoah, just needed to use the right python: https://github.com/NixOS/nixpkgs/pull/33886518:09:15
2 Sep 2024
@sup3rf1y:matrix.orgsuperfly joined the room.13:57:09
3 Sep 2024
@cynerd:matrix.orgcynerd left the room.14:30:48
@cynerd:matrix.orgcynerd joined the room.14:38:34
4 Sep 2024
@ss:someonex.netSomeoneSerge (utc+3) changed their display name from SomeoneSerge (UTC+3) to SomeoneSerge (nix.camp).21:48:48
5 Sep 2024
@cidkid:matrix.orgDylan changed their profile picture.15:03:57
@jaredbaur:matrix.orgJared BaurFix for x265 on armv7: https://github.com/NixOS/nixpkgs/pull/33982215:04:54
@lingo5080:matrix.orglingo5080 joined the room.15:55:01
6 Sep 2024
@kamillaova:matrix.orgKamilla 'ova

TLDR: how to cross-compile qt6 with qtwayland and maybe qtwebengine?

Hi, does anyone know anything about this problem?

qtquick3d> Skipping the build as the condition "TARGET Qt::Quick" is not met.
qtquick3d> -- Configuring done (1.0s)
qtquick3d> -- Generating done (0.0s)
qtquick3d> CMake Warning:
qtquick3d>   Manually-specified variables were not used by the project:
qtquick3d>
qtquick3d>     BUILD_TESTING
qtquick3d>     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
qtquick3d>     CMAKE_INSTALL_NAME_DIR
qtquick3d>     CMAKE_POLICY_DEFAULT_CMP0025
qtquick3d>
qtquick3d>
qtquick3d> -- Build files have been written to: /build/qtquick3d-everywhere-src-6.7.2/build
qtquick3d> cmake: enabled parallel building
qtquick3d> cmake: enabled parallel installing
qtquick3d> Running phase: buildPhase
qtquick3d> build flags: -j8
qtquick3d> ninja: no work to do.
qtquick3d> Running phase: glibPreInstallPhase
qtquick3d> Running phase: installPhase
qtquick3d> install flags: -j8 install
qtquick3d> ninja: error: unknown target 'install'

nom-build --argstr system 'aarch64-linux' --argstr crossSystem 'riscv64-linux' -A ladybird --keep-going

It can't build.. buildPackages.qt6.qtquick3d??
Okay, it kinda can't find TARGET Qt::Quick, but why? According to https://hydra.nixos.org/build/270608875/nixlog/1, this error is not expected...

afaik build of this derivation is caused by the
nativeBuildInputs = [ pkg-config ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ buildPackages.qt6.qtwayland.dev ];
in pkgs/development/libraries/qt-6/modules/qtwayland.nix

I'm not sure that if is correct fix for qtwaylandscanner not found problem, and I'm also not sure if it will fix it, but I need to try this, probably.

UPD 2 days after writing the first part of this message
After git pull master I got a new error with qttranslations:

       > [0/1] Install the project...
       > -- Install configuration: "Release"
       > -- Installing: /nix/store/knbwdsl8i4gawlyj3y3mlsf0vaff77k9-qttranslations-6.7.2/translations/assistant_ar.qm
       > CMake Error at translations/cmake_install.cmake:54 (file):
       >   file INSTALL cannot copy file
       >   "/build/qttranslations-everywhere-src-6.7.2/build//nix/store/knbwdsl8i4gawlyj3y3mlsf0vaff77k9-qttranslations-6.7.2/translations/assistant_ar.qm"
       >   to
       >   "/nix/store/knbwdsl8i4gawlyj3y3mlsf0vaff77k9-qttranslations-6.7.2/translations/assistant_ar.qm":
       >   Permission denied.

just, what??

13:40:59

Show newer messages


Back to Room ListRoom Version: 6