Compilation fail[m32 build]

Edgar Kaziakhmedov edgar.kaziakhmedov at virtuozzo.com
Sat Jul 22 12:02:23 UTC 2017


I tried to compile strace package with the following configure:
$ ./configure --host=x86_64 "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"

/* parts concerning stat64 */
checking whether mpers.sh -m32 works... yes
checking for struct stat... yes
checking for struct stat.st_mtime_nsec... yes
checking for struct stat64... yes
checking for struct stat64.st_mtime_nsec... yes
checking gnu/stubs-x32.h usability... yes
checking gnu/stubs-x32.h presence... yes
checking for gnu/stubs-x32.h... yes
checking for -mx32 compile support... yes
checking for -mx32 runtime support... yes
checking whether mpers.sh -mx32 works... yes
checking for struct stat... yes
checking for struct stat.st_mtime_nsec... yes
checking for struct stat64... no
checking for struct stat64.st_mtime_nsec... no

Hence, compilation failed with next error:
mv -f .deps/libmpers_mx32_a-fetch_struct_stat.Tpo .deps/libmpers_mx32_a-fetch_struct_stat.Po
gcc -DHAVE_CONFIG_H   -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I. -I.   -DIN_MPERS -DMPERS_IS_mx32 -I./mpers-mx32  -Wall -Wempty-body -Wformat-security -Wignored-qualifiers -Winit-self -Wlogical-op -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wsign-compare -Wtype-limits -Wwrite-strings  -m32 -MT libmpers_mx32_a-fetch_struct_stat64.o -MD -MP -MF .deps/libmpers_mx32_a-fetch_struct_stat64.Tpo -c -o libmpers_mx32_a-fetch_struct_stat64.o `test -f 'fetch_struct_stat64.c' || echo './'`fetch_struct_stat64.c
fetch_struct_stat64.c:56:8: error: redefinition of ‘struct stat64’
 struct stat64 {};
        ^~~~~~
In file included from ./linux/asm_stat.h:26:0,
                 from ./linux/x86_64/asm_stat.h:8,
                 from fetch_struct_stat64.c:33:
/usr/include/asm/stat.h:41:8: note: originally defined here
 struct stat64 {
        ^~~~~~
Makefile:2825: recipe for target 'libmpers_mx32_a-fetch_struct_stat64.o' failed

Best regards,
Edgar Kaziahmedov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170722/89dc58fa/attachment.bin>


More information about the Strace-devel mailing list