Bug 104183 - gcc6 error with building icu for ppc64
Summary: gcc6 error with building icu for ppc64
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 6.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Keywords: rejects-valid
Depends on:
Reported: 2022-01-22 09:59 UTC by Sergey Fedorov
Modified: 2022-01-22 11:56 UTC (History)
1 user (show)

See Also:
Target: powerpc64-apple-darwin9.8.0
Known to work:
Known to fail:
Last reconfirmed: 2022-01-22 00:00:00

ii files for errors (408.12 KB, application/zip)
2022-01-22 09:59 UTC, Sergey Fedorov

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Fedorov 2022-01-22 09:59:54 UTC
Created attachment 52266 [details]
ii files for errors

Build fails with the following:

ld: duplicate symbol icu_67::number::NumberFormatterSettings<icu_67::number::UnlocalizedNumberFormatter>::copyErrorTo(UErrorCode&) const in number_skeletons.o and number_fluent.o
collect2: error: ld returned 1 exit status
make[1]: *** [../lib/libicui18n.67.1.dylib] Error 1
make: *** [all-recursive] Error 2

Commands producing the faulty objects:

/opt/local/bin/g++-mp-6 -m64 -O2 -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -fvisibility=hidden -fno-common -c -dynamic -MMD -MT "number_skeletons.d number_skeletons.o number_skeletons.ao" -o number_skeletons.o number_skeletons.cpp

/opt/local/bin/g++-mp-6 -m64 -O2 -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -fvisibility=hidden -fno-common -c -dynamic -MMD -MT "number_fluent.d number_fluent.o number_fluent.ao" -o number_fluent.o number_fluent.cpp

P. S. Error unrelated to Macports, I have redone the build outside with cleared path, and it fails identically. ii files in attachment are from the build outside of Macports.
Comment 1 Iain Sandoe 2022-01-22 11:56:51 UTC
Yes, I can repeat this, it is quite possible that there are several/many C++11 bugs on this branch, however GCC-6 branch has been closed for some time now (so we cannot update it here).

If you can determine which patch(es) fixed this on the 7 branch then perhaps you could back port them locally for the macports GCC-6.5 branch.