delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/29/06:33:31

Message-ID: <002f01c206fc$4fa7d6c0$0102a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: <djgpp-workers AT delorie DOT com>
Cc: "Andris Pavenis" <andris AT latnet DOT lv>
Subject: Building GCC 3.1 error help
Date: Wed, 29 May 2002 20:33:14 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Reply-To: djgpp-workers AT delorie DOT com

All,

I am not an experiences Unix shell user and as such I cannot see in the
output below what the Error 1 means. Any one got any ideas? Is it the
"rm -rf stage$stage".

Setup:-
    a) 2.04 apps built with CVS LIBC from early last month (regressed back
on the weekend)
    b) CVS LIBC from last week was built last night
    c) GCC as downloaded from Simtel installed over the top of the 2.04
built apps (removed old GCC 3.04 files and directoriesd)

Build process:-
    a) Built LIBC last night
    b) After LIBC built then build make 3.791 and then install
    c) After make built then build bash 2.05a and then install
    d) After bash built then build GCC 3.1 as per GCC 3.1 docs.

In the build process d) failed as follws:-

When building make the following warnings were generated:-
    In file included from glob.c:813:
    glob.c: In function `glob':
    glob.c:197: warning: passing arg 0 of `my_realloc' from incompatible
pointer type
    In file included from glob.c:932:
    glob.c:197: warning: passing arg 0 of `my_realloc' from incompatible
pointer type
    In file included from glob.c:988:
    glob.c:197: warning: passing arg 0 of `my_realloc' from incompatible
pointer type
    In file included from glob.c:1378:
    glob.c: In function `glob_in_dir':
    glob.c:197: warning: passing arg 0 of `my_realloc' from incompatible
pointer type
    command.com /c if exist libglob.a del libglob.a

There were a number of warnins generated when building GCC 3.1, but I cannot
remember seeing the following warnings:-
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o
cc1.exe \
 c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o
c-objc-common.o libcpp.a  main.o libbackend.a   ../libiberty/libiberty.a
d:/dj204/bin/ld.exe: cc1.exe: warning: .text: line number overflow: 0x23b01
> 0xffff
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o
tradcpp0.exe \
tradcpp.o tradcif.o mkdeps.o cppdefault.o version.o intl.o
../libiberty/libiberty.a
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  gcov.o
intl.o version.o   ../libiberty/libiberty.a -o gcov.exe
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o
cc1plus.exe \
      cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o
cp/decl2.o cp/error.o cp/lex.o cp/parse.o cp/ptree.o cp/rtti.o cp/spew.o
cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o
cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o
cp/mangle.o cp/cp-lang.o attribs.o c-common.o c-format.o c-pragma.o
c-semantics.o c-lex.o  main.o libbackend.a libcpp.a
../libiberty/libiberty.a
d:/dj204/bin/ld.exe: cc1plus.exe: warning: .text: line number overflow:
0x29e83 > 0xffff
rm -f f771.exe
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o
f771.exe f/bad.o f/bit.o f/bld.o f/com.o f/data.o f/equiv.o f/expr.o
f/global.o f/implic.o f/info.o f/intrin.o f/lab.o f/lex.o f/malloc.o
f/name.o f/parse.o f/src.o f/st.o f/sta.o f/stb.o f/stc.o f/std.o f/ste.o
f/storag.o f/stp.o f/str.o f/sts.o f/stt.o f/stu.o f/stv.o f/stw.o
f/symbol.o f/target.o f/top.o f/type.o f/version.o f/where.o main.o
libbackend.a   ../libiberty/libiberty.a
d:/dj204/bin/ld.exe: f771.exe: warning: .text: line number overflow: 0x28989
> 0xffff
gcc -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin
g-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H  -o
cc1obj.exe objc-lang.o objc-parse.o objc-act.o attribs.o c-errors.o c-lex.o
c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o
c-format.o c-semantics.o c-objc-common.o libcpp.a  main.o libbackend.a
../libiberty/libiberty.a
d:/dj204/bin/ld.exe: cc1obj.exe: warning: .text: line number overflow:
0x24ab3 > 0xffff
if test yes = yes; then \


Any help or ideas would be greatly apprecicated.

Thanks,
Andrew


DJGPP_204 D:\DJ204\GNU\GCC-3.1\BUILD.DJG>sh djmake.sh bootstrap
make.exe[1]: Entering directory `d:/dj204/gnu/gcc-3.1/build.djg/libiberty'
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr
strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork
waitpid bcmp bcopy bzero; do \
  for g in asprintf.o mkstemps.o sigsetmask.o vasprintf.o vfork.o ; do \
    case "$g" in \
      *$f*) echo $g >> needed-list ;; \
    esac; \
  done; \
done
echo regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o
concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o
getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o make-temp-file.o
objalloc.o obstack.o partition.o pexecute.o safe-ctype.o sort.o spaces.o
splay-tree.o strerror.o strsignal.o ternary.o xatexit.o xexit.o xmalloc.o
xmemdup.o xstrdup.o xstrerror.o > required-list
make.exe[2]: Entering directory
`d:/dj204/gnu/gcc-3.1/build.djg/libiberty/testsuite'
make.exe[2]: Nothing to be done for `all'.
make.exe[2]: Leaving directory
`d:/dj204/gnu/gcc-3.1/build.djg/libiberty/testsuite'
make.exe[1]: Leaving directory `d:/dj204/gnu/gcc-3.1/build.djg/libiberty'
Bootstrapping the compiler
make.exe[1]: Entering directory `d:/dj204/gnu/gcc-3.1/build.djg/gcc'

Bootstrap complete - make "quickstrap" to redo last build,
"restage1" through "restage3" to rebuild specific stages,
or "cleanstrap" to redo the bootstrap from scratch.
make.exe[1]: Leaving directory `d:/dj204/gnu/gcc-3.1/build.djg/gcc'
Comparing stage2 and stage3 of the compiler
make.exe[1]: Entering directory `d:/dj204/gnu/gcc-3.1/build.djg/gcc'
rm -f .bad_compare
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
compare | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for file in *.o; do \
  tail +16c ./$file > tmp-foo1; \
  tail +16c stage$stage/$file > tmp-foo2 \
    && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >>
.bad_compare) || true; \
done
d:/dj204/bin/tail.exe: stage2/protoize.o: No such file or directory (ENOENT)
d:/dj204/bin/tail.exe: stage2/unprotoize.o: No such file or directory
(ENOENT)
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
compare | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in tmp-foo intl cp f objc; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      tail +16c ./$file > tmp-foo1; \
      tail +16c stage$stage/$file > tmp-foo2 \
        && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >>
.bad_compare) || true; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
compare | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "compare" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; gcc.o differs
make.exe[1]: *** [compare] Error 1
make.exe[1]: Leaving directory `d:/dj204/gnu/gcc-3.1/build.djg/gcc'
make.exe: *** [bootstrap] Error 2

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019