Hi everybody,

I'm currently trying to cross-compile PLplot for Linux/ppc64le,
Linux/aarch64 and MacOS/arm64 using the conda-forge toolchain [1].

[1]:https://github.com/conda-forge/plplot-feedstock/pull/1

>From the PLplot wiki [2] I figured I need a native build first, to get
access to some intermediary binaries, which are than used in a cross
build done in a second step. However, getting the native build running
in the cross environment is giving me some grief. Linking
lib/qsastime/tai-utc-gen in the native build fails for me because I
can't get CMake to *not* find and *not* prefer the sysroot of cross-
compiler (pc_libplplot_LINK_FLAGS is including the libm for the host
platform).

[2]:https://sourceforge.net/p/plplot/wiki/Building_PLplot_with_a_cross-compiler/

What I can't do is have two different environments here (native first
and cross later), because I run inside conda-build to make the
packaging automatic with the conda-forge toolchain for future PLplot
releases. While I can install a native PLplot version and point to its
prefix, this is insufficient to get lib/qsastime/tai-utc-gen and co for
the cross build.

I attached the log from the last build on Linux/aarch64, but you can
also find the logs online at Azure [1]. Note that I can run the Linux
builds with QEMU if cross-compiling is not possible (it is just very
slow), but I can't use hardware emulation for the MacOS/arm64 host.

Any pointers, tips or tricks are much appreciated.

All the best
Sebastian
source tree in: /home/conda/feedstock_root/build_artifacts/plplot_1645698895995/work
export PREFIX=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac
export BUILD_PREFIX=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env
export SRC_DIR=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/work
INFO: activate-binutils_linux-aarch64.sh made the following environmental changes:
+ADDR2LINE=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-addr2line
+AR=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ar
+AS=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-as
+CXXFILT=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-c++filt
+ELFEDIT=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-elfedit
+GPROF=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gprof
+LD_GOLD=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ld.gold
+LD=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ld
+NM=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-nm
+OBJCOPY=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-objcopy
+OBJDUMP=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-objdump
+RANLIB=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ranlib
+READELF=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-readelf
+SIZE=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-size
+STRINGS=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-strings
+STRIP=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-strip
INFO: activate-gcc_linux-aarch64.sh made the following environmental changes:
-BUILD=aarch64-conda_cos7-linux-gnu
+build_alias=x86_64-conda-linux-gnu
+BUILD=x86_64-conda-linux-gnu
+CC_FOR_BUILD=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-cc
+CC=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-cc
+CFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+CMAKE_ARGS=-DCMAKE_AR=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ar -DCMAKE_CXX_COMPILER_AR=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-ar -DCMAKE_C_COMPILER_AR=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-ar -DCMAKE_RANLIB=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ranlib -DCMAKE_CXX_COMPILER_RANLIB=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-ranlib -DCMAKE_LINKER=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-ld -DCMAKE_STRIP=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-strip -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH=$PREFIX;$BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_PROGRAM_PATH=$BUILD_PREFIX/bin;$PREFIX/bin -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64
+CMAKE_PREFIX_PATH=$PREFIX:$BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot/usr
+CONDA_BUILD_SYSROOT=$BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot
+_CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_aarch64_conda_cos7_linux_gnu
+CONDA_TOOLCHAIN_BUILD=x86_64-conda-linux-gnu
+CONDA_TOOLCHAIN_HOST=aarch64-conda-linux-gnu
+CPPFLAGS=-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include
+CPP=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-cpp
+DEBUG_CFLAGS=-ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+DEBUG_CPPFLAGS=-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem $PREFIX/include
+GCC_AR=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-ar
+GCC=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc
+GCC_NM=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-nm
+GCC_RANLIB=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gcc-ranlib
+HOST=aarch64-conda-linux-gnu
+host_alias=aarch64-conda-linux-gnu
+LDFLAGS=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined -Wl,-rpath,$PREFIX/lib -Wl,-rpath-link,$PREFIX/lib -L$PREFIX/lib
INFO: activate-gfortran_linux-aarch64.sh made the following environmental changes:
+DEBUG_FFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe
+DEBUG_FORTRANFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -ftree-vectorize -fPIC -fstack-protector-strong -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fvar-tracking-assignments -pipe
+F77=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gfortran
+F90=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gfortran
+F95=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-f95
+FC=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gfortran
+FFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+FORTRANFLAGS=-ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+GFORTRAN=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gfortran
INFO: activate-gxx_linux-aarch64.sh made the following environmental changes:
+CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+CXX_FOR_BUILD=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++
+CXX=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-c++
+DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/plplot-5.15.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+GXX=$BUILD_PREFIX/bin/aarch64-conda-linux-gnu-g++
+ CMAKE_ARGS='-DCMAKE_AR=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-ar -DCMAKE_CXX_COMPILER_AR=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-gcc-ar -DCMAKE_C_COMPILER_AR=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-gcc-ar -DCMAKE_RANLIB=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-gcc-ranlib -DCMAKE_LINKER=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-ld -DCMAKE_STRIP=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-strip -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac;/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/aarch64-conda-linux-gnu/sysroot -DCMAKE_INSTALL_PREFIX=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac  -DCMAKE_PROGRAM_PATH=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin;/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/bin -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64'
+ cmake -DCMAKE_C_COMPILER=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/x86_64-conda-linux-gnu-cc -DCMAKE_CXX_COMPILER=/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/x86_64-conda-linux-gnu-c++ -DCMAKE_Fortran_COMPILER= -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= -DCMAKE_Fortran_FLAGS= -DCMAKE_EXE_LINKER_FLAGS= -DENABLE_octave=OFF -DENABLE_tcl=ON -DENABLE_tk=ON -DBUILD_TEST=ON -B_build_native -GNinja
-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: $BUILD_PREFIX/bin/x86_64-conda-linux-gnu-cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_SYSTEM_NAME = Linux
-- CMAKE_COMMAND = $BUILD_PREFIX/bin/cmake
-- CMAKE_VERSION = 3.22.2
-- CMAKE_GENERATOR = Ninja
-- CMAKE_INCLUDE_PATH = 
-- Environment variable CMAKE_INCLUDE_PATH = 
-- CMAKE_LIBRARY_PATH = 
-- Environment variable CMAKE_LIBRARY_PATH = 
-- CMAKE_PLATFORM_INFO_DIR = $SRC_DIR/_build_native/CMakeFiles/3.22.2
-- SH_EXECUTABLE = /usr/bin/bash
-- Checking whether system has ANSI C header files
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Performing Test memchrExists
-- Performing Test memchrExists - Success
-- Performing Test freeExists
-- Performing Test freeExists - Success
-- Check for whether ctype.h macros work on characters with the
   high bit set.
-- High-bit characters - work
-- ANSI C header files - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for crt_externs.h
-- Looking for crt_externs.h - not found
-- Performing Test HAVE_SYS_WAIT_H
-- Performing Test HAVE_SYS_WAIT_H - Success
-- Looking for DIR symbol in sys/types.h;dirent.h
-- Looking for DIR symbol in sys/types.h;dirent.h - found
-- Check for signal return type in <signal.h>
-- Check for signal handler return type type void  - found
-- Looking for popen
-- Looking for popen - found
-- Looking for usleep
-- Looking for usleep - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for mkfifo
-- Looking for mkfifo - found
-- Looking for unlink
-- Looking for unlink - found
-- Looking for _NSGetArgc
-- Looking for _NSGetArgc - not found
-- Looking for isfinite
-- Looking for isfinite - found
-- Looking for finite
-- Looking for finite - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) 
-- Found Perl: /opt/conda/bin/perl (found version "5.32.1") 
-- WARNING: Perl module XML::Parser not found
-- WARNING: Perl module XML::DOM not found
-- The CXX compiler identification is GNU 10.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: $BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for using namespace support
-- Check for using namespace - found
-- Looking for C++ include cmath
-- Looking for C++ include cmath - found
-- Check for broken isnan support in <cmath>
-- Check for isnan in <cmath> - found
-- Check for using stdint.h with CXX compiler
-- Check for using stdint.h with CXX compiler - ok
-- Found PkgConfig: $BUILD_PREFIX/bin/pkg-config (found version "0.29.2") 
-- Looking for pkg-config - found
-- cxx_compiler_library_pathname_list = $PREFIX/lib/libstdc++.so;$BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot/usr/lib/libm.so;$PREFIX/lib/libgcc_s.so;$BUILD_PREFIX/lib/gcc/x86_64-conda-linux-gnu/10.3.0/libgcc.a;$BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot/usr/lib/libc.so;$PREFIX/lib/libgcc_s.so;$BUILD_PREFIX/lib/gcc/x86_64-conda-linux-gnu/10.3.0/libgcc.a
-- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) 
-- X11_FOUND = FALSE
-- X11_INCLUDE_DIR = 
-- X11_COMPILE_FLAGS = 
-- X11_LIBRARIES = 
-- The Fortran compiler identification is GNU 10.3.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: $BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gfortran - skipped
-- Check if isnan function is available in fortran
-- Check for isnan in fortran - not found
-- NOTICE: Found: $BUILD_PREFIX/bin/aarch64-conda-linux-gnu-gfortran
-- WARNING: swig not found. Disabling Java binding
-- WARNING: swig not found. Disabling Python binding
-- Start determining consistent system data for Tcl and friends
-- Found Tclsh: $PREFIX/bin/tclsh (found version "8.6") 
-- Found TCL: $PREFIX/lib/libtcl8.6.so  
-- Found TCLTK: $PREFIX/lib/libtcl8.6.so  
-- Found TK: $PREFIX/lib/libtk8.6.so  
-- Looking for Tcl - found
-- TCL_INCLUDE_PATH = $PREFIX/include
-- TCL_LIBRARY = $PREFIX/lib/libtcl8.6.so
-- TCL_STUB_LIBRARY = $PREFIX/lib/libtclstub8.6.a
-- TCL_LIBRARY_PATH = $PREFIX/lib
-- Looking for tclsh - found
-- TCL_TCLSH = $PREFIX/bin/tclsh
-- Looking for Tcl version with tclsh - found
-- PLPLOT_TCL_VERSION = 8.6.12
can't find package Itcl 3
    while executing
"package require Itcl 3"
    invoked from within
"puts -nonewline [package require Itcl 3]"
    (file "/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/work/_build_native/CheckITCL_Available.tcl" line 1)
-- Itcl not available or not compatible with current Tcl shell
-- WARNING: Disabling Itcl interface code
-- Looking for Tk - found
-- TK_INCLUDE_PATH = $PREFIX/include
-- TK_LIBRARY = $PREFIX/lib/libtk8.6.so
-- TK_STUB_LIBRARY = $PREFIX/lib/libtkstub8.6.a
-- TK_LIBRARY_PATH = $PREFIX/lib
-- Looking for wish - found
-- TK_WISH = $PREFIX/bin/wish
/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/bin/wish: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
-- Looking for Tk version with wish - not found
-- WARNING: setting ENABLE_tk to OFF
-- WARNING: Because Tk is disabled must disable Itk as well
-- TCL_RPATH = $PREFIX/lib
-- TCL_TK_RPATH = $PREFIX/lib
-- TCL_TK_ITCL_ITK_RPATH = $PREFIX/lib
-- Finished determining consistent system data for Tcl and friends
-- A test cmake run with language = Ada enabled failed.
-- Specify -DENABLE_compiler_diagnostics=ON to see full CMake diagnostics concerning this failure.
-- WARNING: no working Ada compiler so disabling Ada binding and examples.
-- WARNING: swig not found. Disabling Lua binding
-- A test cmake run with language = D enabled failed.
-- Specify -DENABLE_compiler_diagnostics=ON to see full CMake diagnostics concerning this failure.
-- WARNING: no working D compiler so disabling D binding and examples.
-- WARNING: SHAPELIB not found.  Setting HAVE_SHAPELIB to OFF.
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) 
-- Check for NaN awareness in C compiler
-- Check for NaN awareness in C compiler - not found
-- WARNING: Setting PL_HAVE_QHULL and WITH_CSA to OFF.
-- Checking for module 'pango'
--   No package 'pango' found
-- WARNING: pkg-config does not find pango.
-- Checking for module 'pangoft2'
--   No package 'pangoft2' found
-- WARNING: pkg-config does not find pangoft2.
-- WARNING: libltdl library not found. Setting ENABLE_DYNDRIVERS OFF.
   Please install that library and/or set the environment variables
   CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH appropriately.
-- Checking for module 'pangocairo'
--   No package 'pangocairo' found
includedir = 
linkdir = 
linkflags = 
cflags = 
-- WARNING: pango and/or cairo not found with pkg-config.
   Disabling cairo drivers.  To enable these drivers you must install
   development versions of pango and cairo and/or set
   the environment variable PKG_CONFIG_PATH appropriately.
-- WARNING: ENABLE_tk OFF.  Therefore turning off tk, tkwin, and ntk devices
-- Checking for modules 'lasi;pango;pangoft2'
--   No package 'lasi' found
--   No package 'pango' found
--   No package 'pangoft2' found
includedir = 
libdir = 
linkflags = 
cflags = 
-- WARNING: pango, pangoft2, or lasi not found with pkg-config.
   Setting PLD_psttf and PLD_psttfc to OFF.  Please install all of these packages
   and/or set the environment variable PKG_CONFIG_PATH appropriately.
-- Found unsuitable Qt version "" from NOTFOUND
-- WARNING: Suitable Qt4 development environment not found so trying Qt5 instead
CMake Warning at cmake/modules/qt.cmake:144 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" (requested
  version 5.3.1) with any of the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  cmake/modules/drivers.cmake:96 (include)
  cmake/modules/plplot.cmake:541 (include)
  CMakeLists.txt:159 (include)


-- WARNING: Suitable Qt5 development environment not found so disabling qt
-- WARNING: ENABLE_qt is OFF so setting all qt devices to OFF
-- WARNING: PLPLOT_USE_QT5 is ON so setting ENABLE_pyqt4 to OFF
-- WARNING: ENABLE_python is OFF so setting ENABLE_pyqt5 to OFF
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS) (Required is at least version "3.0.0")
-- wxWidgets_FOUND             : FALSE
-- wxWidgets_INCLUDE_DIRS      : 
-- wxWidgets_LIBRARIES         : 
-- wxWidgets_LIBRARY_DIRS      : 
-- wxWidgets_DEFINITIONS       : 
-- wxWidgets_DEFINITIONS_DEBUG : 
-- WARNING: wxWidgets or its libraries not found so setting all wxwidgets devices to OFF.
-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices to OFF.
-- Looking for haru pdf header and library
-- Looking for haru pdf header and library - not found
-- WARNING: Setting PLD_pdf to OFF.
-- PLPLOT_TEST_DEVICE = svg
-- PLPLOT_TEST_TARGET = PLPLOT:plplot
-- FAMILIED_PLPLOT_TEST_DEVICE = yes
-- WARNING: The ocamlc application not found. Disabling OCaml binding
-- WARNING: ENABLE_ocaml is OFF so disabling Plcairo module and lablgtk2 support
-- WARNING: validate target will not be available to check for syntax issues in the PLplot DocBook documentation because onsgmls (or env) was not found.
pc_libplplot_LINK_FLAGS = /home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/aarch64-conda-linux-gnu/sysroot/usr/lib/libm.so;-lqsastime
-- WARNING: Perl modules XML::Parser and/or XML::DOM not available
   so cannot check that swig_documentation.i is up to date.
-- WARNING concerning spurious warning messages generated by the gfortran compiler.
   The new Fortran binding is known to generate some ~50 "marked
   PRIVATE" warning messages when building the plplotfortran target with the
   gfortran Fortran compiler.  A typical example of such a warning
   message is

   Warning: Symbol 'interface_plcont' at (1) is marked PRIVATE but has been given the binding label 'c_plcont'

   It appears these warnings (which do not occur if using the ifort or
   nagfor Fortran compilers) are due to a gfortran bug (see
   <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49111> and
   <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64861>), i.e., they
   are spurious warnings concerning completely valid use of the
   private attribute for interface blocks describing C routines.
   There appear to be no known negative consequences of this gfortran
   bug other than the spurious warnings themselves.  Until this gfortran
   bug is fixed, these ~50 "marked PRIVATE" warnings should just be
   ignored for those using gfortran.
-- ENABLE_itcl: OFF
-- Itcl libraries: PLPLOT::plplot;$PREFIX/lib/libtcl8.6.so
-- TEST_ENVIRONMENT = EXAMPLES_PREFIX=$SRC_DIR/_build_native/examples SRC_EXAMPLES_PREFIX=$SRC_DIR/examples OUTPUT_DIR=$SRC_DIR/_build_native/ctest_examples_output_dir VC_CTEST_DIRECTORY=

Summary of CMake build system results for PLplot

Install location variables which can be set by the user.  N.B. These
variables are ordered by decreasing degree of generality, with the
_default_ values of the later ones in the list determined by the
values of variables earlier in the list.  So, for example, it is
usually sufficient in the vast majority of cases to just set
CMAKE_INSTALL_PREFIX, and the rest of these variables are adjusted
accordingly (at least for a fresh configuration), and it is rare
indeed that is is necessary for a user to set any variable here whose
name does not start with "CMAKE_INSTALL_".


CMAKE_INSTALL_PREFIX: /usr/local
CMAKE_INSTALL_EXEC_PREFIX: /usr/local
CMAKE_INSTALL_BINDIR: /usr/local/bin
CMAKE_INSTALL_DATADIR: /usr/local/share
CMAKE_INSTALL_LIBDIR: /usr/local/lib
CMAKE_INSTALL_INCLUDEDIR: /usr/local/include
CMAKE_INSTALL_INFODIR: /usr/local/share/info
CMAKE_INSTALL_MANDIR: /usr/local/share/man
CMAKE_INSTALL_PKG_CONFIG_DIR: /usr/local/lib/pkgconfig
DATA_DIR: /usr/local/share/plplot5.15.0
LIB_DIR: /usr/local/lib
INCLUDE_DIR: /usr/local/include/plplot
BIN_DIR: /usr/local/bin
DRV_DIR: /usr/local/lib/plplot5.15.0/drivers
DOC_DIR: /usr/local/share/doc/plplot
INFO_DIR: /usr/local/share/info
MAN_DIR: /usr/local/share/man
PKG_CONFIG_DIR: /usr/local/lib/pkgconfig
FORTRAN_MOD_DIR: /usr/local/lib/fortran/modules/plplot
TCL_DIR: /usr/local/share/plplot5.15.0/tcl


Other important CMake variables:

CMAKE_SYSTEM_NAME:	Linux
UNIX:			1
WIN32:			
APPLE:			
MSVC:				(MSVC_VERSION:	)
MINGW:			
MSYS:			
CYGWIN:			
BORLAND:		
WATCOM:		  

SWIG_FOUND:		FALSE
PERL_FOUND:		TRUE
X11_FOUND:		FALSE

CMAKE_BUILD_TYPE:	
CMAKE_C_COMPILER CMAKE_C_FLAGS:			/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/x86_64-conda-linux-gnu-cc 
CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS:		/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/x86_64-conda-linux-gnu-c++ 
CMAKE_Fortran_COMPILER CMAKE_Fortran_FLAGS:	/home/conda/feedstock_root/build_artifacts/plplot_1645698895995/_build_env/bin/aarch64-conda-linux-gnu-gfortran 
Target Fortran:	

ENABLE_DYNDRIVERS:	OFF
DRIVERS_LIST: mem;null;ps;svg;xfig
DEVICES_LIST: mem;null;ps;psc;svg;xfig

Library options:
BUILD_SHARED_LIBS:	ON		PL_DOUBLE:	ON

Optional libraries:
PL_HAVE_QHULL:		OFF		WITH_CSA:	OFF
PL_HAVE_FREETYPE:			PL_HAVE_PTHREAD:	
HAVE_AGG:				HAVE_SHAPELIB:	OFF

Language Bindings:
ENABLE_ada:		OFF
ENABLE_cxx:		ON
ENABLE_d:		OFF
ENABLE_fortran:		ON
ENABLE_java:		OFF
ENABLE_lua:		OFF
ENABLE_ocaml:		OFF
ENABLE_octave:		OFF
ENABLE_python:		OFF
ENABLE_qt:		OFF
ENABLE_pyqt5:		OFF
ENABLE_tcl:		ON
ENABLE_itcl:		OFF
ENABLE_tk:		OFF
ENABLE_itk:		OFF
ENABLE_wxwidgets:	OFF

-- Configuring done
-- Generating done
-- Build files have been written to: $SRC_DIR/_build_native
+ cmake --build _build_native
[1/419] Building C object lib/qsastime/CMakeFiles/deltaT-gen.dir/dspline.c.o
[2/419] Building C object include/CMakeFiles/plhershey-unicode-gen.dir/__/fonts/plhershey-unicode-gen.c.o
[3/419] Linking C executable include/plhershey-unicode-gen
[4/419] Building C object lib/qsastime/CMakeFiles/tai-utc-gen.dir/tai-utc-gen.c.o
[5/419] Building C object lib/qsastime/CMakeFiles/deltaT-gen.dir/deltaT-gen.c.o
[6/419] Generating plhershey-unicode.h
[7/419] Linking C executable lib/qsastime/tai-utc-gen
FAILED: lib/qsastime/tai-utc-gen 
: && $BUILD_PREFIX/bin/x86_64-conda-linux-gnu-cc   lib/qsastime/CMakeFiles/tai-utc-gen.dir/tai-utc-gen.c.o -o lib/qsastime/tai-utc-gen  -Wl,-rpath,$BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot/usr/lib  $BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot/usr/lib/libm.so && :
$BUILD_PREFIX/bin/../lib/gcc/x86_64-conda-linux-gnu/10.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: $BUILD_PREFIX/aarch64-conda-linux-gnu/sysroot/usr/lib/libm.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
[8/419] Generating pkgIndex.tcl
[9/419] Linking C executable lib/qsastime/deltaT-gen
ninja: build stopped: subcommand failed.
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to