This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC 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]

other/6309: building solaris2.7 target on linux error: cannot find stdio.h



>Number:         6309
>Category:       other
>Synopsis:       building solaris2.7 target on linux error: cannot find stdio.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 15 09:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     sophana@globespan.net
>Release:        unknown-1.0
>Organization:
>Environment:
linux redhat 7.1
binutils-2.12
gcc-3.0.4
>Description:
after having compiled binutils with --target=sparc-sun-solaris2.7, gcc build fails because it cannot finc stdio.h when compiling gmon-sol2
make
make[1]: Entering directory `/workspace/sophana/build-gcc/libiberty'
make[2]: Entering directory `/workspace/sophana/build-gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/workspace/sophana/build-gcc/libiberty/testsuite'
make[1]: Leaving directory `/workspace/sophana/build-gcc/libiberty'
make[1]: Entering directory `/workspace/sophana/build-gcc/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/bin/sh /workspace/sophana/gcc-3.0.4/install-sh -c" "INSTALL_DATA=/bin/sh /workspace/sophana/gcc-3.0.4/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /workspace/sophana/gcc-3.0.4/install-sh -c " "INSTALL_SCRIPT=/bin/sh /workspace/sophana/gcc-3.0.4/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/import/back-end/workspace-7/sophana/packs/sparc" "infodir=/import/back-end/workspace-7/sophana/packs/sparc/info" "libdir=/import/back-end/workspace-7/sophana/packs/sparc/lib" "prefix=/import/back-end/workspace-7/sophana/packs/sparc" "tooldir=/import/back-end/workspace-7/sophana/packs/sparc/sparc-sun-solaris2.7" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/workspace/sophana/build-gcc/zlib'
make[1]: Entering directory `/workspace/sophana/build-gcc/fastjar'
make[1]: Leaving directory `/workspace/sophana/build-gcc/fastjar'
make[1]: Entering directory `/workspace/sophana/build-gcc/gcc'
(cd intl && make all)
make[2]: Entering directory `/workspace/sophana/build-gcc/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/workspace/sophana/build-gcc/gcc/intl'
(cd po && make all)
make[2]: Entering directory `/workspace/sophana/build-gcc/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/workspace/sophana/build-gcc/gcc/po'
/workspace/sophana/build-gcc/gcc/xgcc -B/workspace/sophana/build-gcc/gcc/ -B/import/back-end/workspace-7/sophana/packs/sparc/sparc-sun-solaris2.7/bin/ -B/import/back-end/workspace-7/sophana/packs/sparc/sparc-sun-solaris2.7/lib/ -isystem /import/back-end/workspace-7/sophana/packs/sparc/sparc-sun-solaris2.7/include -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I../../gcc-3.0.4/gcc -I../../gcc-3.0.4/gcc/. -I../../gcc-3.0.4/gcc/config -I../../gcc-3.0.4/gcc/../include  \
        -c ../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c -o gmon.o
In file included from ../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:36:
../../gcc-3.0.4/gcc/system.h:50:19: stdio.h: No such file or directory
In file included from ../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:36:
../../gcc-3.0.4/gcc/system.h:92:23: sys/types.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:94:19: errno.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:101:21: string.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:102:22: strings.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:114:21: stdlib.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:123:21: unistd.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:127:24: sys/param.h: No such file or directory
In file included from ../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:36:
../../gcc-3.0.4/gcc/system.h:179:23: sys/time.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:180:19: time.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:192:20: fcntl.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:230:22: sys/wait.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:301:20: malloc.h: No such file or directory
../../gcc-3.0.4/gcc/system.h:385:23: sys/stat.h: No such file or directory
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c: In function `monstartup':
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:112: warning: implicit declaration of function `sbrk'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:112: warning: assignment makes pointer from integer without a cast
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:114: warning: implicit declaration of function `write'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:136: warning: assignment makes pointer from integer without a cast
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c: In function `_mcleanup':
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:181: `PATH_MAX' undeclared (first use in this function)
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:181: (Each undeclared identifier is reported only once
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:181: for each function it appears in.)
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:186: warning: implicit declaration of function `getenv'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:186: warning: assignment makes pointer from integer without a cast
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:192: warning: implicit declaration of function `strrchr'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:198: warning: implicit declaration of function `sprintf'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:198: warning: implicit declaration of function `getpid'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:204: warning: implicit declaration of function `creat'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:206: warning: implicit declaration of function `perror'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:231: warning: implicit declaration of function `close'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:181: warning: unused variable `buf'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c: In function `internal_mcount':
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:299: warning: implicit declaration of function `atexit'
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c: In function `moncontrol':
../../gcc-3.0.4/gcc/config/sparc/gmon-sol2.c:413: warning: implicit declaration of function `profil'
make[1]: *** [gmon.o] Error 1
make[1]: Leaving directory `/workspace/sophana/build-gcc/gcc'
make: *** [all-gcc] Error 2
>How-To-Repeat:
on linux
configure --target=sparc-sun-solaris2.7 -prefix=...
make
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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