tech-pkg archive

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

Re: gcc8 patches



On 2020-03-06 06:19, maya%NetBSD.org@localhost wrote:
On Mon, Mar 02, 2020 at 01:53:37PM -0600, Jason Bacon wrote:
These are the patches needed to get gcc8 working on CentOS 7.

The c99 requirement is the same as for gcc7.

For gcc8, --with-system-zlib was set unconditionally, which caused the
breakage for CentOS since it doesn't have zlib in base.  This probably
affects other platforms as well, but I took the conservative approach and
only fixed it for Linux.

Please respond if you have any concerns about these changes.


Hi Jason,

What does the failure look like? the package does depend on zlib, so I
wonder why it isn't picking up a pkgsrc-built zlib.
Here's the tail of the build output.  I'm not seeing this with other gcc versions of any other packages I'm aware of.  Just gcc8.

Thanks,

    JB

/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./prev-gcc/xg++ -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./prev-gcc/ -B/data/bacon/Pkgsrc/pkg-2020-02-29/gcc8/x86_64-redhat-linux/bin/ -nostdinc++ -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/src/.libs -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/include -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/libsupc++ -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/src/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -no-pie   -g -O2 -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-R/data/bacon/Pkgsrc/pkg-2020-02-29/lib   -o f951 \     fortran/arith.o fortran/array.o fortran/bbt.o fortran/check.o fortran/class.o fortran/constructor.o fortran/cpp.o fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fortran/error.o fortran/expr.o fortran/interface.o fortran/intrinsic.o fortran/io.o fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o fortran/module.o fortran/openmp.o fortran/options.o fortran/parse.o fortran/primary.o fortran/resolve.o fortran/scanner.o fortran/simplify.o fortran/st.o fortran/symbol.o fortran/target-memory.o  fortran/convert.o fortran/dependency.o fortran/f95-lang.o fortran/trans.o fortran/trans-array.o fortran/trans-common.o fortran/trans-const.o fortran/trans-decl.o fortran/trans-expr.o fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o fortran/trans-stmt.o fortran/trans-types.o fortran/frontend-passes.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -lz libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  attribs.o \ -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./isl/.libs -lisl -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./gmp/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./mpfr/src/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz build/genchecksum objc/objc-lang.o objc/objc-act.o hash-table.o objc/objc-runtime-shared-support.o objc/objc-gnu-runtime-abi-01.o objc/objc-next-runtime-abi-01.o objc/objc-next-runtime-abi-02.o objc/objc-encoding.o objc/objc-map.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-fold.o c/gimple-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o i386-c.o glibc-c.o \         libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a checksum-options > cc1obj-checksum.c.tmp && \ ../../gcc-8.3.0/gcc/../move-if-change cc1obj-checksum.c.tmp cc1obj-checksum.c build/genchecksum objcp/objcp-act.o objcp/objcp-lang.o objcp/objcp-decl.o objcp/objc-runtime-shared-support.o objcp/objc-gnu-runtime-abi-01.o objcp/objc-next-runtime-abi-01.o objcp/objc-next-runtime-abi-02.o objcp/objc-encoding.o objcp/objc-map.o cp/call.o cp/class.o cp/constexpr.o cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/method.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o cp/repo.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o i386-c.o glibc-c.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a \     libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a checksum-options > cc1objplus-checksum.c.tmp && \
../../gcc-8.3.0/gcc/../move-if-change cc1objplus-checksum.c.tmp \
cc1objplus-checksum.c
/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./prev-gcc/xg++ -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./prev-gcc/ -B/data/bacon/Pkgsrc/pkg-2020-02-29/gcc8/x86_64-redhat-linux/bin/ -nostdinc++ -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/src/.libs -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/include -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/libsupc++ -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/src/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -no-pie   -g -O2 -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-R/data/bacon/Pkgsrc/pkg-2020-02-29/lib   -o lto1 \     lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o lto/lto-partition.o lto/lto-symtab.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./isl/.libs -lisl -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./gmp/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./mpfr/src/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a /data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./prev-gcc/xg++ -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./prev-gcc/ -B/data/bacon/Pkgsrc/pkg-2020-02-29/gcc8/x86_64-redhat-linux/bin/ -nostdinc++ -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/src/.libs -B/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/include -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/libsupc++ -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/src/.libs -L/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/prev-x86_64-redhat-linux/libstdc++-v3/libsupc++/.libs -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/. -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./gmp -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/gmp -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./mpfr/src -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/mpfr/src -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/mpc/src -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/./isl/include -I/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/gcc-8.3.0/isl/include -I/data/bacon/Pkgsrc/pkg-2020-02-29/include -I/usr/include -I/data/bacon/Pkgsrc/pkg-2020-02-29/include/python3.7 -o cc1-checksum.o -MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.c
/data/bacon/Pkgsrc/pkg-2020-02-29/bin/gld: cannot find -lz
/data/bacon/Pkgsrc/pkg-2020-02-29/bin/gld: cannot find -lz
collect2: error: ld returned 1 exit status
make[3]: *** [f951] Error 1
make[3]: *** Waiting for unfinished jobs....
/data/bacon/Pkgsrc/pkg-2020-02-29/bin/gld: cannot find -lz
collect2: error: ld returned 1 exit status
make[3]: *** [lto1] Error 1
rm gfortran.pod gcc.pod
make[3]: Leaving directory `/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8/work/build'
make: *** [all] Error 2
*** Error code 2

Stop.
bmake.bin[1]: stopped in /data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8
*** Error code 1

Stop.
bmake.bin: stopped in /data/bacon/Pkgsrc/pkgsrc-2020-02-29/lang/gcc8




Home | Main Index | Thread Index | Old Index