[MacPorts] #48016: icu do not compile under OSX 10.7 (error: initialization of non-aggregate type with an initializer list)
MacPorts
noreply at macports.org
Thu Jun 11 07:16:43 PDT 2015
#48016: icu do not compile under OSX 10.7 (error: initialization of non-aggregate
type with an initializer list)
-------------------------------+--------------------------------
Reporter: caulier.gilles@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: icu |
-------------------------------+--------------------------------
Comment (by rjvbertin@…):
Replying to [ticket:48016 caulier.gilles@…]:
> In order to compile digiKam bundle PKG for OSX, I tried successfuly to
compile whole digiKam under OSX 10.10, 10.9, 10.8.
>
> It fail under OSX 10.7 due to a C++11 code not supported by XCode/Clang
:
{{{
> OSX107:bundle gilles$ cat
/opt/digikam/var/macports/logs//_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/main.log
version:1
:debug:main Executing org.macports.main (icu)
:debug:main Skipping completed org.macports.archivefetch (icu)
:debug:main Skipping completed org.macports.fetch (icu)
:debug:main Skipping completed org.macports.checksum (icu)
:debug:main Skipping completed org.macports.extract (icu)
:debug:main Skipping completed org.macports.patch (icu)
:debug:main Skipping completed org.macports.configure (icu)
:debug:build build phase started at Thu Jun 11 00:17:45 CEST 2015
:notice:build --- Building icu
:debug:build Executing org.macports.build (icu)
:debug:build Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/.CC_PRINT_OPTIONS'
CPATH='/opt/digikam/include'
LIBRARY_PATH='/opt/digikam/lib'
MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd
"/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/icu/source"
&& /usr/bin/gnumake -j4 -w all VERBOSE=1'
:debug:build Executing command line: cd
"/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/icu/source"
&& /usr/bin/gnumake -j4 -w all VERBOSE=1
:info:build gnumake: Entering directory
`/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/icu/source'
:info:build /usr/bin/gnumake[0]: Making `all' in `stubdata'
:info:build gnumake[1]: Entering directory
`/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/icu/source/stubdata'
:info:build gnumake[1]: Nothing to be done for `all'.
:info:build gnumake[1]: Leaving directory
`/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/icu/source/stubdata'
:info:build /usr/bin/gnumake[0]: Making `all' in `common'
:info:build gnumake[1]: Entering directory
`/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_icu/icu/work/icu/source/common'
:info:build /usr/bin/clang++ -DU_ATTRIBUTE_DEPRECATED=
-DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=1 -I.
"-DDEFAULT_ICU_PLUGINS=\"/opt/digikam/lib/icu\" " -O2 -pipe -Os -arch
x86_64 -stdlib=libc++ -W -Wall -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long --std=c++0x -fvisibility=hidden -fno-common -c -MMD -MT
"putil.d putil.o putil.ao" -o putil.ao putil.cpp
:info:build /usr/bin/clang++ -DU_ATTRIBUTE_DEPRECATED=
-DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=1 -I.
"-DDEFAULT_ICU_PLUGINS=\"/opt/digikam/lib/icu\" " -O2 -pipe -Os -arch
x86_64 -stdlib=libc++ -W -Wall -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long --std=c++0x -fvisibility=hidden -fno-common -c -MMD -MT
"uinit.d uinit.o uinit.ao" -o uinit.ao uinit.cpp
:info:build /usr/bin/clang++ -DU_ATTRIBUTE_DEPRECATED=
-DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=1 -I.
"-DDEFAULT_ICU_PLUGINS=\"/opt/digikam/lib/icu\" " -O2 -pipe -Os -arch
x86_64 -stdlib=libc++ -W -Wall -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long --std=c++0x -fvisibility=hidden -fno-common -c -MMD -MT
"udata.d udata.o udata.ao" -o udata.ao udata.cpp
:info:build /usr/bin/clang++ -DU_ATTRIBUTE_DEPRECATED=
-DU_COMMON_IMPLEMENTATION -DU_HAVE_ATOMIC=1 -I.
"-DDEFAULT_ICU_PLUGINS=\"/opt/digikam/lib/icu\" " -O2 -pipe -Os -arch
x86_64 -stdlib=libc++ -W -Wall -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long --std=c++0x -fvisibility=hidden -fno-common -c -MMD -MT
"ucnv_bld.d ucnv_bld.o ucnv_bld.ao" -o ucnv_bld.ao ucnv_bld.cpp
:info:build uinit.cpp:27:33: error: initialization of non-aggregate type
'u_atomic_int32_t' (aka 'atomic<int32_t>') with an initializer list
:info:build static UInitOnce gICUInitOnce = U_INITONCE_INITIALIZER;
:info:build ^~~~~~~~~~~~~~~~~~~~~~
:info:build ./umutex.h:199:33: note: expanded from macro
'U_INITONCE_INITIALIZER'
:info:build #define U_INITONCE_INITIALIZER {ATOMIC_INT32_T_INITIALIZER(0),
U_ZERO_ERROR}
:info:build ^
:info:build ./umutex.h:58:41: note: expanded from macro
'ATOMIC_INT32_T_INITIALIZER'
:info:build #define ATOMIC_INT32_T_INITIALIZER(val) ATOMIC_VAR_INIT(val)
:info:build ^
:info:build /usr/bin/../lib/c++/v1/atomic:1497:30: note: expanded from
macro 'ATOMIC_VAR_INIT'
:info:build #define ATOMIC_VAR_INIT(__v) {__v}
:info:build ^~~~~
:info:build uinit.cpp:66:20: warning: unused parameter 'status' [-Wunused-
parameter]
:info:build u_init(UErrorCode *status) {
:info:build ^
:info:build 1 warning and 1 error generated.
}}}
>
> Configuration :
> ---------------
>
> OSX : 10.7.3
> XCode : xcode_4.3.3_for_lion.dmg
> CLI Tools : xcode452cltools10_76938212a.dmg
>
> macports.conf includes these lines at end :
>
> cxx_stdlib libc++
> buildfromsource always
> delete_la_files yes
>
> I tried to use another Clang version from Macports through port select
without any difference :
{{{
> port install clang_select
> port install clang-3.6
> port select --set clang mp-clang-3.6
> port install icu
}}}
> Thanks in advance to guide me.
>
> Gilles Caulier
--
Ticket URL: <https://trac.macports.org/ticket/48016#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list