<p></p>
On Fri, Apr 10, 2020 at 02:34:36AM -0700, James Mills wrote:<br>
> When I try to compile with `tcc` it ends with this error:<br>
> <br>
> ```sh<br>
> echo '} struct_printers;' >> printers.h-t<br>
> echo 'extern const struct_printers *printers;' >> printers.h-t<br>
> echo '#define MPERS_PRINTER_NAME(printer_name) printers->printer_name' >> printers.h-t<br>
> mv printers.h-t printers.h<br>
> for f in linux/32/syscallent.h linux/64/syscallent.h linux/aarch64/syscallent.h linux/aarch64/syscallent1.h linux/alpha/syscallent.h linux/arc/syscallent.h linux/arm/syscallent.h linux/avr32/syscallent.h linux/bfin/syscallent.h linux/csky/syscallent.h linux/hppa/syscallent.h linux/i386/syscallent.h linux/ia64/syscallent.h linux/m68k/syscallent.h linux/metag/syscallent.h linux/microblaze/syscallent.h linux/mips/syscallent-n32.h linux/mips/syscallent-n64.h linux/mips/syscallent-o32.h linux/mips/syscallent.h linux/nios2/syscallent.h linux/or1k/syscallent.h linux/powerpc/syscallent.h linux/powerpc64/syscallent.h linux/powerpc64/syscallent1.h linux/powerpc64le/syscallent.h linux/riscv64/syscallent.h linux/s390/syscallent.h linux/s390x/syscallent.h linux/s390x/syscallent1.h linux/sh/syscallent.h linux/sh64/syscallent.h linux/sparc/syscallent.h linux/sparc64/syscallent.h linux/sparc64/syscallent1.h linux/subcall.h linux/syscallent-common-32.h linux/syscallent-common.h linux/tile/syscallent.h linux/tile/syscallent1.h linux/x32/syscallent.h linux/x32/syscallent1.h linux/x86_64/syscallent.h linux/x86_64/syscallent1.h linux/xtensa/syscallent.h; do cat -- $f; done | \<br>
>    D="" \<br>
>    ./generate_sen.sh > sen.h<br>
> for f in access.c affinity.c aio.c alpha.c basic_filters.c bind.c bjm.c block.c bpf.c bpf_filter.c bpf_seccomp_filter.c bpf_sock_filter.c btrfs.c cacheflush.c capability.c chdir.c chmod.c clone.c copy_file_range.c count.c delay.c desc.c dirent.c dirent64.c dm.c dyxlat.c epoll.c error_prints.c evdev.c evdev_mpers.c eventfd.c execve.c fadvise.c fallocate.c fanotify.c fchownat.c fcntl.c fetch_bpf_fprog.c fetch_struct_flock.c fetch_struct_keyctl_kdf_params.c fetch_struct_mmsghdr.c fetch_struct_msghdr.c fetch_struct_stat.c fetch_struct_stat64.c fetch_struct_statfs.c fetch_struct_xfs_quotastat.c file_handle.c file_ioctl.c filter_qualify.c filter_seccomp.c flock.c fs_x_ioctl.c fsconfig.c fsmount.c fsopen.c fspick.c futex.c get_personality.c get_robust_list.c getcpu.c getcwd.c getrandom.c hdio.c hostname.c inotify.c inotify_ioctl.c io.c io_uring.c ioctl.c ioperm.c iopl.c ioprio.c ipc_msg.c ipc_msgctl.c ipc_sem.c ipc_shm.c ipc_shmctl.c kcmp.c kexec.c keyctl.c kvm.c ldt.c link.c listen.c lookup_dcookie.c loop.c lseek.c mem.c membarrier.c memfd_create.c mknod.c mmap_notify.c mmsghdr.c mount.c move_mount.c mq.c msghdr.c mtd.c nbd_ioctl.c net.c netlink.c netlink_crypto.c netlink_inet_diag.c netlink_kobject_uevent.c netlink_netfilter.c netlink_netlink_diag.c netlink_packet_diag.c netlink_route.c netlink_selinux.c netlink_smc_diag.c netlink_sock_diag.c netlink_unix_diag.c nlattr.c nsfs.c numa.c number_set.c oldstat.c open.c open_tree.c or1k_atomic.c pathtrace.c perf.c perf_ioctl.c personality.c pidfd_open.c pkeys.c poll.c prctl.c print_aio_sigset.c print_dev_t.c print_group_req.c print_ifindex.c print_instruction_pointer.c print_kernel_version.c print_mac.c print_mq_attr.c print_msgbuf.c print_sg_req_info.c print_sigevent.c print_statfs.c print_struct_stat.c print_time.c print_timespec.c print_timespec32.c print_timespec64.c print_timeval.c print_timeval64.c print_timex.c printmode.c printrusage.c printsiginfo.c process.c process_vm.c ptp.c ptrace_syscall_info.c quota.c random_ioctl.c readahead.c readlink.c reboot.c renameat<br>
>    sed -n 's/^SYS_FUNC(.*/extern &;/p' $f; \<br>
> done | sort -u > sys_func.h<br>
> tcc -E -P -DHAVE_CONFIG_H    -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I. -I.  -include config.h linux/x86_64/syscallent.h -o syscallent.i<br>
> tcc: erro<br>
> make: *** [Makefile:9840: syscallent.i] Error 1<br>
> rm ioctlsort0 ioctlsort1.o ioctlsort2 ioctlsort0.o ioctls_all0.h ioctlsort2.o ioctls_all2.h ioctls_all1.h ioctlsort1<br>
> #<br>
> ```<br>
> <br>
> It's not clear to me what specifiaclly is an 'unrecognized file type"<br>
<br>
Sorry, the error message ```tcc: erro``` is too cryptic.<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/132#issuecomment-611990082">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR7SNVNFGCQE3T4HLF3RL36RJANCNFSM4MFK32RQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR7E5ZNQXW2J25JU2UTRL36RJA5CNFSM4MFK32R2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOER5DUQQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/132#issuecomment-611990082",
"url": "https://github.com/strace/strace/issues/132#issuecomment-611990082",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>