From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E46853858D39; Tue, 9 Apr 2024 20:43:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E46853858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712695427; bh=ny7gFeqXNXVQ9OE3hiDRjJIk8FkU0S0XPRn/6nqNPfc=; h=From:To:Subject:Date:From; b=VTKng3CwdDAQi77hcNU0XwYI7gADijnhQccXyLo8eeneoJGqfayLOB0PGS6+BXkAS YB37AoK0L1peduuylLQSzm55MBh9V5Vu0CVjf7Naka/nC/jUCiqyNNYwzZOqvaM+pa Dq4aMnDseh/wE5Rm7PJ9/svrbdxz7OAM+wxN6snU= From: "aurelien at aurel32 dot net" To: glibc-bugs@sourceware.org Subject: [Bug libc/31624] New: Does not build on 32-bit architectures with compiler defaulting to -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 Date: Tue, 09 Apr 2024 20:43:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aurelien at aurel32 dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31624 Bug ID: 31624 Summary: Does not build on 32-bit architectures with compiler defaulting to -D_FILE_OFFSET_BITS=3D64 -D_TIME_BITS=3D64 Product: glibc Version: 2.40 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: aurelien at aurel32 dot net CC: drepper.fsp at gmail dot com Target Milestone: --- Trying to build glibc on a 32-bit architectures with a compiler defaulting = to -D_FILE_OFFSET_BITS=3D64 -D_TIME_BITS=3D64 like it is now the case in Ubunt= u and Debian leads to the following build issue: gcc check_fds.c -c -std=3Dgnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -Wp,-U_FORTIFY_SOURCE -Wstrict-prototypes -Wold-style-definition -fmath-errno -fPIC -fno-stack-protector -DSTACK_PROTECTOR_LEVEL=3D0= =20=20 -ftls-model=3Dinitial-exec -I../include -I/home/aurel32/glibc/glibc-bui= ld/csu -I/home/aurel32/glibc/glibc-build -I../sysdeps/unix/sysv/linux/arm/le=20 -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/arm/nptl=20 -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux=20 -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu=20 -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm=20 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/le/armv7/multiarch= =20 -I../sysdeps/arm/armv7/multiarch -I../sysdeps/arm/le/armv7=20 -I../sysdeps/arm/armv7 -I../sysdeps/arm/armv6t2 -I../sysdeps/arm/armv6=20 -I../sysdeps/arm/le -I../sysdeps/arm/include -I../sysdeps/arm=20 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32=20 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I= .. -I../libio -I. -D_LIBC_REENTRANT -include /home/aurel32/glibc/glibc-build/libc-modules.h -DMODULE_NAME=3Dlibc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=3Dglibc -o /home/aurel32/glibc/glibc-build/csu/check_fds.os -MD -MP -MF /home/aurel32/glibc/glibc-build/csu/check_fds.os.dt -MT /home/aurel32/glibc/glibc-build/csu/check_fds.os In file included from ../sysdeps/generic/hp-timing.h:22, from ../nptl/descr.h:26, from ../sysdeps/arm/nptl/tls.h:39, from ../sysdeps/unix/sysv/linux/arm/tls.h:23, from ../sysdeps/unix/sysv/linux/arm/sysdep.h:28, from ../sysdeps/unix/sysv/linux/not-cancel.h:23, from check_fds.c:34: ../include/time.h:21:1: error: 'asm' declaration ignored due to conflict wi= th previous rename [-Werror=3Dpragmas] 21 | libc_hidden_proto (mktime) | ^~~~~~~~~~~~~~~~~ ../include/time.h:22:1: error: 'asm' declaration ignored due to conflict wi= th previous rename [-Werror=3Dpragmas] 22 | libc_hidden_proto (timelocal) | ^~~~~~~~~~~~~~~~~ ../include/time.h:23:1: error: 'asm' declaration ignored due to conflict wi= th previous rename [-Werror=3Dpragmas] 23 | libc_hidden_proto (localtime) | ^~~~~~~~~~~~~~~~~ In file included from ../sysdeps/unix/sysv/linux/not-cancel.h:26: ../include/sys/poll.h:10:1: error: 'asm' declaration ignored due to conflict with previous rename [-Werror=3Dpragmas] 10 | libc_hidden_proto (ppoll) | ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [../o-iterator.mk:9: /home/aurel32/glibc/glibc-build/csu/check_fds.os] Error 1 make[2]: Leaving directory '/home/aurel32/glibc/glibc/csu' make[1]: *** [Makefile:484: csu/subdir_lib] Error 2 make[1]: Leaving directory '/home/aurel32/glibc/glibc' make: *** [Makefile:9: all] Error 2 In addition this also causes build failures at the testsuite level: gcc tst-localedef-path-norm.c -c -std=3Dgnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -Wp,-U_FORTIFY_SOURCE -Wstrict-prototypes -Wold-style-definition -fmath-errno -fPIE=20=20=20=20=20=20=20=20 -DCOMPLOCALEDIR=3D'"/usr/lib/locale"' -DLOCALE_ALIAS_PATH=3D'"/usr/share/lo= cale"' -Iprograms -I../include -I/home/aurel32/glibc/glibc-build/locale=20 -I/home/aurel32/glibc/glibc-build -I../sysdeps/unix/sysv/linux/arm/le=20 -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/arm/nptl=20 -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux=20 -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu=20 -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm=20 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/le/armv7/multiarch= =20 -I../sysdeps/arm/armv7/multiarch -I../sysdeps/arm/le/armv7=20 -I../sysdeps/arm/armv7 -I../sysdeps/arm/armv6t2 -I../sysdeps/arm/armv6=20 -I../sysdeps/arm/le -I../sysdeps/arm/include -I../sysdeps/arm=20 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32=20 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I= .. -I../libio -I. -D_LIBC_REENTRANT -include /home/aurel32/glibc/glibc-build/libc-modules.h -DMODULE_NAME=3Dtestsuite -i= nclude ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=3Dglibc -o /home/aurel32/glibc/glibc-build/locale/tst-localedef-path-norm.o -MD -MP -MF /home/aurel32/glibc/glibc-build/locale/tst-localedef-path-norm.o.dt -MT /home/aurel32/glibc/glibc-build/locale/tst-localedef-path-norm.o tst-localedef-path-norm.c: In function 'run_test': tst-localedef-path-norm.c:87:16: error: passing argument 2 of 'xstat' from incompatible pointer type [-Werror=3Dincompatible-pointer-types] 87 | xstat (path, &fs); | ^~~ | | | struct stat64 * In file included from ../include/sys/cdefs.h:10, from ../include/features.h:511, from ../posix/sys/types.h:25, from ../include/sys/types.h:1, from tst-localedef-path-norm.c:33: ../support/xunistd.h:50:44: note: expected 'struct stat *' but argument is = of type 'struct stat64 *' 50 | void __REDIRECT (xstat, (const char *path, struct stat *), xstat_time64); | ^~~~~~~~~~~~~ ../misc/sys/cdefs.h:410:46: note: in definition of macro '__REDIRECT' 410 | # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNA= ME (#alias)) | ^~~~~ cc1: all warnings being treated as errors make[2]: *** [../o-iterator.mk:9: /home/aurel32/glibc/glibc-build/locale/tst-localedef-path-norm.o] Error 1 --=20 You are receiving this mail because: You are on the CC list for the bug.=