I'm trying to build the latest version of glibc (2.22). I've not modified any sources of glibc. On my x86\_64 Ubuntu 14.04.1 machine I'm using the following extract of a makefile to build:

```
HOST ?= x86_64-linux-gnu
TARGET ?= x86_64-linux-gnu

CROSS_OUT = $(shell pwd)/$(TARGET)

CC ?= gcc
CXX ?= g++
LD ?= ld

[...]

CFLAGS ?= "-I$(CROSS_OUT)/include -L$(CROSS_OUT)/lib"
CXXFLAGS ?= "-I$(CROSS_OUT)/include -L$(CROSS_OUT)/lib"
CPPFLAGS ?= "-I$(CROSS_OUT)/include -L$(CROSS_OUT)/lib"
LDFLAGS ?= "-I$(CROSS_OUT)/include -L$(CROSS_OUT)/lib"

[...]

GLIBC_PATH=$(shell pwd)/glibc
GLIBC_BUILD_PATH=$(shell pwd)/glibc-build

glibc: glibc-clean
    mkdir -p $(GLIBC_BUILD_PATH)
    cd $(GLIBC_BUILD_PATH) && \
    CC=$(CC) \
    CXX=$(CXX) \
    LD=$(LD) \
    CFLAGS=$(CFLAGS) \
    CXXFLAGS=$(CXXFLAGS) \
    CPPFLAGS=$(CPPFLAGS) \
    LDFLAGS=$(LDFLAGS) \
    $(GLIBC_PATH)/configure \
    --host=$(TARGET) \
    --build=$(HOST) \
    --prefix=$(CROSS_OUT) \
    --disable-shared \
    --enable-add-ons \
    --enable-static-nss && \
    make && \
    make install

glibc-clean:
    rm -r -f $(GLIBC_BUILD_PATH)

```

Make stops nearly immediatly with the following error:

```
In file included from <command-line>:0:0:
../include/stdc-predef.h:64:1: fatal error: /home/leon/reaper/glibc-build/libc-modules.h: No such file or directory
 #endif
 ^
compilation terminated.

```

Unfortunately, the file definitely doesn't exist.