Cross compiling pan

Emil Tomczyk <[email protected]> Thu, 15 Aug 2024 13:22:50 +0200
Newsgroups gmane.comp.gnome.apps.pan.user
Message-ID <htkcv6tvteacrpf74ro5lev4zw2iswhpugkkinirdnu474vdho@jiu5sv5hzrhn>
Hello,

I'm trying to update Void's package to 0.160 and CMake. I have trobule
with cross compilation. When I compile on x86_64 for e.g. armv7l I
receive following error:

```
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   HAVE_LKSTRFTIME (advanced)
For details see /builddir/pan-0.160/build/TryRunResults.cmake
```

Those file (TryRunResults.cmake) contains:

```
# This file was generated by CMake because it detected try_run() commands
# in crosscompiling mode. It will be overwritten by the next CMake run.
# Copy it to a safe location, set the variables to appropriate values
# and use it then to preset the CMake cache (using -C).


# HAVE_LKSTRFTIME
#    indicates whether the executable would have been able to run on its
#    target platform. If so, set HAVE_LKSTRFTIME to
#    the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN".
# HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDOUT
#    contains the text the executable would have printed on stdout.
#    If the executable would not have been able to run, set HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDOUT empty.
#    Otherwise check if the output is evaluated by the calling CMake code. If so,
#    check what the source file would have printed when called with the given arguments.
# HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDERR
#    contains the text the executable would have printed on stderr.
#    If the executable would not have been able to run, set HAVE_LKSTRFTIME__TRYRUN_OUTPUT_STDERR empty.
#    Otherwise check if the output is evaluated by the calling CMake code. If so,
#    check what the source file would have printed when called with the given arguments.
# The COMPILED_LKSTRFTIME_TEST variable holds the build result for this try_run().
#
# Executable    : /builddir/pan-0.160/build/CMakeFiles/cmTC_170fc-HAVE_LKSTRFTIME
# Run arguments :
#    Called from: [1]	/builddir/pan-0.160/CMakeLists.txt

set( HAVE_LKSTRFTIME
     "PLEASE_FILL_OUT-FAILED_TO_RUN"
     CACHE STRING "Result from try_run" FORCE)
```

I don't know how should it be handled, I have no understanding how CMake
works. Is it lack of some stuff in pan's build system, or maybe I have
missed something?

Emil

_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE5vWZ813v29my1WijJ327yryXom8FAma95QoACgkQJ327yryX
om8uog/+Ihnly5i82UZb7k8X4CjaFwG5qv0Wlefq7viF7rZstUKcp3MhavkspYHS
vNks5/Oj4PnZcmhB6ieeXm4nN3ybZyC9FJlnmPxypUy8ZIu7TqDAyMTyDat6ubir
bfH2yVj0oDr7EzlbimjazIU98nJ8FuLB6//dvU7tglMGd9j5UQ+xaO+Yg6zKW5kT
6YHZVZ6YSZ1+T7JYkSBh3cXcSuEB1C6AYOE82Vhl84juc4XTLiLpcPoTV7Isn7YW
bGeS0/7I1qLRuaValo8jIMv0p07nnK4aHXmGOhauoe5uFJzhuhfiuoLaoBbzz6NC
DmNm7oX7MtOlWFhNlh/+kQut3rmWwvu4YIRPBB4nVhS91d2Axfh2/BNvBiK6FohO
DiZM1rNhwarjz2Vi7wutFim29RCVKhcMEyiDQmdcxoZ4RdaZoi4ySDID2xbHLv41
0nLntaTgC11eqa7q/+fFus5fgZ5k1V1BETD0EGcW4xLpSy27aeFJD9r+gRzwO1ee
TttZE9r+ZWLxeCUqgZNLy9t/2odFeyBgsiZ+u1BanYffVGH3WLuHhkU0kibom82D
skIa/c+fAbviaYIsGU5CvXSjZYXLcSOFj0EQnFu9Jtw3komBzQ0AllvuBpPa8iLF
NOzVnZCz4+BHbXoh48N0I6og2QQuDaqgHlbKvmRpQwylZGAzFDE=
=nu4z
-----END PGP SIGNATURE-----