[strace/strace] ./bootstrap fails: `automake: error: cannot open < src/xlat/Makemodule.am: No such file or directory` (#187)

0xfff0 notifications at github.com
Wed Jun 23 04:09:08 UTC 2021


Hi all,

I was just trying to build release 5.12 and ran into this issue:

```
automake: error: cannot open < src/xlat/Makemodule.am: No such file or directory
autoreconf: automake failed with exit status: 1
```

Full text (from scratch after `git clean -dfx`):

```
$ ./bootstrap 
generating ./src/xlat/st_check_enums.m4
generating ./src/xlat/access_modes.h
generating ./src/xlat/addrfams.h
generating ./src/xlat/adjtimex_modes.h
generating ./src/xlat/adjtimex_state.h
generating ./src/xlat/adjtimex_status.h
generating ./src/xlat/advise.h
generating ./src/xlat/af_packet_types.h
generating ./src/xlat/af_packet_versions.h
generating ./src/xlat/aio_cmds.h
generating ./src/xlat/aio_iocb_flags.h
generating ./src/xlat/archvals.h
generating ./src/xlat/arp_hardware_types.h
generating ./src/xlat/at_flags.h
generating ./src/xlat/at_statx_sync_types.h
generating ./src/xlat/atomic_ops.h
generating ./src/xlat/audit_arch.h
generating ./src/xlat/ax25_protocols.h
generating ./src/xlat/baud_options.h
generating ./src/xlat/bdaddr_types.h
generating ./src/xlat/blkpg_ops.h
generating ./src/xlat/bluetooth_l2_cid.h
generating ./src/xlat/bluetooth_l2_psm.h
generating ./src/xlat/bootflags1.h
generating ./src/xlat/bootflags2.h
generating ./src/xlat/bootflags3.h
generating ./src/xlat/bpf_attach_flags.h
generating ./src/xlat/bpf_attach_type.h
generating ./src/xlat/bpf_class.h
generating ./src/xlat/bpf_commands.h
generating ./src/xlat/bpf_file_mode_flags.h
generating ./src/xlat/bpf_map_flags.h
generating ./src/xlat/bpf_map_lookup_elem_flags.h
generating ./src/xlat/bpf_map_types.h
generating ./src/xlat/bpf_map_update_elem_flags.h
generating ./src/xlat/bpf_miscop.h
generating ./src/xlat/bpf_mode.h
generating ./src/xlat/bpf_op_alu.h
generating ./src/xlat/bpf_op_jmp.h
generating ./src/xlat/bpf_prog_flags.h
generating ./src/xlat/bpf_prog_types.h
generating ./src/xlat/bpf_query_flags.h
generating ./src/xlat/bpf_rval.h
generating ./src/xlat/bpf_size.h
generating ./src/xlat/bpf_src.h
generating ./src/xlat/bsg_flags.h
generating ./src/xlat/bpf_task_fd_type.h
generating ./src/xlat/bsg_protocol.h
generating ./src/xlat/bsg_subprotocol.h
generating ./src/xlat/bt_protocols.h
generating ./src/xlat/btrfs_balance_args.h
generating ./src/xlat/btrfs_balance_ctl_cmds.h
generating ./src/xlat/btrfs_balance_flags.h
generating ./src/xlat/btrfs_balance_state.h
generating ./src/xlat/btrfs_cont_reading_from_srcdev_mode.h
generating ./src/xlat/btrfs_dev_replace_cmds.h
generating ./src/xlat/btrfs_dev_replace_results.h
generating ./src/xlat/btrfs_dev_replace_state.h
generating ./src/xlat/btrfs_dev_stats_values.h
generating ./src/xlat/btrfs_dev_stats_flags.h
generating ./src/xlat/btrfs_features_compat.h
generating ./src/xlat/btrfs_features_compat_ro.h
generating ./src/xlat/btrfs_features_incompat.h
generating ./src/xlat/btrfs_compress_types.h
generating ./src/xlat/btrfs_defrag_flags.h
generating ./src/xlat/btrfs_logical_ino_args_flags.h
generating ./src/xlat/btrfs_key_types.h
generating ./src/xlat/btrfs_qgroup_limit_flags.h
generating ./src/xlat/btrfs_qgroup_ctl_cmds.h
generating ./src/xlat/btrfs_qgroup_status_flags.h
generating ./src/xlat/btrfs_scrub_flags.h
generating ./src/xlat/btrfs_send_flags.h
generating ./src/xlat/btrfs_snap_flags_v2.h
generating ./src/xlat/btrfs_space_info_flags.h
generating ./src/xlat/btrfs_tree_objectids.h
generating ./src/xlat/cacheflush_scope.h
generating ./src/xlat/cacheflush_flags.h
generating ./src/xlat/btrfs_qgroup_inherit_flags.h
generating ./src/xlat/caif_protocols.h
generating ./src/xlat/can_protocols.h
generating ./src/xlat/cap.h
generating ./src/xlat/cap_mask0.h
generating ./src/xlat/cap_mask1.h
./src/xlat/gen.sh: line 466: wait: pid 29288 is not a child of this shell
generating ./src/xlat/cap_version.h
configure.ac:296: installing 'build-aux/ar-lib'
configure.ac:27: installing 'build-aux/config.guess'
configure.ac:27: installing 'build-aux/config.sub'
configure.ac:25: installing 'build-aux/install-sh'
configure.ac:25: installing 'build-aux/missing'
automake: error: cannot open < src/xlat/Makemodule.am: No such file or directory
autoreconf: automake failed with exit status: 1
```
I couldn't figure out why is line 466 in `src/xlat/gen.sh` unhappy but this hack seemed to work around the issue (my box has 40 cores):

```
--- a/src/xlat/gen.sh
+++ b/src/xlat/gen.sh
@@ -440,7 +440,7 @@ main()
        local output_m4="${3:-}"
        local name
        local jobs=0
-       local ncpus="$(getconf _NPROCESSORS_ONLN)"
+       local ncpus=0
        local pids=
        [ "${ncpus}" -ge 1 ] ||
                ncpus=1
```
After this I was able to continue making and installing with no problem.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/issues/187
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20210623/178840fb/attachment.htm>


More information about the Strace-devel mailing list