hangover icon indicating copy to clipboard operation
hangover copied to clipboard

Can't build: "The ARM target needs to support floating point instructions."

Open Mooling0602 opened this issue 7 months ago • 4 comments

mooling@mooling-nabu ~/D/h/w/build ((hangover-10.6.1)) [1]> ../configure \
                                                                  --disable-tests \
                                                                  --with-mingw=clang \
                                                                  --enable-archs=arm64ec,aarch64,i386,arm \
                                                                  --host=arm64ec-w64-mingw32
checking build system type... aarch64-unknown-linux-gnu
checking host system type... arm64ec-w64-mingw32
checking for arm64ec-w64-mingw32-gcc... arm64ec-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether arm64ec-w64-mingw32-gcc accepts -g... yes
checking for arm64ec-w64-mingw32-gcc option to enable C11 features... none needed
checking for arm64ec-w64-mingw32-g++... arm64ec-w64-mingw32-g++
checking whether the compiler supports GNU C++... yes
checking whether arm64ec-w64-mingw32-g++ accepts -g... yes
checking for arm64ec-w64-mingw32-g++ option to enable C++11 features... none needed
checking for arm64ec-w64-mingw32-cpp... no
checking for cpp... cpp
configure: WARNING: using cross tools not prefixed with host triplet
checking for arm64ec-w64-mingw32-ld... no
checking for ld... ld
checking whether arm64ec-w64-mingw32-gcc supports Thumb-2... no
checking whether arm64ec-w64-mingw32-gcc supports floating point instructions... no
configure: error: The ARM target needs to support floating point instructions.

Mooling0602 avatar May 12 '25 05:05 Mooling0602

There were various problems during compilation, I asked about AI tools (ChatGPT, DeepSeek) and ended up stuck here, so I started this issue to ask for help.

Mooling0602 avatar May 12 '25 05:05 Mooling0602

My device is Xiaomi Pad 5, and using operate system Arch Linux Arm (rolling).

Mooling0602 avatar May 12 '25 05:05 Mooling0602

This parameter is wrong: --host=arm64ec-w64-mingw32

AndreRH avatar May 20 '25 16:05 AndreRH

This parameter is wrong: --host=arm64ec-w64-mingw32

Thanks a lot, I'll try build again later.

Mooling0602 avatar May 22 '25 02:05 Mooling0602

Any update on this?

AndreRH avatar Jun 16 '25 20:06 AndreRH

Any update on this?

Not yet, sorry for I'm busy these days.

Mooling0602 avatar Jun 18 '25 07:06 Mooling0602

I seem to have encountered the same problem. When I use the following command, I get the following error。 ../configure --disable-tests --with-mingw=clang --enable-archs=arm64ec,aarch64 `checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking for gcc... gcc 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... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking for g++... g++ checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking for cpp... cpp checking for ld... ld checking for the directory containing the Wine tools... checking for flex... flex checking whether flex is recent enough... yes checking for bison... bison checking whether bison is recent enough... yes checking for strip... strip checking whether ln -s works... yes checking for pkg-config... pkg-config checking for msgfmt... msgfmt checking whether msgfmt supports contexts... yes checking for i386_set_ldt in -li386... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for CL/cl.h... yes checking for EGL/egl.h... yes checking for OpenCL/opencl.h... no checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for asm/termbits.h... yes checking for asm/types.h... yes checking for asm/user.h... no checking for elf.h... yes checking for gettext-po.h... no checking for link.h... yes checking for linux/cdrom.h... yes checking for linux/filter.h... yes checking for linux/hdreg.h... yes checking for linux/hidraw.h... yes checking for linux/input.h... yes checking for linux/ioctl.h... yes checking for linux/major.h... yes checking for linux/param.h... yes checking for linux/serial.h... yes checking for linux/types.h... yes checking for linux/ucdrom.h... no checking for linux/wireless.h... yes checking for lwp.h... no checking for mach-o/loader.h... no checking for mach/mach.h... no checking for machine/cpu.h... no checking for machine/sysarch.h... no checking for mntent.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for netinet/in_systm.h... yes checking for netinet/tcp.h... yes checking for netinet/tcp_fsm.h... no checking for pcap/pcap.h... yes checking for port.h... no checking for pwd.h... yes checking for sched.h... yes checking for scsi/scsi.h... yes checking for scsi/scsi_ioctl.h... yes checking for scsi/sg.h... yes checking for sys/attr.h... no checking for sys/auxv.h... yes checking for sys/cdio.h... no checking for sys/epoll.h... yes checking for sys/event.h... no checking for sys/extattr.h... no checking for sys/filio.h... no checking for sys/ipc.h... yes checking for sys/link.h... no checking for sys/modem.h... no checking for sys/mtio.h... yes checking for sys/param.h... yes checking for sys/prctl.h... yes checking for sys/ptrace.h... yes checking for sys/queue.h... yes checking for sys/random.h... yes checking for sys/resource.h... yes checking for sys/scsiio.h... no checking for sys/shm.h... yes checking for sys/signal.h... yes checking for sys/socketvar.h... yes checking for sys/sockio.h... no checking for sys/statvfs.h... yes checking for sys/strtio.h... no checking for sys/syscall.h... yes checking for sys/sysinfo.h... yes checking for sys/times.h... yes checking for sys/uio.h... yes checking for sys/user.h... yes checking for sys/utsname.h... yes checking for sys/vnode.h... no checking for sys/xattr.h... yes checking for syscall.h... yes checking for utime.h... yes checking for valgrind/memcheck.h... no checking for valgrind/valgrind.h... no checking for sys/mkdev.h... no checking for sys/sysmacros.h... yes checking for sys/conf.h... no checking for sys/mount.h... yes checking for sys/statfs.h... yes checking for sys/user.h... (cached) yes checking for sys/vfs.h... yes checking for sys/sysctl.h... no checking for netinet/ip.h... yes checking for net/if.h... yes checking for net/if_arp.h... yes checking for net/if_dl.h... no checking for net/if_types.h... no checking for net/route.h... yes checking for netinet/if_ether.h... yes checking for netinet/in_pcb.h... no checking for netinet/ip_icmp.h... yes checking for netinet/ip_var.h... no checking for netinet/udp.h... yes checking for netinet6/ip6_var.h... no checking for netipx/ipx.h... yes checking for sys/un.h... yes checking for netinet/udp_var.h... no checking for netinet/icmp_var.h... no checking for netinet/icmp6.h... yes checking for netinet/tcp_var.h... no checking for linux/ipx.h... yes checking for linux/irda.h... no checking for linux/rtnetlink.h... yes checking for resolv.h... yes checking for ifaddrs.h... yes checking for sys/ucontext.h... yes checking for sys/thr.h... no checking for pthread_np.h... no checking for linux/videodev2.h... yes checking for libprocstat.h... no checking whether getxattr takes additional arguments... no checking for ldd... /usr/bin/ldd checking for otool... no checking for readelf... readelf checking whether -Wl,-z,defs works correctly... yes checking whether the compiler supports -Wl,--export-dynamic... yes checking whether the compiler supports -static-pie... no checking whether clang supports -target arm64ec-windows -fuse-ld=lld -Wl,-subsystem:console -Wl,-WX --no-default-config... no checking whether clang supports -target arm64ec-windows -fuse-ld=lld -Wl,-subsystem:console -Wl,-WX... no checking whether clang works... yes configure: error: arm64ec PE cross-compiler not found. This is an error since --enable-archs=arm64ec was requested.

`

That's a different issue, you simply don't use a clang with arm64ec support, please follow the compilation instructions

AndreRH avatar Jul 31 '25 16:07 AndreRH