On Wed, January 6, 2016 07:30, Paul Rogers wrote: > So far I've been able to find all my mistakes, but not this time. Seems > like I've got messed up headers, but I haven't diddled the source > package! The operative bit of my script is (TIA):
> This happens in log.make: > > gawk -f ../scripts/gen-as-const.awk ../sysdeps/x86_64/link-defines.sym \ > | gcc -S -o /usr/local/src/glibc-build/link-defines.hT3 -std=gnu99 > -fgnu89-inline -Wall -Werror -Winline -Wno-error=undef -Wundef > -Wwrite-strings -fmerge-all-constants -frounding-math -march=x86-64 > -Wstrict-prototypes -I../include > -I/usr/local/src/glibc-build/csu -I/usr/local/src/glibc-build > -I../sysdeps/unix/sysv/linux/x86_64/64 > -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86 > -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/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/x86_64 > -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64 > -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu > -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu > -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86 > -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 > -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 > -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic > -I.. -I../libio -I. -D_LIBC_REENTRANT -include > /usr/local/src/glibc-build/libc-modules.h -DMODULE_NAME=libc -include > ../include/libc-symbols.h -x c - \ > -MD -MP -MF /usr/local/src/glibc-build/link-defines.h.dT -MT > '/usr/local/src/glibc-build/link-defines.h.d > /usr/local/src/glibc-build/link-defines.h' > In file included from ./../include/libc-symbols.h:60:0, > from <command-line>:0: > /usr/local/src/glibc-build/config.h:4:3: error: #error "glibc cannot be > compiled without optimization" > # error "glibc cannot be compiled without optimization" > ^ > In file included from ./../include/libc-symbols.h:60:0, > from <command-line>:0: > /usr/local/src/glibc-build/config.h:4:3: error: #error "glibc cannot be > compiled without optimization" > # error "glibc cannot be compiled without optimization" > ^ > In file included from ./../include/libc-symbols.h:60:0, > from <command-line>:0: > /usr/local/src/glibc-build/config.h:4:3: error: #error "glibc cannot be > compiled without optimization" > # error "glibc cannot be compiled without optimization" Binutils, GCC, and GLIBC default to -O2 -g for optimization. GLIBC requires some option of optimization. Those aren't seen with the gcc command line. Did you set CFLAGS to remove those default optimizations? https://sourceware.org/glibc/wiki/FAQ#Why_do_I_get:.60.23error_.22glibc_cannot_be_compiled_without_optimization.22.27.2C_when_trying_to_compile_GNU_libc_with_GNU_CC.3F https://sourceware.org/glibc/wiki/FAQ#I.27ve_got_errors_compiling_code_that_uses_certain_string_functions.__Why.3F Sincerely, William Harrington -- 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
