ros / meta-ros

OpenEmbedded Layers for ROS 1 and ROS 2
MIT License
381 stars 251 forks source link

How can I disable fortran in my build #814

Closed JackNWhite closed 3 years ago

JackNWhite commented 3 years ago

Hi,

I'm using meta-ros on my Petalinux build, which is based on Yocto zeus(1). I want to use foxy, so I am including the meta-ros-common, meta-ros2, meta-ros2-foxy and meta-ros-backports-dunfell.

(1) I have asked Xilinx to support dunfell in their next Petalinux release, but I am not hopeful.

Here is the list of recipes I have added:

CONFIG_amazon-kvs-sdk-cpp-kinesis-video-producer
CONFIG_ament-cmake
CONFIG_ament-cmake-ros
CONFIG_ament-lint
CONFIG_ament-nodl
CONFIG_ament-package
CONFIG_angles
CONFIG_apriltag
CONFIG_aws-cpp-sdk
CONFIG_bullet
CONFIG_cartographer
CONFIG_cartographer-ros
CONFIG_class-loader
CONFIG_collada-dom
CONFIG_common-interfaces
CONFIG_console-bridge
CONFIG_console-bridge-vendor
CONFIG_control-msgs
CONFIG_cppcheck
CONFIG_cppunit
CONFIG_cyclonedds
CONFIG_depthimage-to-laserscan
CONFIG_eigen-stl-containers
CONFIG_eigen3-cmake-module
CONFIG_example-interfaces
CONFIG_fastcdr
CONFIG_fastrtps
CONFIG_fcl
CONFIG_filters
CONFIG_fmilibrary
CONFIG_fmilibrary-vendor
CONFIG_foonathan-memory
CONFIG_foonathan-memory-vendor
CONFIG_geographic-info
CONFIG_geographiclib
CONFIG_geometry2
CONFIG_gps-umd
CONFIG_graphicsmagick
CONFIG_graphviz
CONFIG_ifm3d-core
CONFIG_image-common
CONFIG_image-pipeline
CONFIG_image-publisher
CONFIG_image-transport-plugins
CONFIG_interactive-markers
CONFIG_joint-state-publisher
CONFIG_joy
CONFIG_joystick
CONFIG_kdl-parser
CONFIG_laser-geometry
CONFIG_laser-proc
CONFIG_launch
CONFIG_launch-ros
CONFIG_lgsvl-msgs
CONFIG_libccd
CONFIG_libflann
CONFIG_libfreenect
CONFIG_libphidget22
CONFIG_libstatistics-collector
CONFIG_libyaml-vendor
CONFIG_log4cxx
CONFIG_message-filters
CONFIG_ogre
CONFIG_ompl
CONFIG_openblas
CONFIG_osrf-pycommon
CONFIG_osrf-testing-tools-cpp
CONFIG_pcl
CONFIG_pcl-msgs
CONFIG_perception-pcl
CONFIG_phidgets-drivers
CONFIG_pluginlib
CONFIG_python
CONFIG_python-botocore
CONFIG_python-cmake-module
CONFIG_python-pillow
CONFIG_python-pydot
CONFIG_python-rosdep-data
CONFIG_python3-flake8
CONFIG_python3-mccabe
CONFIG_qhull
CONFIG_rcl
CONFIG_rcl-interfaces
CONFIG_rcl-yaml-param-parser
CONFIG_rclc
CONFIG_rclcpp
CONFIG_rclpy
CONFIG_rcpputils
CONFIG_rcutils
CONFIG_resource-retriever
CONFIG_rmw
CONFIG_rmw-dds-common
CONFIG_rmw-implementation
CONFIG_robot-state-publisher
CONFIG_ros-environment
CONFIG_ros-workspace
CONFIG_ros1-bridge
CONFIG_ros2-ouster
CONFIG_ros2cli
CONFIG_rosbag2
CONFIG_rosbag2-compression
CONFIG_rosidl-runtime-py
CONFIG_rpyutils
CONFIG_spdlog
CONFIG_spdlog-vendor
CONFIG_sros2
CONFIG_system-modes
CONFIG_teleop-twist-joy
CONFIG_teleop-twist-keyboard
CONFIG_test-interface-files
CONFIG_tinyxml-vendor
CONFIG_tinyxml2-vendor
CONFIG_tlsf
CONFIG_turtlebot3-msgs
CONFIG_uncrustify-vendor
CONFIG_unique-identifier-msgs
CONFIG_urdf
CONFIG_urdfdom
CONFIG_urdfdom-headers
CONFIG_urg-c
CONFIG_urg-node
CONFIG_urg-node-msgs
CONFIG_vision-opencv
CONFIG_wxwidgets
CONFIG_xacro
CONFIG_yaml-cpp
CONFIG_yaml-cpp-vendor
CONFIG_zstd
CONFIG_zstd-vendor

At a point in the build, I get the following Problem:

ERROR: libgfortran-9.2.0-r0 do_configure: Execution of '/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/temp/run.do_configure.1683514' failed with exit code 1:
configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-libtool-sysroot, --enable-languages, --enable-threads, --enable-default-pie, --enable-c99, --enable-long-long, --enable-symvers, --enable-libstdcxx-pch, --without-local-prefix, --enable-lto, --disable-libssp, --enable-libitm, --disable-bootstrap, --disable-libmudflap, --with-system-zlib, --with-linker-hash-style, --enable-linker-build-id, --with-ppl, --with-cloog, --enable-checking, --enable-cheaders, --without-isl, --with-sysroot, --with-build-sysroot, --disable-nls, --with-glibc-version, --enable-initfini-array, --enable-__cxa_atexit
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-xilinx-linux-gnu
checking target system type... aarch64-xilinx-linux-gnu
checking for aarch64-xilinx-linux-gcc... aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot accepts -g... yes
checking for aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to accept ISO C89... none needed
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot understands -c and -o together... yes
checking how to run the C preprocessor... aarch64-xilinx-linux-gcc -E --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
checking for grep that handles long lines and -e... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/grep
checking for egrep... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/install -c
checking whether build environment is sane... yes
checking for aarch64-xilinx-linux-strip... aarch64-xilinx-linux-strip
checking for a thread-safe mkdir -p... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for aarch64-xilinx-linux-gcc... (cached) aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
checking whether we are using the GNU C compiler... (cached) yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot accepts -g... (cached) yes
checking for aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to accept ISO C89... (cached) none needed
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot understands -c and -o together... (cached) yes
checking for aarch64-xilinx-linux-ranlib... aarch64-xilinx-linux-gcc-ranlib
checking for gawk... (cached) gawk
checking for dwz... no
checking how to print strings... printf
checking for a sed that does not truncate output... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/sed
checking for fgrep... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/grep -F
checking for ld used by aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot... aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot 
checking if the linker (aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot ) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... aarch64-xilinx-linux-nm
checking the name lister (aarch64-xilinx-linux-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot  option to reload object files... -r
checking for aarch64-xilinx-linux-objdump... aarch64-xilinx-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-xilinx-linux-ar... aarch64-xilinx-linux-gcc-ar
checking for aarch64-xilinx-linux-strip... (cached) aarch64-xilinx-linux-strip
checking for aarch64-xilinx-linux-ranlib... (cached) aarch64-xilinx-linux-gcc-ranlib
checking command to parse aarch64-xilinx-linux-nm output from aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -fno-rtti -fno-exceptions... no
checking for aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to produce PIC... -fPIC -DPIC
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot PIC flag -fPIC -DPIC works... yes
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot static flag -static works... yes
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -c -o file.o... yes
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -c -o file.o... (cached) yes
checking whether the aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot linker (aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot ) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking unwind.h usability... yes
checking unwind.h presence... yes
checking for unwind.h... yes
checking for _Unwind_Backtrace... yes
checking for -funwind-tables option... yes
checking for -frandom-seed=string option... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -W... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wall... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wwrite-strings... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wstrict-prototypes... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wmissing-prototypes... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wold-style-definition... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wmissing-format-attribute... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -Wcast-qual... yes
checking for _Unwind_GetIPInfo... yes
checking __sync extensions... yes
checking __atomic extensions... yes
checking output filetype... elf64
looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in gstdint.h... stdint.h (already complete)
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking link.h usability... yes
checking link.h presence... yes
checking for link.h... yes
checking for dl_iterate_phdr... yes
checking sys/ldr.h usability... no
checking sys/ldr.h presence... no
checking for sys/ldr.h... no
checking for fcntl... yes
checking whether strnlen is declared... yes
checking for lstat... yes
checking for readlink... yes
checking for getexecname... no
checking for clock_gettime... yes
checking whether -pthread is supported... yes
checking for compress in -lz... no
checking whether --compress-debug-sections is supported... yes
checking for objcopy... aarch64-xilinx-linux-objcopy
checking for readelf... aarch64-xilinx-linux-readelf
checking whether objcopy supports debuglink... aarch64-xilinx-linux-objcopy: Unable to recognise the format of the input file `/bin/ls'
no
checking whether tests can run... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating backtrace-supported.h
config.status: creating install-debuginfo-for-buildid.sh
config.status: creating config.h
config.status: executing libtool commands
config.status: executing gstdint.h commands
config.status: executing default commands
configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-libtool-sysroot, --enable-languages, --enable-threads, --enable-default-pie, --enable-c99, --enable-long-long, --enable-symvers, --enable-libstdcxx-pch, --without-local-prefix, --enable-lto, --disable-libssp, --enable-libitm, --disable-bootstrap, --disable-libmudflap, --with-system-zlib, --with-linker-hash-style, --enable-linker-build-id, --with-ppl, --with-cloog, --enable-checking, --enable-cheaders, --without-isl, --with-sysroot, --with-build-sysroot, --disable-nls, --with-glibc-version, --enable-initfini-array, --enable-__cxa_atexit
configure: WARNING: unrecognized options: --with-libtool-sysroot, --enable-languages, --enable-threads, --enable-default-pie, --enable-c99, --enable-long-long, --enable-libstdcxx-pch, --without-local-prefix, --enable-lto, --disable-libssp, --enable-libitm, --disable-bootstrap, --disable-libmudflap, --with-system-zlib, --with-linker-hash-style, --enable-linker-build-id, --with-ppl, --with-cloog, --enable-checking, --enable-cheaders, --without-isl, --with-sysroot, --with-build-sysroot, --disable-nls, --with-glibc-version, --enable-initfini-array, --enable-__cxa_atexit
checking build system type... x86_64-pc-linux-gnu
checking for --enable-version-specific-runtime-libs... no
checking for --enable-intermodule... 
checking host system type... aarch64-xilinx-linux-gnu
checking target system type... aarch64-xilinx-linux-gnu
checking for a BSD-compatible install... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/install -c
checking whether build environment is sane... yes
checking for aarch64-xilinx-linux-strip... aarch64-xilinx-linux-strip
checking for a thread-safe mkdir -p... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for aarch64-xilinx-linux-gcc... aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot accepts -g... yes
checking for aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to accept ISO C89... none needed
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot understands -c and -o together... yes
checking dependency style of aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot... none
checking how to run the C preprocessor... aarch64-xilinx-linux-gcc -E --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
checking for grep that handles long lines and -e... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/grep
checking for egrep... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for aarch64-xilinx-linux-gcc... (cached) aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
checking whether we are using the GNU C compiler... (cached) yes
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot accepts -g... (cached) yes
checking for aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to accept ISO C89... (cached) none needed
checking whether aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot understands -c and -o together... (cached) yes
checking dependency style of aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot... (cached) none
checking for CET support... no
checking whether symbol versioning is supported... gnu
checking for gcc that supports -ffunction-sections -fdata-sections... yes
checking for a sed that does not truncate output... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/sed
checking for fgrep... /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/hosttools/grep -F
checking how to print strings... printf
checking for ld used by aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot... aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot 
checking if the linker (aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot ) is GNU ld... yes
checking for -mclear-hwcap... no
checking for aarch64-xilinx-linux-as... aarch64-xilinx-linux-as 
checking for aarch64-xilinx-linux-ar... aarch64-xilinx-linux-gcc-ar
checking for aarch64-xilinx-linux-ranlib... aarch64-xilinx-linux-gcc-ranlib
checking whether make sets $(MAKE)... (cached) yes
checking for BSD- or MS-compatible name lister (nm)... aarch64-xilinx-linux-nm
checking the name lister (aarch64-xilinx-linux-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot  option to reload object files... -r
checking for aarch64-xilinx-linux-objdump... aarch64-xilinx-linux-objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-xilinx-linux-ar... (cached) aarch64-xilinx-linux-gcc-ar
checking for aarch64-xilinx-linux-strip... (cached) aarch64-xilinx-linux-strip
checking for aarch64-xilinx-linux-ranlib... (cached) aarch64-xilinx-linux-gcc-ranlib
checking command to parse aarch64-xilinx-linux-nm output from aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -fno-rtti -fno-exceptions... no
checking for aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to produce PIC... -fPIC -DPIC
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot PIC flag -fPIC -DPIC works... yes
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot static flag -static works... yes
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -c -o file.o... yes
checking if aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -c -o file.o... (cached) yes
checking whether the aarch64-xilinx-linux-gcc  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot linker (aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot ) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... cross
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for aarch64-xilinx-linux-gfortran... aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot
checking whether we are using the GNU Fortran compiler... no
checking whether aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot accepts -g... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
libtool.m4: error: problem compiling FC test program
checking for aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot option to produce PIC... 
checking if aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot static flag  works... no
checking if aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -c -o file.o... no
checking if aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot supports -c -o file.o... (cached) no
checking whether the aarch64-xilinx-linux-gfortran  -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot linker (aarch64-xilinx-linux-ld --sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot ) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether the GNU Fortran compiler is working... no
configure: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/gcc-9.2.0/build.aarch64-xilinx-linux.aarch64-xilinx-linux/aarch64-xilinx-linux/libgfortran/config.log
WARNING: /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/temp/run.do_configure.1683514:1 exit 1 from '../$relpath/$target/configure --build=x86_64-linux --host=aarch64-xilinx-linux --target=aarch64-xilinx-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot --with-gnu-ld --enable-shared --enable-languages=c,c++,fortran --enable-threads=posix --disable-multilib --enable-default-pie --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=aarch64-xilinx-linux- --without-local-prefix --enable-lto --disable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-sysroot=/not/exist --with-build-sysroot=/home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/recipe-sysroot --disable-static --disable-nls --with-glibc-version=2.28 --enable-initfini-array --enable-__cxa_atexit'

ERROR: Logfile of failure stored in: /home/jack/ws_zcu102/petalinux/Petalinux_Basic/build/tmp/work/aarch64-xilinx-linux/libgfortran/9.2.0-r0/temp/log.do_configure.1683514

Presumably, this means that the GNU Fortran compiler is disabled, and I can see from a post on the Xilinx forum that Xilinx says the Fortran compiler is "not supported", however, it is still in their GCC repo.

I can't work out from the above log what is being built that requires gfortran. Is there a way of easily finding this out? I am somewhat of a Yocto noob.

shr-project commented 3 years ago

With git grep you can see:

meta-ros-common/conf/ros-distro/include/enable-fortran.inc:FORTRAN_forcevariable = "${@bb.utils.contains('ROS_WORLD_SKIP_GROUPS', 'fortran', '', ',fortran', d)}"
meta-ros-common/conf/ros-distro/ros-distro.conf:# "lapack" needs FORTRAN support

the easiest option is to add fortran to ROS_WORLD_SKIP_GROUPS ti disable this.

JackNWhite commented 3 years ago

Thank you; I decided to go the other way and get Fortran working in the build.