This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/19450] New: scripts/check-c++-types.sh errors when CXX is unset
- From: "msebor at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 12 Jan 2016 20:26:42 +0000
- Subject: [Bug build/19450] New: scripts/check-c++-types.sh errors when CXX is unset
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19450
Bug ID: 19450
Summary: scripts/check-c++-types.sh errors when CXX is unset
Product: glibc
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: msebor at redhat dot com
CC: carlos at redhat dot com
Target Milestone: ---
When glibc is configured in an environment without support for static linking
(including static versions of libstdc++, libc and libm), executing 'make check'
produces the output below. This is because configure unsets the CXX make
variable while Makefile expects it to be set to "no" when there is no support
for C++:
ifneq ($(CXX),no)
vpath c++-types.data $(+sysdep_dirs)
$(objpfx)c++-types-check.out: c++-types.data scripts/check-c++-types.sh
scripts/check-c++-types.sh $< $(CXX) $(filter-out -std=gnu11
$(+gccwarn-c),$(CFLAGS)) $(CPPFLAGS) > $@; \
$(evaluate-test)
endif
Since other Makefiles expect CXX to be unset, the top level Makefile should be
changed accordingly to avoid running the test in the absence of the expected
C++ support.
$ make check
...
make[1]: Entering directory `/src/glibc-trunk'
scripts/check-c++-types.sh
sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data -fgnu89-inline -O2
-Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g
-mlong-double-128 -ftls-model=initial-exec -Iinclude -I/build/glibc-trunk
-Isysdeps/unix/sysv/linux/powerpc/powerpc64/fpu
-Isysdeps/unix/sysv/linux/powerpc/powerpc64
-Isysdeps/unix/sysv/linux/wordsize-64 -Isysdeps/unix/sysv/linux/powerpc
-Isysdeps/powerpc/nptl -Isysdeps/unix/sysv/linux/include
-Isysdeps/unix/sysv/linux -Isysdeps/nptl -Isysdeps/pthread -Isysdeps/gnu
-Isysdeps/unix/inet -Isysdeps/unix/sysv -Isysdeps/unix/powerpc
-Isysdeps/unix -Isysdeps/posix -Isysdeps/powerpc/powerpc64/fpu/multiarch
-Isysdeps/powerpc/powerpc64/fpu -Isysdeps/powerpc/powerpc64/multiarch
-Isysdeps/powerpc/powerpc64 -Isysdeps/wordsize-64 -Isysdeps/powerpc/fpu
-Isysdeps/powerpc -Isysdeps/ieee754/ldbl-128ibm -Isysdeps/ieee754/ldbl-opt
-Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754
-Isysdeps/generic -Ilibio -I. -D_LIBC_REENTRANT -include
/build/glibc-trunk/libc-modules.h -DMODULE_NAME=libc -include
include/libc-symbols.h > /build/glibc-trunk/c++-types-check.out; \
scripts/evaluate-test.sh c++-types-check $? false false >
/build/glibc-trunk/c++-types-check.test-result
scripts/check-c++-types.sh: line 37: -O2: command not found
scripts/check-c++-types.sh: line 37: -O2: command not found
scripts/check-c++-types.sh: line 37: -O2: command not found
...
--
You are receiving this mail because:
You are on the CC list for the bug.