[MacPorts] #59150: libiconv-boostrap: fails to build with clang on 10.6
MacPorts
noreply at macports.org
Wed Oct 2 19:17:40 UTC 2019
#59150: libiconv-boostrap: fails to build with clang on 10.6
--------------------+--------------------------------
Reporter: mojca | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: libiconv-bootstrap
--------------------+--------------------------------
I don't quite understand how it got built on the buildbot and not here,
but:
{{{
libtool: compile: /usr/bin/clang -I. -I. -I../include -I./../include -I..
-I./.. -pipe -Os -arch x86_64 -fvisibility=hidden
-DLIBDIR=\"/opt/local/libexec/libcxx-bootstrap/lib\" -DBUILDING_LIBICONV
-DBUILDING_DLL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY
-DINSTALLDIR=\"/opt/local/libexec/libcxx-bootstrap/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libiconv_set_relocation_prefix
-Drelocate=libiconv_relocate -Drelocate2=libiconv_relocate2
-DHAVE_CONFIG_H -c ./relocatable.c -o relocatable.o >/dev/null 2>&1
In file included from ./iconv.c:112:
./encodings.def:71:1: warning: incompatible pointer types initializing
'int (conv_t, ucs4_t *, unsigned char const *, int)', expected
'int (*)(conv_t, ucs4_t *, unsigned char const *, size_t)'
DEFENCODING(( "UTF-8-MAC", /* utf8-nfd */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./encodings.def:75:15: note: instantiated from:
{ utf8mac_mbtowc, NULL }, { utf8mac_wctomb, NULL })
^~~~~~~~~~~~~~
./encodings.def:71:1: warning: incompatible pointer types initializing
'int (conv_t, unsigned char *, ucs4_t, int)', expected 'int (*)(conv_t,
unsigned char *, ucs4_t, size_t)'
DEFENCODING(( "UTF-8-MAC", /* utf8-nfd */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./encodings.def:75:45: note: instantiated from:
{ utf8mac_mbtowc, NULL }, { utf8mac_wctomb, NULL })
^~~~~~~~~~~~~~
./iconv.c:188:1: error: cannot combine with previous 'static' declaration
specifier
static const struct alias *
^
3 diagnostics generated.
make[1]: *** [iconv.lo] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libiconv
/libiconv-bootstrap/work/libiconv-1.16/lib'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libiconv
/libiconv-bootstrap/work/libiconv-1.16'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libiconv
/libiconv-bootstrap/work/libiconv-1.16" && /usr/bin/make CC=/usr/bin/clang
-f Makefile.devel && /usr/bin/make -j2 -w all
Exit code: 2
Error: Failed to build libiconv-bootstrap: command execution failed
DEBUG: Error code: CHILDSTATUS 47316 2
DEBUG: Backtrace: command execution failed
while executing
"system {*}$notty {*}$nice $fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libiconv
/libiconv-bootstrap/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port libiconv-bootstrap failed
}}}
Building it with `configure.compiler=llvm-gcc-4.2` apparently helped,
while another user reports a fix by changing `static const struct alias *`
to `const struct alias *`
--
Ticket URL: <https://trac.macports.org/ticket/59150>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list