[MacPorts] #69785: libarchive @3.7.3: :info:configure configure: error: cannot compute sizeof (wchar_t) on systems building with gcc

MacPorts noreply at macports.org
Sat Apr 20 06:35:36 UTC 2024


#69785: libarchive @3.7.3: :info:configure configure: error: cannot compute sizeof
(wchar_t) on systems building with gcc
----------------------------------+-----------------------------
 Reporter:  kencu                 |      Owner:  (none)
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:
Component:  ports                 |    Version:
 Keywords:  tiger leopard legacy  |       Port:  libarchive, icu
----------------------------------+-----------------------------
 build fails on 10.5 PPC:
 {{{
 :info:configure checking whether EILSEQ is declared... yes
 :info:configure checking for wchar_t... yes
 :info:configure checking size of wchar_t... configure: error: in
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_libarchive/libarchive/work/libarchive-3.7.3':
 :info:configure configure: error: cannot compute sizeof (wchar_t)
 :info:configure See `config.log' for more details
 }}}

 the cause, however, has to do with the fact the icu has been built againt
 the newer libstdc++ from gcc7, and so that version of icu also must link
 against the newer libstdc++:

 {{{
 dyld: Symbol not found: __ZSt14__once_functor
   Referenced from: /opt/local/lib/libicuuc.74.dylib
   Expected in: /usr/lib/libstdc++.6.dylib

 ./configure: line 1941: 57107 Trace/BPT trap          ./conftest$ac_exeext
 }}}

 so the fix is to make libarchive also build with the newer gcc compiler in
 some way (any way, but setting the compiler.c_standard to 2011 does it).

 So now anything that links in icu has to be built with the newer gcc
 compiler.

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


More information about the macports-tickets mailing list