Bug 32010 - bootstrap fails; chooses wrong zlib for building jc1
Summary: bootstrap fails; chooses wrong zlib for building jc1
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2007-05-20 17:41 UTC by lucier
Modified: 2014-11-09 19:44 UTC (History)
4 users (show)

See Also:
Host: powerpc64-apple-darwin8.8.0
Target: powerpc64-apple-darwin8.8.0
Build: powerpc64-apple-darwin8.8.0
Known to work:
Known to fail:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description lucier 2007-05-20 17:41:13 UTC
Configured with

env CC=/pkgs/gcc-4.2.0-64/bin/gcc ../4.2.0/configure --build=powerpc64-apple-darwin8.8.0 --host=powerpc64-apple-darwin8.8.0 --target=powerpc64-apple-darwin8.8.0 --with-gmp=/pkgs/gmp-4.2.1-64/ --with-mpfr=/pkgs/gmp-4.2.1-64/ --prefix=/pkgs/gcc-4.2.0-64

and made with make bootstrap.  Bootstrap fails win stage2 with

/Users/gcc-test/programs/gcc/objdir-gcc-4.2.0/./prev-gcc/xgcc -B/Users/gcc-test/programs/gcc/objdir-gcc-4.2.0/./prev-gcc/ -B/pkgs/gcc-4.2.0-64/powerpc64-apple-darwin8.8.0/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H  -o jc1 \
        java/parse.o java/class.o java/decl.o java/expr.o java/constants.o java/lang.o java/typeck.o java/except.o java/verify-glue.o java/verify-impl.o java/zextract.o java/jcf-io.o java/win32-host.o java/jcf-parse.o java/mangle.o java/mangle_name.o java/builtins.o java/resource.o java/jcf-write.o java/buffer.o java/check-init.o java/jcf-depend.o java/jcf-path.o java/boehm.o java/java-gimplify.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L../zlib -lz  ../libcpp/libcpp.a ./../intl/libintl.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
ld64 warning: in /usr/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  _inflateEnd, referenced from:
      _read_zip_member in jcf-io.o
  _inflate, referenced from:
      _read_zip_member in jcf-io.o
  _inflateInit2_, referenced from:
      _read_zip_member in jcf-io.o
ld64-62.1 failed: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [jc1] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [bootstrap] Error 2

Now, I can't find a bug report for this.  I've also bootstrapped the 4.2.0 development branch many times with this configuration; see, e.g.,

Comment 1 lucier 2007-05-23 23:11:55 UTC
I believe you need to add


to "make bootstrap" to get it to work.  If this fixes bootstrap, then I'll prepare a brief patch to the documentation.
Comment 2 lucier 2007-05-24 02:19:01 UTC
My guess was correct, but I don't see where to put the note in the documentation.

Perhaps I'll ask Jack to do it.
Comment 3 Francois-Xavier Coudert 2014-11-09 19:44:46 UTC
I don't know the current status of this bug. Let's close it, but of course feel free to reopen if it still is an issue. In that case, a documentation patch would be appreciated.