This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66018] opendir configure test not working when GCC_NO_EXECUTABLES
- From: "kugan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 May 2015 07:04:45 +0000
- Subject: [Bug libstdc++/66018] opendir configure test not working when GCC_NO_EXECUTABLES
- Auto-submitted: auto-generated
- References: <bug-66018-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66018
--- Comment #5 from kugan at gcc dot gnu.org ---
For aarch64-none-elf it fails during.
01:53:39 checking for dirent.h that defines DIR... no
01:53:39 checking for sys/ndir.h that defines DIR... no
01:53:39 checking for sys/dir.h that defines DIR... no
01:53:39 checking for ndir.h that defines DIR... no
01:53:39 checking for library containing opendir... configure: error:
Link tests are not allowed after GCC_NO_EXECUTABLES.
01:53:39 Makefile:10143: recipe for target
'configure-target-libstdc++-v3' failed
01:53:39 make[1]: *** [configure-target-libstdc++-v3] Error 1
this error comes from (in libstdc++-v3/configure.ac which was not
present in 4.9 branch)
This comes from:
# For Filesystem TS.
AC_CHECK_HEADERS([fcntl.h dirent.h sys/statvfs.h utime.h])
AC_STRUCT_DIRENT_D_TYPE
GLIBCXX_ENABLE_FILESYSTEM_TS
GLIBCXX_CHECK_FILESYSTEM_DEPS
According to the documentation:
â Macro: AC_STRUCT_DIRENT_D_TYPE
Perform all the actions of AC_HEADER_DIRENT (see Particular
Headers). Then, if struct dirent contains a d_type member, define
HAVE_STRUCT_DIRENT_D_TYPE.
and:
Macro: AC_HEADER_DIRENT
Check for the following header files. For the first one that is
found and defines `DIR', define the listed C preprocessor macro:
`dirent.h' HAVE_DIRENT_H
`sys/ndir.h' HAVE_SYS_NDIR_H
`sys/dir.h' HAVE_SYS_DIR_H
`ndir.h' HAVE_NDIR_H
Is libstdc++-v3 supposed to ignore this or should newlib supposed to have this
defined in the appropriate header?