RE: gcc cannot find .h files

"Fodor, Ronald J." <[email protected]>
Newsgroups gmane.linux.bbc.general
Message-ID <39C5845092F9D1119AA90008C724FC7C06C054BA@prowler.atsgroup.saic.com>
Package: gcc
Version: 3.2.2

No matter what I try, I cannot get this to build an iso!  I'm using the
3.2.2 version of gcc, which kicks out an error indicating that it cannot
find some #include .h files.  I tried this with 3.2.2 because it was doing
the same thing (but inidicating different .h files) with the STABLE 2.95.3
version of gcc!  I haven't modified any of the Makefiles for this package
(just d/l'ed them from the website).  The only things I modified were in
gar.conf.mk (text included at the end).  I'm running RedHat 8.0...please
help!!!

-------------------------------------
Transcript of build and 'uname -a' are as follows:
-------------------------------------

[fodorro@clarkbr-linux lnx-bbc]$ make build
[===== NOW BUILDING:    lnx-bbc-2003-05-09      =====]
Building BBC image bbc-2.1.iso.
        [fetch] complete for lnx-bbc.
        [checksum] complete for lnx-bbc.
        [extract] complete for lnx-bbc.
        [patch] complete for lnx-bbc.
make[1]: Entering directory `/proj/lnx-bbc_2.1/gar/meta/lnx-bbc'
 ==> Building meta/singularity as a dependency
make[2]: Entering directory `/proj/lnx-bbc_2.1/gar/meta/singularity'
[===== NOW BUILDING:    singularity-2.1 =====]
        [fetch] complete for singularity.
        [checksum] complete for singularity.
        [extract] complete for singularity.
        [patch] complete for singularity.
make[3]: Entering directory `/proj/lnx-bbc_2.1/gar/meta/singularity'
 ==> Building meta/bbc-contents as a dependency
make[4]: Entering directory `/proj/lnx-bbc_2.1/gar/meta/bbc-contents'
[===== NOW BUILDING:    bbc-contents-none       =====]
        [fetch] complete for bbc-contents.
        [checksum] complete for bbc-contents.
        [extract] complete for bbc-contents.
        [patch] complete for bbc-contents.
make[5]: Entering directory `/proj/lnx-bbc_2.1/gar/meta/bbc-contents'
 ==> Building X11/XFree86 as a dependency
make[6]: Entering directory `/proj/lnx-bbc_2.1/gar/X11/XFree86'
[===== NOW BUILDING:    XFree86-4.2.1   =====]
        [fetch] complete for XFree86.
        [checksum] complete for XFree86.
        [extract] complete for XFree86.
        [patch] complete for XFree86.
make[7]: Entering directory `/proj/lnx-bbc_2.1/gar/X11/XFree86'
 ==> Building devel/glibc as a dependency
make[8]: Entering directory `/proj/lnx-bbc_2.1/gar/devel/glibc'
[===== NOW BUILDING:    glibc-2.2.5     =====]
        [fetch] complete for glibc.
        [checksum] complete for glibc.
        [extract] complete for glibc.
        [patch] complete for glibc.
make[9]: Entering directory `/proj/lnx-bbc_2.1/gar/devel/glibc'
 ==> Building devel/gcc-primitives as a dependency
make[10]: Entering directory `/proj/lnx-bbc_2.1/gar/devel/gcc-primitives'
[===== NOW BUILDING:    gcc-primitives-3.2.2    =====]
        [fetch] complete for gcc-primitives.
        [checksum] complete for gcc-primitives.
        [extract] complete for gcc-primitives.
        [patch] complete for gcc-primitives.
make[11]: Entering directory `/proj/lnx-bbc_2.1/gar/devel/gcc-primitives'
 ==> Building devel/gcc as a dependency
make[12]: Entering directory `/proj/lnx-bbc_2.1/gar/devel/gcc'
[===== NOW BUILDING:    gcc-3.2.2       =====]
        [fetch] complete for gcc.
        [checksum] complete for gcc.
        [extract] complete for gcc.
        [patch] complete for gcc.
        [configure] complete for gcc.
 ==> Running make in work/build.d/i386-pc-linux-gnu
make[13]: Entering directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu'
make[14]: Entering directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/libiberty'
make[15]: Entering directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/libiberty/te
stsuite'
make[15]: Nothing to be done for `all'.
make[15]: Leaving directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/libiberty/te
stsuite'
make[14]: Leaving directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/libiberty'
make[14]: Entering directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc'
(cd intl && make all)
make[15]: Entering directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc/intl'
make[15]: Nothing to be done for `all'.
make[15]: Leaving directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc/intl'
if [ -f specs.ready ] ; then \
        true; \
else \
        echo timestamp > specs.ready; \
fi
make
GCC_FOR_TARGET="/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-g
nu/gcc/xgcc
-B/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc/
-B/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/bin/
-B/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/lib/ -isystem
/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/include" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  AR_FOR_TARGET="i386-pc-linux-gnu-ar" \
  AR_CREATE_FOR_TARGET="i386-pc-linux-gnu-ar  rc" \
  AR_FLAGS_FOR_TARGET="" \
  CFLAGS="-Os -I//proj/lnx-bbc_2.1/build/include
-L//proj/lnx-bbc_2.1/build/lib  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
  RANLIB_FOR_TARGET="i386-pc-linux-gnu-ranlib" \
  RANLIB_TEST_FOR_TARGET="[ -f i386-pc-linux-gnu-ranlib ] || ( [
"i386-redhat-linux-gnu" = "i386-pc-linux-gnu" ] && [ -f /usr/bin/ranlib -o
-f /bin/ranlib ] )" \
  NM_FOR_TARGET="/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/bin/nm"
AWK="gawk" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
  INCLUDES="-I. -I. -I../../gcc-3.2.2/gcc -I../../gcc-3.2.2/gcc/.
-I../../gcc-3.2.2/gcc/config -I../../gcc-3.2.2/gcc/../include" \
  CONFIG_H="tconfig.h " MACHMODE_H="machmode.h machmode.def" \
  LIB1ASMSRC='' \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[15]: Entering directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc'
for d in libgcc; do \
  if [ -d $d ]; then true; else /bin/sh ../../gcc-3.2.2/gcc/mkinstalldirs
$d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc/xgcc
-B/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc/
-B/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/bin/
-B/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/lib/ -isystem
/proj/lnx-bbc_2.1/build/i386-pc-linux-gnu/include -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../gcc-3.2.2/gcc -I../../gcc-3.2.2/gcc/. -I../../gcc-3.2.2/gcc/config
-I../../gcc-3.2.2/gcc/../include  -DL_muldi3 -c
../../gcc-3.2.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:21,
                 from ../../gcc-3.2.2/gcc/libgcc2.c:36:
../../gcc-3.2.2/gcc/config/i386/linux.h:224:20: signal.h: No such file or
directory
../../gcc-3.2.2/gcc/config/i386/linux.h:225:27: /sys/ucontext.h: No such
file or directory
make[15]: *** [libgcc/./_muldi3.o] Error 1
make[15]: Leaving directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc'
make[14]: *** [libgcc.a] Error 2
make[14]: Leaving directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu/gcc'
make[13]: *** [all-gcc] Error 2
make[13]: Leaving directory
`/proj/lnx-bbc_2.1/gar/devel/gcc/work/build.d/i386-pc-linux-gnu'
make[12]: *** [build-work/build.d/i386-pc-linux-gnu/Makefile] Error 2
make[12]: Leaving directory `/proj/lnx-bbc_2.1/gar/devel/gcc'
make[11]: *** [../../devel/gcc/cookies/build.d/install] Error 2
make[11]: Leaving directory `/proj/lnx-bbc_2.1/gar/devel/gcc-primitives'
make[10]: *** [imgdep-build] Error 2
make[10]: Leaving directory `/proj/lnx-bbc_2.1/gar/devel/gcc-primitives'
make[9]: *** [../../devel/gcc-primitives/cookies/singularity.d/install]
Error 2
make[9]: Leaving directory `/proj/lnx-bbc_2.1/gar/devel/glibc'
make[8]: *** [imgdep-singularity] Error 2
make[8]: Leaving directory `/proj/lnx-bbc_2.1/gar/devel/glibc'
make[7]: *** [../../devel/glibc/cookies/singularity.d/install] Error 2
make[7]: Leaving directory `/proj/lnx-bbc_2.1/gar/X11/XFree86'
make[6]: *** [imgdep-singularity] Error 2
make[6]: Leaving directory `/proj/lnx-bbc_2.1/gar/X11/XFree86'
make[5]: *** [../../X11/XFree86/cookies/singularity.d/install] Error 2
make[5]: Leaving directory `/proj/lnx-bbc_2.1/gar/meta/bbc-contents'
make[4]: *** [imgdep-singularity] Error 2
make[4]: Leaving directory `/proj/lnx-bbc_2.1/gar/meta/bbc-contents'
make[3]: *** [../../meta/bbc-contents/cookies/singularity.d/install] Error 2
make[3]: Leaving directory `/proj/lnx-bbc_2.1/gar/meta/singularity'
make[2]: *** [imgdep-singularity] Error 2
make[2]: Leaving directory `/proj/lnx-bbc_2.1/gar/meta/singularity'
make[1]: *** [../../meta/singularity/cookies/main.d/install] Error 2
make[1]: Leaving directory `/proj/lnx-bbc_2.1/gar/meta/lnx-bbc'
make: *** [imgdep-main] Error 2
[fodorro@clarkbr-linux lnx-bbc]$

[fodorro@clarkbr-linux gcc]$ uname -a
Linux clarkbr-linux.atsgroup.saic.com 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT
2002 i686 i686 i386 GNU/Linux

-------------------------------------
My altered "gar.conf.mk":
-------------------------------------
[fodorro@clarkbr-linux gar]$ cat gar.conf.mk
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4

# This file contains configuration variables that are global to
# the GAR system.  Users wishing to make a change on a
# per-package basis should edit the category/package/Makefile, or
# specify environment variables on the make command-line.

# Variables that define the default *actions* (rather than just
# default data) of the system will remain in bbc.gar.mk
# (bbc.port.mk)

# Setting this variable will cause the results of your builds to
# be cleaned out after being installed.  Uncomment only if you
# desire this behavior!

# export BUILD_CLEAN = true

ALL_DESTIMGS = main build rootbin lnximg singularity

# These are the standard directory name variables from all GNU
# makefiles.  They're also used by autoconf, and can be adapted
# for a variety of build systems.
#
# TODO: set $(SYSCONFDIR) and $(LOCALSTATEDIR) to never use
# /usr/etc or /usr/var

# Directory config for the "main" image
main_prefix ?= /
main_exec_prefix = $(prefix)
main_bindir = $(exec_prefix)/bin
main_sbindir = $(exec_prefix)/sbin
main_libexecdir = $(exec_prefix)/libexec
main_datadir = $(prefix)/share
main_sysconfdir = $(prefix)/etc
main_sharedstatedir = $(prefix)/share
main_localstatedir = $(prefix)/var
main_libdir = $(exec_prefix)/lib
main_infodir = $(prefix)/info
main_lispdir = $(prefix)/share/emacs/site-lisp
main_includedir = $(prefix)/include
main_mandir = $(prefix)/man
main_docdir = $(prefix)/share/doc
main_sourcedir = $(prefix)/src
main_licensedir = $(prefix)/licenses

# Directory config for the "build" image
build_prefix ?= /proj/lnx-bbc_2.1/build
build_exec_prefix = $(build_prefix)
build_bindir = $(build_exec_prefix)/bin
build_sbindir = $(build_exec_prefix)/sbin
build_libexecdir = $(build_exec_prefix)/libexec
build_datadir = $(build_prefix)/share
build_sysconfdir = $(build_prefix)/etc
build_sharedstatedir = $(build_prefix)/share
build_localstatedir = $(build_prefix)/var
build_libdir = $(build_exec_prefix)/lib
build_infodir = $(build_prefix)/info
build_lispdir = $(build_prefix)/share/emacs/site-lisp
build_includedir = $(build_prefix)/include
build_mandir = $(build_prefix)/man
build_docdir = $(build_prefix)/share/doc
build_sourcedir = $(build_prefix)/src
build_licensedir = $(build_prefix)/licenses

# the DESTDIR is used at INSTALL TIME ONLY to determine what the
# filesystem root should be.  Each different DESTIMG has its own
# DESTDIR.
main_DESTDIR ?= /proj/lnx-bbc_2.1/tmp/gar
build_DESTDIR ?= /
build_chroot_DESTDIR ?= /proj/lnx-bbc_2.1/tmp/chroot

# allow us to link to libraries we installed
#main_CPPFLAGS += -nostdinc
#main_CFLAGS += -nostdinc -nostdlib
#main_LDFLAGS += -nostdlib
main_CPPFLAGS += -I$(DESTDIR)$(includedir)
main_CFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)
#main_CXXFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)
main_LDFLAGS += -L$(DESTDIR)$(libdir)
main_CPPFLAGS += -I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR)
main_CFLAGS += -I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR) -L$(GCC_LIBDIR)
-L$(CROSS_GCC_LIBDIR)
#main_CXXFLAGS += -I$(GCC_INCLUDEDIR) -I$(CROSS_GCC_INCLUDEDIR)
-L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR)
main_LDFLAGS += -L$(GCC_LIBDIR) -L$(CROSS_GCC_LIBDIR)

# allow us to link to libraries we installed
build_CPPFLAGS += -I$(DESTDIR)$(includedir)
build_CFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)
#build_CXXFLAGS += -Os -I$(DESTDIR)$(includedir) -L$(DESTDIR)$(libdir)
build_LDFLAGS += -L$(DESTDIR)$(libdir)

# Default main_CC to gcc, $(DESTIMG)_CC to main_CC and set CC based on
$(DESTIMG)
main_CC ?= $(GARHOST)-gcc
main_CXX ?= g++
main_LD ?= $(GARHOST)-ld
build_CC ?= gcc
build_CXX ?= g++
build_LD ?= ld

# GARCH and GARHOST for main.  Override these for cross-compilation
main_GARCH ?= i386
main_GARHOST ?= i386-pc-linux-gnu

# GARCH and GARHOST for build.  Do not change these.
build_GARCH := $(shell arch)
build_GARHOST := $(GARBUILD)

# Don't build these packages as in the build image
build_NODEPEND = devel/glibc devel/gcc-primitives

# This is for foo-config chaos
PKG_CONFIG_PATH=$(DESTDIR)$(libdir)/pkgconfig/

# Put these variables in the environment during the
# configure build and install stages
STAGE_EXPORTS = DESTDIR prefix exec_prefix bindir sbindir libexecdir datadir
STAGE_EXPORTS += sysconfdir sharedstatedir localstatedir libdir infodir
lispdir
STAGE_EXPORTS += includedir mandir docdir sourcedir
STAGE_EXPORTS += CPPFLAGS CFLAGS LDFLAGS
STAGE_EXPORTS += CC CXX

CONFIGURE_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))")
BUILD_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))")
INSTALL_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))")
MANIFEST_ENV += $(foreach TTT,$(STAGE_EXPORTS),$(TTT)="$($(TTT))")

# Global environment
export GARBUILD
export PATH LD_LIBRARY_PATH #LD_PRELOAD
export PKG_CONFIG_PATH

GARCHIVEROOT ?= /proj/www/garchive
GARCHIVEDIR = $(GARCHIVEROOT)/$(DISTNAME)
GARPKGROOT ?= /proj/www/garpkg
GARPKGDIR = $(GARPKGROOT)/$(GARNAME)

# prepend the local file listing
FILE_SITES = file://$(FILEDIR)/ file://$(GARCHIVEDIR)/

#append the public archive
MASTER_SITES += http://www.lnx-bbc.org/garchive/$(DISTNAME)/
http://garchive.movealong.org/$(DISTNAME)/
http://build.lnx-bbc.org/garchive/$(DISTNAME)/

# Extra configuration for the lnx-bbc build
GAR_EXTRA_CONF += devel/gcc/package-api.mk
GAR_EXTRA_CONF += meta/singularity/singularity.conf.mk
GAR_EXTRA_CONF += meta/lnx.img/lnx.img.conf.mk
GAR_EXTRA_CONF += meta/root.bin/root.bin.conf.mk

# Extra libs to include with gar.mk
GAR_EXTRA_LIBS += bbc.lib.mk
[fodorro@clarkbr-linux gar]$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.