This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Does glibc x86_64 build really depend on linux kernel's autoconf.h ?


Hello Everybody,

  We have been facing a problem during a cross compilation build of glibc
for x86_64. For setting up the kernel sources we do the following
1. make include/linux/version.h
2. Copy the appropriate headers linux, asm-x86_64 etc to {prefix}/include
3. Run glibc configure for x86_64 as the target with headers as
{prefix}/include.

We get the following error during compilation


/exports/test/snm/toolchain/results/src-x86_64-pc-linux-gnu-2003-08-27/glibc
-build/elf/readlib.o
In file included from
/exports/test/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/include/asm/page.h:4,
                 from
/exports/test/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/include/linux/a.out.h:
131,
                 from ../sysdeps/unix/sysv/linux/a.out.h:2,
                 from ../sysdeps/unix/sysv/linux/a.out.h:2,
                 from readlib.c:34:
/exports/test/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/include/linux/config.h
:4:28: linux/autoconf.h: No such file or directory
make[2]: ***
[/exports/test/snm/toolchain/results/src-x86_64-pc-linux-gnu-2003-08-27/glib
c-build/elf/readlib.o] Error 1
make[2]: Leaving directory
`/exports/test/snm/toolchain/results/src-x86_64-pc-linux-gnu-2003-08-27/glib
c-2.3.2/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory
`/exports/test/snm/toolchain/results/src-x86_64-pc-linux-gnu-2003-08-27/glib
c-2.3.2'
make: *** [all] Error 2

 It seems that in the x86_64 build page.h is included which in turn includes
config.h, which included autoconf.h. Touching the autoconf.h file just
before the build works fine. Generating the autoconf.h via a make
config/oldconfig works fine too. The problem however is not reproducible for
a native build on an i686 machine.

 Does the x86_64 glibc build really depend on definitions in the autoconf.h
? Would touching the autoconf.h be a safe way of getting around this problem
?

 The glibc version we are using is 2.3.2 from gnu.org.

regards,
shivram


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]