[MacPorts] #59408: icu @65.1_0 - failed to build

MacPorts noreply at macports.org
Sun Oct 20 23:00:17 UTC 2019


#59408: icu @65.1_0 - failed to build
-------------------------+--------------------
 Reporter:  arthurdbar   |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.6.1
 Keywords:  icu mplayer  |       Port:  icu
-------------------------+--------------------
 Hello,
 As explained at the end, I actually finally managed to build the port but
 this might help other people, or hopefully lead to a proper fix.


 While trying to build icu on Mac OS X Mavericks 10.9.5 and Xcode 6.2, I
 got the following error:

 {{{
 Error: Failed to build icu: command execution failed
 }}}

 The log mentionned the following
 {{{
 :info:build uarrsort.cpp:142:26: error: unknown type name 'max_align_t';
 did you mean 'std::max_align_t'?
 :info:build     icu::MaybeStackArray<max_align_t,
 sizeInMaxAlignTs(STACK_ITEM_SIZE)> v;
 :info:build                          ^~~~~~~~~~~
 :info:build                          std::max_align_t
 :info:build
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:55:21:
 note: 'std::max_align_t' declared here
 :info:build typedef long double max_align_t;
 :info:build                     ^
 :info:build uarrsort.cpp:236:26: error: unknown type name 'max_align_t';
 did you mean 'std::max_align_t'?
 :info:build     icu::MaybeStackArray<max_align_t,
 sizeInMaxAlignTs(STACK_ITEM_SIZE) * 2> xw;
 :info:build                          ^~~~~~~~~~~
 :info:build                          std::max_align_t
 :info:build
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef:55:21:
 note: 'std::max_align_t' declared here
 :info:build typedef long double max_align_t;
 :info:build                     ^
 :info:build 2 errors generated.
 :info:build gnumake[1]: *** [uarrsort.ao] Error 1
 :info:build gnumake[1]: *** Waiting for unfinished jobs....
 :info:build gnumake[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work
 /icu-release-65-1/icu4c/source/common'
 :info:build gnumake: *** [all-recursive] Error 2
 :info:build gnumake: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work
 /icu-release-65-1/icu4c/source'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work
 /icu-release-65-1/icu4c/source" && /usr/bin/gnumake -j2 -w all VERBOSE=1
 :info:build Exit code: 2
 :error:build Failed to build icu: command execution failed
 :debug:build Error code: CHILDSTATUS 15307 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See /opt/local/var/macports/logs/
 }}}


 I finally managed to complete the install by changing the following files
 found in
 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work
 /icu-release-65-1/icu4c/source/

 }}}



 {{{
 common/uarrsort.cpp
 common/utext.cpp
 tools/toolutil/toolutil.cpp
 }}}


 In each of the three, as was hinted at by the log file, I replaced every
 occurrence (there's between one and three per file) of
 {{{
 max_align_t
 }}}
 by
 {{{
 std::max_align_t
 }}}
 I did this after a first failed install and without cleaning the port.
 Then I retried the install. Obviously the first time the first file was
 the only one to bring up errors. The errors showed up in the other files
 when I tried to install for a second and third time.

 So anyways, if anyone has the same problem just try installing, fix the
 three files and then try again. Do not clean at any point as that would
 delete the files (at least at the location mentioned above). Full
 disclaimer, I really have no clue if I did the right thing or not. The
 installer completed and said it didn't find any "broken files or ports"
 but I really don't know if it's a proper fix or not.

-- 
Ticket URL: <https://trac.macports.org/ticket/59408>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list