Re: need to point the bootstrap process ( all stages ? ) to slightly non-standard include location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/27/18 3:56 PM, Marc Glisse wrote:
On Thu, 27 Dec 2018, Dennis Clarke wrote:

   Is there a method to indicate to the bootstrap process that there
are includes ( such as sys/cdefs.h ) in a slightly non-standard
location? I have a Debian system on arm7 and for reasons yet obscure
there are no symlinks in /usr/include/sys that point to /usr/include/arm-linux-gnueabihf/sys/ which is what I would expect for the libc6-dev
package on Debian. Certainly such symlinks do exist on x86_64 thus :

root@nix:~# ls -lapb  /usr/include/sys/cdefs.h
lrwxrwxrwx 1 root root 31 Dec  5 18:50 /usr/include/sys/cdefs.h -> ../x86_64-linux-gnu/sys/cdefs.h

That's an accident (the symlink is provided by libc6-dev-i386 of all packages...). Such a symlink is not needed.

Is multiarch enabled in your build?


No.

Configure is :

arm7$
arm7$ pwd
/opt/bw/build/gcc-8.2.0_4.4.132+_armv7l.002
arm7$ date -u
Thu Dec 27 20:29:35 UTC 2018
arm7$
arm7$ LD_RUN_PATH=/opt/bw/lib LD_FLAGS=\-L/opt/bw/lib RUNPATH=/opt/bw/lib \
> CPPFLAGS=\-I/opt/bw/include\ \-I/usr/include/arm-linux-gnueabihf/sys \
> ../gcc-8.2.0/configure --build=armv7l-unknown-linux-gnueabihf \
> --target=armv7l-unknown-linux-gnueabihf \
> --host=armv7l-unknown-linux-gnueabihf --prefix=/opt/intermediate/gcc8 \
> --disable-nls --enable-threads=posix --enable-shared --enable-bootstrap \
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-__cxa_atexit \ > --with-system-zlib --with-long-double-128 --enable-stage1-languages=c,c++ \ > --enable-stage1-checking=misc --with-as=/usr/bin/as --with-ld=/usr/bin/ld \
> --enable-languages=c,c++,fortran,go,lto,objc,obj-c++
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking target system type... armv7l-unknown-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... no
checking for libhsail-rt support... no
checking for armv7l-unknown-linux-gnueabihf-gcc... /usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... unsupported
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for armv7l-unknown-linux-gnueabihf-gnatbind... no
checking for gnatbind... no
checking for armv7l-unknown-linux-gnueabihf-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
*** This configuration is not supported in the following subdirectories:
zlib target-libmpx gnattools target-libada target-libhsail-rt target-liboffloadmic
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
checking for bison... bison -y
checking for bison... bison
checking for gm4... /opt/bw/bin/m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
/opt/bw/build/gcc-8.2.0/missing: 81: /opt/bw/build/gcc-8.2.0/missing: makeinfo: not found
checking for expect... no
checking for runtest... no
checking for ar... (cached) /usr/bin/ar
checking for armv7l-unknown-linux-gnueabihf-ar... (cached) /usr/bin/ar
checking for as... (cached) /usr/bin/as
checking for armv7l-unknown-linux-gnueabihf-as... (cached) /usr/bin/as
checking for armv7l-unknown-linux-gnueabihf-dlltool... no
checking for dlltool... no
checking for ld... (cached) /usr/bin/ld
checking for armv7l-unknown-linux-gnueabihf-ld... (cached) /usr/bin/ld
checking for armv7l-unknown-linux-gnueabihf-lipo... no
checking for lipo... no
checking for armv7l-unknown-linux-gnueabihf-nm... no
checking for nm... nm
checking for ranlib... (cached) /usr/bin/ranlib
checking for armv7l-unknown-linux-gnueabihf-ranlib... (cached) /usr/bin/ranlib
checking for strip... (cached) /usr/bin/strip
checking for armv7l-unknown-linux-gnueabihf-strip... (cached) /usr/bin/strip
checking for armv7l-unknown-linux-gnueabihf-windres... no
checking for windres... no
checking for armv7l-unknown-linux-gnueabihf-windmc... no
checking for windmc... no
checking for objcopy... (cached) /usr/bin/objcopy
checking for armv7l-unknown-linux-gnueabihf-objcopy... (cached) /usr/bin/objcopy
checking for objdump... (cached) /usr/bin/objdump
checking for armv7l-unknown-linux-gnueabihf-objdump... (cached) /usr/bin/objdump
checking for readelf... (cached) /usr/bin/readelf
checking for armv7l-unknown-linux-gnueabihf-readelf... (cached) /usr/bin/readelf
checking for armv7l-unknown-linux-gnueabihf-cc... no
checking for cc... cc
checking for armv7l-unknown-linux-gnueabihf-c++... no
checking for c++... c++
checking for armv7l-unknown-linux-gnueabihf-gcc... no
checking for gcc... gcc
checking for armv7l-unknown-linux-gnueabihf-gfortran... no
checking for gfortran... no
checking for armv7l-unknown-linux-gnueabihf-gccgo... no
checking for gccgo... no
checking for ar... no
checking for armv7l-unknown-linux-gnueabihf-ar... no
checking for ar... ar
checking for as... no
checking for armv7l-unknown-linux-gnueabihf-as... no
checking for as... as
checking for dlltool... no
checking for armv7l-unknown-linux-gnueabihf-dlltool... no
checking for dlltool... no
checking for ld... no
checking for armv7l-unknown-linux-gnueabihf-ld... no
checking for ld... ld
checking for lipo... no
checking for armv7l-unknown-linux-gnueabihf-lipo... no
checking for lipo... no
checking for nm... no
checking for armv7l-unknown-linux-gnueabihf-nm... no
checking for nm... nm
checking for objcopy... no
checking for armv7l-unknown-linux-gnueabihf-objcopy... no
checking for objcopy... objcopy
checking for objdump... no
checking for armv7l-unknown-linux-gnueabihf-objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for armv7l-unknown-linux-gnueabihf-ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for armv7l-unknown-linux-gnueabihf-readelf... no
checking for readelf... readelf
checking for strip... no
checking for armv7l-unknown-linux-gnueabihf-strip... no
checking for strip... strip
checking for windres... no
checking for armv7l-unknown-linux-gnueabihf-windres... no
checking for windres... no
checking for windmc... no
checking for armv7l-unknown-linux-gnueabihf-windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
arm7$

I may change the env var "NM=/usr/bin/nm -p" but that has nothing to do
with the problem.

Essentially cdefs.h is located down in /usr/include/arm-linux-gnueabihf/sys/ and providing any flags at all that point there cause
issues. The symlinks do not exist and no package provides them :

root@arm7:~# apt-file search '/usr/include/sys/cdefs.h'
root@arm7:~#

There is libc6-dev and also libc6-dev-armhf-cross which *both* provide
the /usr/arm-linux-gnueabihf/include/sys/cdefs.h file but no symlinks
into /usr/include/sys.

In any case ... still pondering this.

Dennis



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux