#57135 closed defect (fixed)
gcc8 powerpc-darwin9-apple: build fails at build/gencfn-macros
Reported by: | kencu (Ken) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | kencu (Ken), mojca (Mojca Miklavec), tanzislam (Tanzinul Islam) | |
Port: | gcc8 |
Description (last modified by kencu (Ken))
I'd like to use this ticket to track the potential success of building gcc8 on PPC Leopard and Tiger.
On PPC Leopard the build proceeds a reasonable distance until:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/./prev-gcc/xg++ -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/./prev-gcc/ -B/opt/local/ppc-apple-darwin9/bin/ -nostdinc++ -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/prev-ppc-apple-darwin9/libstdc++-v3/src/.libs -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/prev-ppc-apple-darwin9/libstdc++-v3/libsupc++/.libs -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/prev-ppc-apple-darwin9/libstdc++-v3/include/ppc-apple-darwin9 -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/prev-ppc-apple-darwin9/libstdc++-v3/include -isystem /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/libstdc++-v3/libsupc++ -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/prev-ppc-apple-darwin9/libstdc++-v3/src/.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/build/prev-ppc-apple-darwin9/libstdc++-v3/libsupc++/.libs -g -O2 -mdynamic-no-pic -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 -DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc -o build/gencfn-macros \ build/gencfn-macros.o build/errors.o build/hash-table.o build/vec.o build/ggc-none.o .././libiberty/libiberty.a build/genenums /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/common.md /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/config/rs6000/rs6000.md \ > tmp-enums.c /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../move-if-change tmp-enums.c insn-enums.c echo timestamp > s-enums build/genconstants /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/common.md /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/config/rs6000/rs6000.md \ > tmp-constants.h /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../move-if-change tmp-constants.h insn-constants.h echo timestamp > s-constants build/gencfn-macros -c \ > tmp-case-cfn-macros.h build/gencfn-macros: DEF_INTERNAL_FLT_FN (ACOS) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (ASIN) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (ATAN) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (COS) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (EXP) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (EXP10) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (EXP2) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (EXPM1) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (LOG) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (LOG10) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (LOG1P) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (LOG2) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (LOGB) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (SIN) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (SQRT) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (TAN) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (CEIL) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (FLOOR) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (RINT) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (ROUND) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (TRUNC) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (ATAN2) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (FMOD) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (POW) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (SCALB) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (FMIN) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (FMAX) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_FLT_FN (LDEXP) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_INT_FN (CLRSB) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_INT_FN (CLZ) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_INT_FN (CTZ) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_INT_FN (FFS) has no associated built-in functions build/gencfn-macros: DEF_INTERNAL_INT_FN (PARITY) has no associated built-in functions make[3]: *** [s-case-cfn-macros] Error 1 make[3]: *** Waiting for unfinished jobs....
Attachments (2)
Change History (12)
Changed 6 years ago by kencu (Ken)
Attachment: | gcc8-powerpc-darwin9-apple-fail.log.zip added |
---|
comment:1 Changed 6 years ago by kencu (Ken)
And that looks to be this bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85669>, as confirmed by Ryan in that ticket.
comment:2 Changed 6 years ago by kencu (Ken)
Description: | modified (diff) |
---|
comment:3 Changed 6 years ago by kencu (Ken)
Description: | modified (diff) |
---|---|
Summary: | gcc8 powerpc-darwin9-apple: build fails at ../move-if-change tmp-constants.h insn-constants.h → gcc8 powerpc-darwin9-apple: build fails at build/gencfn-macros |
comment:4 Changed 6 years ago by kencu (Ken)
So, a brute-force way past that error is to simply delete the offending definitions out of ${worksrcdir}/gcc/internal-fn.def
.
build/gencfn-macros
then seems to have no errors:
build/gencfn-macros -c \ > tmp-case-cfn-macros.h
and proceeds apace, but later on, perhaps not surprisingly:
/usr/bin/g++-4.2 -arch ppc -std=gnu++98 -fno-PIE -c -g -mdynamic-no-pic -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../libcpp/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/../libbacktrace -I/opt/local/include -I/opt/local/include -o builtins.o -MT builtins.o -MMD -MP -MF ./.deps/builtins.TPo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/builtins.c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/builtins.c: In function ‘internal_fn associated_internal_fn(tree_node*)’: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/builtins.c:2049: error: ‘IFN_EXP10’ was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/builtins.c:2052: error: ‘IFN_REMAINDER’ was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.2.0/gcc/builtins.c:2057: error: ‘IFN_LDEXP’ was not declared in this scope make[3]: *** [builtins.o] Error 1
comment:5 Changed 6 years ago by kencu (Ken)
Interestingly, powerpc-darwin8-apple (Tiger PPC) just breezes right on past this error without any intervention in internal-fn.def
, generates a perfectly reasonable tmp-case-cfn-macros.h
, and continues on with the gcc8 build.
That doesn't surprise me -- there is something seriously troublesome about the finer details of the <math.h> functionality on Leopard that we have seen before.
comment:6 Changed 6 years ago by kencu (Ken)
It would appear that these internal math functions were added here <https://github.com/gcc-mirror/gcc/commit/1f24b8e93a813987ee9051c5ab554ea6d48a7b13#diff-4f175686003dda5a210d9507687045ab> and (not surprisingly) powerpc-darwin*-apple was not exactly a tested system at the time of implementation.
I wonder if we can just somehow toggle them off?
comment:7 Changed 6 years ago by kencu (Ken)
And just to make it a little more difficult, i386-darwin9-apple fails with a completely different error:
:info:build ld: warning: could not create compact unwind for std::basic_string<char, std::char_traits<char>, std::allocator<char> >::replace(unsigned long, unsigned long, char const*, unsigned long): dwarf uses DW_CFA_GNU_args_size :info:build ld: illegal text-relocoation (direct reference) to (global,weak) loc_list_hasher::equal(dw_loc_list_struct const*, dw_loc_list_struct const*) in libbackend.a(dwarf2out.o) from anon in libbackend.a(dwarf2out.o) for architecture i386 :info:build collect2: error: ld returned 1 exit status
Changed 6 years ago by kencu (Ken)
Attachment: | gcc8-i386-darwin9-apple-fail.log.zip added |
---|
gcc 8.2.0 darwin9 Leopard fail log 20180915
comment:8 Changed 6 years ago by mojca (Mojca Miklavec)
Cc: | mojca added |
---|
comment:9 Changed 5 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | new → closed |
somewhere along the line Iain or someone else at gcc fixed this, and gcc8 now builds fine on PowerPC Leopard.
comment:10 Changed 5 years ago by tanzislam (Tanzinul Islam)
Cc: | tanzislam added |
---|
first build attempt gcc 8.2.0 20180915