From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 457 invoked by alias); 20 Jul 2012 03:10:36 -0000 Received: (qmail 445 invoked by uid 22791); 20 Jul 2012 03:10:35 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_FX,TW_PM X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Jul 2012 03:10:22 +0000 From: "jengelh at medozas dot de" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14374] New: fxstatat compilation botched on sparc64 Date: Fri, 20 Jul 2012 03:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jengelh at medozas dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00157.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14374 Bug #: 14374 Summary: fxstatat compilation botched on sparc64 Product: glibc Version: 2.15 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: unassigned@sourceware.org ReportedBy: jengelh@medozas.de CC: drepper.fsp@gmail.com Classification: Unclassified Compiling glibc-2.15-725b8ee08aff (because that is what openSUSE 12.2 has) on sparc64 (-m64) throws a significant warning that causes rpmlint to abort the entire rpm build in the Build Service. 1. On sparc64, glibc-2.15 attempts to compile wordsize-64/fxstatat.c, which I think is wrong. It should do sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c instead. 2. Because it attempts to do sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c instead, it runs into lots of problems: __NR_newfstatat is not defined, because sparc* does not even have that syscall. ares:/usr/include> grep -r __NR_newfstatat . ./asm-powerpc/unistd.h:#define __NR_newfstatat 291 ./asm-ia64/unistd.h:#define __NR_newfstatat 1286 ./asm-generic/unistd.h:#define __NR_newfstatat 1054 ./asm-generic/unistd.h:__SYSCALL(__NR_newfstatat, sys_newfstatat) ./asm-generic/unistd.h:#define __NR_newfstatat __NR3264_fstatat ./asm-x86/unistd_64.h:#define __NR_newfstatat 262 ./asm-x86/unistd_x32.h:#define __NR_newfstatat (__X32_SYSCALL_BIT + 262) ./asm-s390/unistd.h:#define __NR_newfstatat 293 (Headers are from kernel 3.4.0) gcc -m64 interp.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fcall-used-g6 -fmerge-all-constants -g -mcpu=ultrasparc -mvis -Wstrict-prototypes -fcall-used-g6 -fPIC -D'RUNTIME_LINKER="/lib64/ld-linux.so.2"' -DNOT_IN_libc=1 -I../include -I/home/abuild/rpmbuild/BUILD/glibc-2.15/cc-base/elf -I/home/abuild/rpmbuild/BUILD/glibc-2.15/cc-base -I../sysdeps/sparc/sparc64/elf -I../sysdeps/sparc/elf -I../nptl/sysdeps/unix/sysv/linux/sparc/sparc64 -I../sysdeps/unix/sysv/linux/sparc/sparc64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux/sparc -I../sysdeps/unix/sysv/linux/sparc -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc64/fpu -I../sysdeps/sparc/sparc64/multiarch -I../nptl/sysdeps/sparc/sparc64 -I../sysdeps/sparc/sparc64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/sparc/sparc64/soft-fp -I../sysdeps/sparc/fpu -I../nptl/sysdeps/sparc -I../sysdeps/sparc -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -o /home/abuild/rpmbuild/BUILD/glibc-2.15/cc-base/elf/interp.os -MD -MP -MF /home/abuild/rpmbuild/BUILD/glibc-2.15/cc-base/elf/interp.os.dt -MT /home/abuild/rpmbuild/BUILD/glibc-2.15/cc-base/elf/interp.os In file included from ../sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c:6:0: ../sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: In function '__fxstatat': ../sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c:46:7: warning: unused variable 'res' [-Wunused-variable] ../sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c:111:1: warning: control reaches end of non-void function [-Wreturn-type] Since __NR_newfstatat is undefined in that translation unit, this leads to no code being emitted that would return a value. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.