[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Misleading configure failure GLIB_SIZEOF_SIZE_T
From: |
Markus Armbruster |
Subject: |
Re: Misleading configure failure GLIB_SIZEOF_SIZE_T |
Date: |
Fri, 19 Mar 2021 13:03:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Paolo Bonzini <pbonzini@redhat.com> writes:
> On 19/03/21 10:40, Markus Armbruster wrote:
>> $ cc -std=gnu99 -Wall -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
>> -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef
>> -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common
>> -fwrapv -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -m64
>> $ echo $?
>> 0
>> The test program doesn't actually need libc, so not having
>> glibc-static
>> installed doesn't bother the linker.
>
> I guess the bug is that the invocation does not use -static?
I totally missed that %-}
With -static, cc fails nicely:
$ cc -std=gnu99 -Wall -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef
-Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv
-o config-temp/qemu-conf.exe config-temp/qemu-conf.c -m64 -static
/usr/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
Good. Next test: I install glibc-static and uninstall glib2-static.
$ ./config.status
ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.
You probably need to set PKG_CONFIG_LIBDIR
to point to the right pkg-config files for your
build target
*Boing*