glibc build problem
rpyne at kinfolk.org
rpyne at kinfolk.org
Fri Jan 30 23:37:31 CET 2009
I have something wierd going on on this system. "lvu installed gcc"
shows 4.2.4, but lunar -> Optimize Architecture -> compiler only
shows gcc2 and gcc3, but "lunar optimize" gives 4.2.1 and 4.2.2.
That got me past the past provlem, noe I am seeing a problem from the
assembler:
gcc pthread_rwlock_tryrdlock.c -c -std=gnu99 -fgnu89-inline -O1 -Wall
-Winline -Wwrite-strings -fmerge-all-constants -march=pentium3 -pipe -
Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -
I/usr/src/glibc-2.7/glibcroot/nptl -I/usr/src/glibc-2.7/glibcroot -
I../sysdeps/i386/elf -I../nptl/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../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../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -
I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -
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.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-pc-
linux-gnu/4.2.4/include -isystem /usr/include -D_LIBC_REENTRANT -
include ../include/libc-symbols.h -DNOT_IN_libc=1 -
DIS_IN_libpthread=1 -o /usr/src/glibc-
2.7/glibcroot/nptl/pthread_rwlock_tryrdlock.o -MD -MP -MF
/usr/src/glibc-2.7/glibcroot/nptl/pthread_rwlock_tryrdlock.o.dt -MT
/usr/src/glibc-2.7/glibcroot/nptl/pthread_rwlock_tryrdlock.o
{standard input}: Assembler messages:
{standard input}:139: Error: suffix or operands invalid for `mov'
make[2]: *** [/usr/src/glibc-
2.7/glibcroot/nptl/pthread_rwlock_tryrdlock.o] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.7/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.7'
make: *** [all] Error 2
--Richard
On 30 Jan 2009 at 13:29, Zachary McGrew wrote:
> On Fri, Jan 30, 2009 at 12:32 PM, <rpyne at kinfolk.org> wrote:
> > gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic
>
> You need to specify -march.
> Run "lunar optimize", then select GCC_4_2, then cpu.
> Select your cpu from the list.
>
> Should build fine after that.
>
> --
> Zachary McGrew
> Web: http://zmcgrew.no-ip.com
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar
More information about the Lunar
mailing list