This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Building sysdeps/unix/getppid.S by accident.
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: libc-ports at sourceware dot org
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 12 Apr 2012 02:08:48 -0400
- Subject: Building sysdeps/unix/getppid.S by accident.
Developers,
While touching some things on hppa (crtn/crti and elf subdir removal)
I got the following build failure:
~~~
hppa-linux-gnu-gcc ../sysdeps/unix/getppid.S -c -I../include
-I/home/carlos/build/glibc/posix -I/home/carlos/build/glibc
-I../ports/sysdeps/unix/sysv/linux/hppa/nptl
-I../ports/sysdeps/unix/sysv/linux/hppa
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux
-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../ports/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../ports/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/hppa/hppa1.1
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../ports/sysdeps/hppa/fpu
-I../ports/sysdeps/hppa/nptl -I../ports/sysdeps/hppa
-I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports -I..
-I../libio -I. -nostdinc -isystem
/usr/lib/gcc/hppa-linux-gnu/4.6/include -isystem
/usr/lib/gcc/hppa-linux-gnu/4.6/include-fixed -isystem
/home/carlos/build/linux-headers/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h -DASSEMBLER -o
/home/carlos/build/glibc/posix/getppid.o -MD -MP -MF
/home/carlos/build/glibc/posix/getppid.o.dt -MT
/home/carlos/build/glibc/posix/getppid.o
../sysdeps/unix/getppid.S: Assembler messages:
../sysdeps/unix/getppid.S:24: Error: Unknown opcode: `move(r1, r0)'
~~~
Which is laughable, the generic 1997 version of getppid hasn't been
built by hppa ever.
On x86 it properly expands into a syscall wrapper:
~~~
(echo '#define SYSCALL_NAME getppid'; \
echo '#define SYSCALL_NARGS 0'; \
echo '#define SYSCALL_SYMBOL __getppid'; \
echo '#define SYSCALL_NOERRNO 1'; \
echo '#include <syscall-template.S>'; \
echo 'weak_alias (__getppid, getppid)'; \
echo 'libc_hidden_weak (getppid)'; \
) | gcc -c -I../include -I/home/carlos/build/glibc/posix
-I/home/carlos/build/glibc -I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix
-I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch
-I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include -isystem
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include-fixed
-isystem /home/carlos/build/linux-2.6-headers/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DASSEMBLER
-DGAS_SYNTAX -g -Wa,--noexecstack -Wa,-mtune=i686 -o
/home/carlos/build/glibc/posix/getppid.o -x assembler-with-cpp - -MD
-MP -MF /home/carlos/build/glibc/posix/getppid.o.dt -MT
/home/carlos/build/glibc/posix/getppid.o
~~~
Anyone else run into this weird "I'm building stuff from the wrong
directories" issue recently?
It's well past my bed time, but I thought I'd post it to see if anyone
has seen this before and save me some debugging time tomorrow night.
Cheers,
Carlos.