> > I tried it myself (with mingw target) and I got: > > loclibpth='/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib' I have exactly this one in Config_heavy.pl. > So try putting (assoc-ref native-inputs "libc") instead of > (assoc-ref inputs "libc") in the perl package definition (make sure to > accept native-inputs in the function in the first place) in order to debug > the problem (or maybe (assoc-ref inputs "mingw-source")). I am not 100% sure I understood everything, but I tried that and it changed nothing. > > When cross compiling it's important to get right which parts you get > from the host libs and which from the target libs, maybe that's messed > up there. I am trying to build Gtk+ for mingw. This gives me an error in the perl dependency. I have the same error if I build perl for mingw, but it is a little confusing: perl should be a "maintainer" dependency for Gtk+ (I guess? Maybe for automake or some code generators like the gobject-introspection tools?), so it should be built to run on the build machine (x86_64-linux) and not on the host/target (mingw). Why is there an error if I build perl for mingw, or if I build perl as a dependency for mingw Gtk+, but not if I build perl for my native system? Or maybe native-perl and target-perl are both dependencies for target-gtk+? Best regards, Vivien