!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

574 Members
127 Servers

Load older messages


SenderMessageTime
6 Jan 2025
@sananatheskenana:matrix.orglzcunt *

Hey, when building a gcc cross-compiler for a isStatic target I keep getting this error ```
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/ supports -fno-rtti -fno-exceptions... no checking for /build/build/./gcc/xgcc -B/build/build/./gcc/ option to produce PIC... -fPIC -DPIC checking if /build/build/./gcc/xgcc -B/build/build/./gcc/ PIC flag -fPIC -DPIC works... yes checking if /build/build/./gcc/xgcc -B/build/build/./gcc/ static flag -static works... no checking if /build/build/./gcc/xgcc -B/build/build/./gcc/ supports -c -o file.o... yes checking if /build/build/./gcc/xgcc -B/build/build/./gcc/ supports -c -o file.o... (cached) yes checking whether the /build/build/./gcc/xgcc -B/build/build/./gcc/ linker (/build/build/./gcc/collect-ld) supports shared libraries... yes checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [Makefile:12179: configure-target-libstdc++-v3] Error 1 make[1]: *** Waiting for unfinished jobs....

17:54:23
@sananatheskenana:matrix.orglzcunt *

Hey, when building a gcc cross-compiler for a isStatic target I keep getting this error

checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -fno-rtti -fno-exceptions... no checking for /build/build/./gcc/xgcc -B/build/build/./gcc/     option to produce PIC... -fPIC -DPIC checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     PIC flag -fPIC -DPIC works... yes checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     static flag -static works... no checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -c -o file.o... yes checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -c -o file.o... (cached) yes checking whether the /build/build/./gcc/xgcc -B/build/build/./gcc/     linker (/build/build/./gcc/collect-ld) supports shared libraries... yes checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC\_NO\_EXECUTABLES. make\[1\]: \*\*\* \[Makefile:12179: configure-target-libstdc++-v3\] Error 1 make\[1\]: \*\*\* Waiting for unfinished jobs....
17:54:35
@sananatheskenana:matrix.orglzcunt *

Hey, when building a gcc cross-compiler for a isStatic target I keep getting this error

checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -fno-rtti -fno-exceptions... no
checking for /build/build/./gcc/xgcc -B/build/build/./gcc/     option to produce PIC... -fPIC -DPIC
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     PIC flag -fPIC -DPIC works... yes
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     static flag -static works... no
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -c -o file.o... yeschecking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -c -o file.o... (cached) yes checking whether the /build/build/./gcc/xgcc -B/build/build/./gcc/     linker (/build/build/./gcc/collect-ld) supports shared libraries... yes checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC\_NO\_EXECUTABLES. make\[1\]: \*\*\* \[Makefile:12179: configure-target-libstdc++-v3\] Error 1 make\[1\]: \*\*\* Waiting for unfinished jobs....
17:55:24
@sananatheskenana:matrix.orglzcunt *

Hey, when building a gcc cross-compiler for a isStatic target I keep getting this error

checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -fno-rtti -fno-exceptions... no
checking for /build/build/./gcc/xgcc -B/build/build/./gcc/     option to produce PIC... -fPIC -DPIC
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     PIC flag -fPIC -DPIC works... yes
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     static flag -static works... no
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -c -o file.o... yes
checking if /build/build/./gcc/xgcc -B/build/build/./gcc/     supports -c -o file.o... (cached) yes
checking whether the /build/build/./gcc/xgcc -B/build/build/./gcc/     linker (/build/build/./gcc/collect-ld) supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC\_NO\_EXECUTABLES.
make\[1\]: \*\*\* \[Makefile:12179: configure-target-libstdc++-v3\] Error 1 make\[1\]: \*\*\* Waiting for unfinished jobs....
17:55:48
@sananatheskenana:matrix.orglzcuntoof I think I formatted it fine this time17:56:49
@sananatheskenana:matrix.orglzcunt* oof I think I formatted it fine this time, why are code blocks hard in matrix?17:57:01
@greg:thehellings.comGreg Hellings I feel this in my soul 17:57:23
@sananatheskenana:matrix.orglzcuntthis does not happen when building for a dynamic target tho17:57:44
@curid:matrix.org@curid:matrix.orgor when not cross-compiling17:58:15
@curid:matrix.org@curid:matrix.org* does it happen when not cross-compiling17:58:31
@curid:matrix.org@curid:matrix.org* does it happen when not cross-compiling?17:58:35
@sananatheskenana:matrix.orglzcuntI can't test that lol17:58:51
@sananatheskenana:matrix.orglzcuntBut good question17:59:04
@sananatheskenana:matrix.orglzcunt* I can't test that lol, I don't have anything native to this target yet17:59:46
@sananatheskenana:matrix.orglzcuntis it likely that the -static flag is broken because the checks say it doesn't?18:00:24
@sananatheskenana:matrix.orglzcunt* is it likely that the -static flag is broken because the checks say it doesn't work?18:00:30
@sananatheskenana:matrix.orglzcuntI should probably read config.log18:01:46
@artturin:matrix.orgArtturin What's your target and what attr are you building? 18:10:10
@sananatheskenana:matrix.orglzcuntThe target is the mlibc target that I'm working on18:10:42
@sananatheskenana:matrix.orglzcuntmlibc does support static on linux, but i can't get it to build. right now only nonstatic builds18:13:00
@sananatheskenana:matrix.orglzcuntThe attr is stdenvNoLibc.stdenv.cc.cc18:13:01
@sananatheskenana:matrix.orglzcuntsorry had a short connection loss18:13:12
@sananatheskenana:matrix.orglzcunt* mlibc does support static on linux, but i can't get it to build. right now only nonstatic builds. and this shouldn't really be related to mlibc because it's built without headers and is the nolibc compiler18:19:33
7 Jan 2025
@hsngrmpf:matrix.orgDavHauCan we revert this PR? https://github.com/NixOS/nixpkgs/pull/169475 It generally seems to break cross compilation due to running OOM. What ever it fixes can't seem to be more important that being able to cross compile at all06:58:29
@sss:matrix.dark-alexandr.netsss 09:05:12
@sss:matrix.dark-alexandr.netsss changed their profile picture.09:06:25
@otanaut:matrix.orgotanautHey, is there a way to build AND evaluate on a remote builder?22:54:45
@rosscomputerguy:matrix.orgTristan RossYou could ssh in and run an eval. I think there's a way to copy a dev file and its dependencies to a remote?23:07:06
@otanaut:matrix.orgotanautAt the end, I am trying to contribute a package definition and test whether I can get the build right. Since I am on a Mac, I am using remote builders. coping around files, sshing and evaling doesnt sound continent for the development.23:24:16
@otanaut:matrix.orgotanaut* At the end, I am trying to contribute a package definition and test whether I can get the build right. Since I am on a Mac, I am using remote builders. copying around files, sshing and evaling doesnt sound convenient for development.23:25:58

Show newer messages


Back to Room ListRoom Version: 6