angt / glorytun

Multipath UDP tunnel
BSD 2-Clause "Simplified" License
675 stars 103 forks source link

compilation error #97

Open maaathieu-x opened 2 years ago

maaathieu-x commented 2 years ago

Hi,

I'm trying to compile an openwrt image including glorytun, using glorytun-openwrt, but the compilation fails at some point with this error message:

mud/aegis256/aegis256.c:301:1: error: 'armv7ve' does not support feature 'crypto' mud/aegis256/aegis256.c:301:1: note: valid feature names are: vfpv3-d16 vfpv3 vfpv3-d16-fp16 vfpv3-fp16 fp vfpv4 neon neon-fp16 simd nosimd nofp vfpv4-d16 neon-vfpv3 neon-vfpv4 Is this a misconfiguration on my side, or could this be a bug in mud trying to set the "crypto" feature while it's not valid ?

Thanks,

Mathieu

angt commented 2 years ago

Hi, I confirm that aegis256 is not available on armv7ev and I guess that the __ARM_NEON_FP is defined in your case ?

angt commented 2 years ago

I said nothing, it should work:

$ arm-linux-musleabi-gcc -march=armv7ve -mfpu=neon -o test -static test.c
$ file test
test: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, with debug_info, not stripped
$ ./test
not available
maaathieu-x commented 2 years ago

I don't know. I only downloaded the sdk from the vendor, added the glorytun-openwrt feed, checked the glorytun option in "make menuconfig" and launched the compilation, which fails while compiling glorytun. without the glorytun feed, the compilation completes successfully, so I thought it's an issue with glorytun. I tried with v0.3.3 and v0.3.4.