[MacPorts] #45695: libiconv: build cannot find stdarg.h (was: libiconv fails to build)

MacPorts noreply at macports.org
Thu Oct 30 19:45:35 PDT 2014


#45695: libiconv: build cannot find stdarg.h
--------------------------+--------------------------
  Reporter:  normadize@…  |      Owner:  ryandesign@…
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.3.2
Resolution:               |   Keywords:
      Port:  libiconv     |
--------------------------+--------------------------
Changes (by larryv@…):

 * owner:  macports-tickets@… => ryandesign@…
 * port:   => libiconv


Old description:

> I'm on Yosemite 10.10 final, XCode 6.1 installed. Seems like it's trying
> to include a missing file.
>
> sudo port -v install libiconv
> --->  Computing dependencies for libiconv.
> --->  Building libiconv
> if test -n "$GNULIB_TOOL"; then \
>           $GNULIB_TOOL --lib=libicrt --source-base=srclib --m4-base=srcm4
> --makefile-name=Makefile.gnulib --no-libtool --local-dir=gnulib-local
> --no-vc-files \
>             --import binary-io error gettext gettext-h mbstate memmove
> progname relocatable-prog safe-read sigpipe stdio stdlib strerror unistd
> uniwidth/width unlocked-io xalloc libiconv-misc; \
>         fi
> cd libcharset && make -f Makefile.devel all
> make[1]: Nothing to be done for `all'.
> cd preload && make -f Makefile.devel all
> make[1]: Nothing to be done for `all'.
> make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
> cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
> make[1]: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/lib'
> /bin/sh ../libtool --mode=compile /usr/bin/clang -I. -I. -I../include
> -I./../include -I.. -I./..  -pipe -Os -arch x86_64 -fvisibility=hidden
> -DLIBDIR=\"/opt/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL
> -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/local/lib\"
> -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix
> -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
> libtool: compile:  /usr/bin/clang -I. -I. -I../include -I./../include
> -I.. -I./.. -pipe -Os -arch x86_64 -fvisibility=hidden
> -DLIBDIR=\"/opt/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL
> -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/local/lib\"
> -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix
> -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c  -fno-common
> -DPIC -o .libs/iconv.o
> In file included from ./iconv.c:21:
> In file included from ../include/iconv.h:117:
> /usr/include/wchar.h:89:10: fatal error: 'stdarg.h' file not found
> #include <stdarg.h>
>          ^
> 1 error generated.
> make[1]: *** [iconv.lo] Error 1
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/lib'
> make: *** [all] Error 2
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14"
> && /usr/bin/make CC=/usr/bin/clang -f Makefile.devel && /usr/bin/make -j8
> -w all
> Exit code: 2
> Error: org.macports.build for port libiconv returned: command execution
> failed
> Warning: targets not executed for libiconv: org.macports.activate
> org.macports.build org.macports.destroot org.macports.install
> Please see the log file for port libiconv for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/main.log
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port libiconv failed

New description:

 I'm on Yosemite 10.10 final, XCode 6.1 installed. Seems like it's trying
 to include a missing file.

 {{{
 sudo port -v install libiconv
 --->  Computing dependencies for libiconv.
 --->  Building libiconv
 if test -n "$GNULIB_TOOL"; then \
           $GNULIB_TOOL --lib=libicrt --source-base=srclib --m4-base=srcm4
 --makefile-name=Makefile.gnulib --no-libtool --local-dir=gnulib-local
 --no-vc-files \
             --import binary-io error gettext gettext-h mbstate memmove
 progname relocatable-prog safe-read sigpipe stdio stdlib strerror unistd
 uniwidth/width unlocked-io xalloc libiconv-misc; \
         fi
 cd libcharset && make -f Makefile.devel all
 make[1]: Nothing to be done for `all'.
 cd preload && make -f Makefile.devel all
 make[1]: Nothing to be done for `all'.
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 cd lib && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/lib'
 /bin/sh ../libtool --mode=compile /usr/bin/clang -I. -I. -I../include
 -I./../include -I.. -I./..  -pipe -Os -arch x86_64 -fvisibility=hidden
 -DLIBDIR=\"/opt/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL
 -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/local/lib\"
 -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix
 -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
 libtool: compile:  /usr/bin/clang -I. -I. -I../include -I./../include -I..
 -I./.. -pipe -Os -arch x86_64 -fvisibility=hidden
 -DLIBDIR=\"/opt/local/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL
 -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/opt/local/lib\"
 -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix
 -Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c  -fno-common
 -DPIC -o .libs/iconv.o
 In file included from ./iconv.c:21:
 In file included from ../include/iconv.h:117:
 /usr/include/wchar.h:89:10: fatal error: 'stdarg.h' file not found
 #include <stdarg.h>
          ^
 1 error generated.
 make[1]: *** [iconv.lo] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14/lib'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/work/libiconv-1.14"
 && /usr/bin/make CC=/usr/bin/clang -f Makefile.devel && /usr/bin/make -j8
 -w all
 Exit code: 2
 Error: org.macports.build for port libiconv returned: command execution
 failed
 Warning: targets not executed for libiconv: org.macports.activate
 org.macports.build org.macports.destroot org.macports.install
 Please see the log file for port libiconv for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libiconv/libiconv/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port libiconv failed
 }}}

--

Comment:

 Replying to [comment:2 normadize@…]:
 > It shows the gxx-include-dir to be the one that does contain stdarg.h
 > but shouldn't the prefix be `/Library/Developer/CommandLineTools/usr`
 > instead of `/Applications/Xcode.app/Contents/Developer/usr` ?
 >
 > Same goes for
 > {{{
 > $ xcode-select -p
 > /Applications/Xcode.app/Contents/Developer
 > }}}
 > Should that be `/Library/Developer/CommandLineTools` ?

 No. Your active developer directory is correct.

 Please run the following commands and attach the `main.log` file
 immediately afterwards:
 {{{
 % sudo port clean libiconv
 % sudo port install libiconv
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/45695#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list