From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13441 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: alltypes.h error: conflicting types for 'size_t' Date: Wed, 14 Nov 2018 01:14:55 +0100 Message-ID: <20181114001455.GF21289@port70.net> References: <20181113205600.GA16442@daniel-HP> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1542154384 14533 195.159.176.226 (14 Nov 2018 00:13:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2018 00:13:04 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: "Daniel G." To: musl@lists.openwall.com Original-X-From: musl-return-13457-gllmg-musl=m.gmane.org@lists.openwall.com Wed Nov 14 01:13:00 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gMinj-0003ds-Jx for gllmg-musl@m.gmane.org; Wed, 14 Nov 2018 01:12:59 +0100 Original-Received: (qmail 8039 invoked by uid 550); 14 Nov 2018 00:15:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 8021 invoked from network); 14 Nov 2018 00:15:07 -0000 Mail-Followup-To: musl@lists.openwall.com, "Daniel G." Content-Disposition: inline In-Reply-To: <20181113205600.GA16442@daniel-HP> Xref: news.gmane.org gmane.linux.lib.musl.general:13441 Archived-At: * Daniel G. [2018-11-13 21:56:00 +0100]: > /mnt/clfs_MUSL/sources/gcc-8.2.0/build/./gcc/xgcc > -B/mnt/clfs_MUSL/sources/gcc-8.2.0/build/./gcc/ > -B/cross-tools/x86_64-unknown-linux-gnu/bin/ > -B/cross-tools/x86_64-unknown-linux-gnu/lib/ -isystem > /cross-tools/x86_64-unknown-linux-gnu/include -isystem > /cross-tools/x86_64-unknown-linux-gnu/sys-include -g -O2 -O2 -g -O2 > -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing > -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -fpic -mlong-double-80 > -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector > -fpic -mlong-double-80 -DUSE_ELF_SYMVER -I. -I. -I../.././gcc > -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc > -I../../../libgcc/../include -I../../../libgcc/config/libbid > -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o generic-morestack.o > -MT generic-morestack.o -MD -MP -MF generic-morestack.dep -c > ../../../libgcc/generic-morestack.c -fvisibility=hidden -DHIDE_EXPORTS > ... > In file included from > /mnt/clfs_MUSL/sources/gcc-8.2.0/build/gcc/include-fixed/stdio.h:36, > from ../../../libgcc/../gcc/tsystem.h:87, > from ../../../libgcc/generic-morestack.c:30: > /mnt/clfs_MUSL/tools/include/bits/alltypes.h:136:24: error: conflicting > types for 'size_t' > typedef unsigned _Addr size_t; > ^~~~~~ > In file included from ../../../libgcc/../gcc/tsystem.h:44, > from ../../../libgcc/generic-morestack.c:30: > /mnt/clfs_MUSL/sources/gcc-8.2.0/build/gcc/include/stddef.h:216:23: note: > previous declaration of 'size_t' was here > typedef __SIZE_TYPE__ size_t; > ^~~~~~ it is not ideal that both musl and gcc headers get included with the typedefs, but i don't see why they are in conflict: both typedefs should expand to 'unsigned long' (if not then something is very wrong) you can try to rerun that build command with -E instead of -c to see the actual size_t definitions after macro expansion. (i assume multilib breaks it somehow, but i don't see how) > ../../../libgcc/shared-object.mk:14: recipe for target > 'generic-morestack.o' failed > make[1]: *** [generic-morestack.o] Error 1