Hi all.
I've been trying to do my first successful LFS build but "make" throws an error 
in
Chapter 5.7 while building Glibc 2.25. The only thing I did that's not included 
in the
book is the setting of CFLAGS and CXXFLAGS in .bashrc to "-Os -march=prescott
-mtune=core2" and creation of separate working directory within the sources 
partition.
My OS is Debian 8 Jessie with all required packages and my PC is Compaq 610 
with 
C2D T5870 and 2 GB RAM (and don't forget the Intel graphics decelerator ;)
Truncated build log:

make[2]: Entering directory '/lfs/src/work/glibc-2.25/nptl'
i686-lfs-linux-gnu-gcc ../sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c 
-c -std=gnu11 -fgnu89-inline  -Os -Wall -Werror -Wundef -Wwrite-strings 
-fmerge-all-constants -fno-stack-protector -frounding-math -march=prescott 
-mtune=core2 -Wstrict-prototypes -Wold-style-definition   -Wa,-mtune=i686   
-ftls-model=initial-exec      -I../include 
-I/lfs/src/work/glibc-2.25/build/nptl  -I/lfs/src/work/glibc-2.25/build  
-I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  
-I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86  
-I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux/include 
-I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  
-I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  
-I../sysdeps/unix/i386  -I../sysdeps/unix  -I../sysdeps/posix  
-I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  
-I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu 
 -I../sysdeps/x86/fpu/incl
 ude -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86  
-I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96/include 
-I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  
-I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. 
-I../libio -I. -nostdinc -isystem 
/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/6.3.0/include -isystem 
/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/6.3.0/include-fixed -isystem 
/tools/include  -D_LIBC_REENTRANT -include 
/lfs/src/work/glibc-2.25/build/libc-modules.h -DMODULE_NAME=libpthread -include 
../include/libc-symbols.h       -o 
/lfs/src/work/glibc-2.25/build/nptl/pthread_mutex_timedlock.o -MD -MP -MF 
/lfs/src/work/glibc-2.25/build/nptl/pthread_mutex_timedlock.o.dt -MT 
/lfs/src/work/glibc-2.25/build/nptl/pthread_mutex_timedlock.o
In file included from 
../sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c:22:0:
../nptl/pthread_mutex_timedlock.c: In function 'pthread_mutex_timedlock':
../nptl/pthread_mutex_timedlock.c:636:1: error: bp cannot be used in asm here
 }
 ^
../nptl/pthread_mutex_timedlock.c:636:1: error: bp cannot be used in asm here
/lfs/src/work/glibc-2.25/build/sysd-rules:111: recipe for target 
'/lfs/src/work/glibc-2.25/build/nptl/pthread_mutex_timedlock.o' failed
make[2]: *** [/lfs/src/work/glibc-2.25/build/nptl/pthread_mutex_timedlock.o] 
Error 1
make[2]: Leaving directory '/lfs/src/work/glibc-2.25/nptl'
Makefile:215: recipe for target 'nptl/subdir_lib' failed
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory '/lfs/src/work/glibc-2.25'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2

Thanks in advance for your help
Michal
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to