Hi, Thanks for the reply. Unfortunately neither of the patches make the configure work. It looks like newer llvm+clang might be the problem.
> Date: Sat, 20 Aug 2016 07:49:47 +0200 > From: grob...@gentoo.org > To: t...@outlook.com > CC: gentoo-alt@lists.gentoo.org > Subject: Re: emerge sam2p: cannot compute depends > > Maybe related: > > https://bugs.gentoo.org/show_bug.cgi?id=585630 > https://bugs.gentoo.org/show_bug.cgi?id=537668 > > Thanks, > Fabian > > On 19-08-2016 21:49:01 +0000, Han H. wrote: > > Hi, > > > > I encountered an compile error on the way to install texlive. The emerge of > > media-gfx/sam2p-0.49.1::gentoo_prefix gets errors with the following > > message. Any help will be appreciated! > > > > OS: El Captain (10.11) > > llvm+clang: 3.7.1 > > > > $ emerge -1av sam2p > > > > These are the packages that would be merged, in order: > > > > Calculating dependencies... done! > > [ebuild N ] media-gfx/sam2p-0.49.1::gentoo_prefix USE="-examples -gif" > > 0 KiB > > > > Total: 1 package (1 new), Size of downloads: 0 KiB > > > > Would you like to merge these packages? [Yes/No] y > > > > >>> Verifying ebuild manifests > > > > >>> Emerging (1 of 1) media-gfx/sam2p-0.49.1::gentoo_prefix > > * sam2p-0.49.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) > > ... [ ok ] > > >>> Unpacking source... > > >>> Unpacking sam2p-0.49.1.tar.gz to > > /Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work > > >>> Source unpacked in > > /Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work > > >>> Preparing source in > > /Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work/sam2p-0.49.1 > > ... > > * Applying sam2p-0.45-fbsd.patch > > ... > > > > [ ok ] > > * Applying sam2p-0.49.1-build.patch > > ... > > > > [ ok ] > > * Applying sam2p-0.45-locales.patch > > ... > > > > [ ok ] > > * Running eautoreconf in > > '/Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work/sam2p-0.49.1' > > ... > > * This package has a configure.in file which has long been deprecated. > > Please > > * update it to use configure.ac instead as newer versions of autotools will > > die > > * when it finds this file. See https://bugs.gentoo.org/426262 for details. > > !!! Section 'gentoo' in repos.conf has name different from repository name > > 'gentoo_prefix' set inside repository > > !!! Section 'gentoo' in repos.conf has name different from repository name > > 'gentoo_prefix' set inside repository > > !!! Section 'gentoo' in repos.conf has name different from repository name > > 'gentoo_prefix' set inside repository > > * Running autoconf > > ... > > > > [ ok ] > > * Running autoheader > > ... > > > > [ !! ] > > * Running elibtoolize in: sam2p-0.49.1/ > > >>> Source prepared. > > >>> Configuring source in > > /Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work/sam2p-0.49.1 > > ... > > ./configure --prefix=/Users/abc/gentoo/usr --build=x86_64-apple-darwin15 > > --host=x86_64-apple-darwin15 --mandir=/Users/abc/gentoo/usr/share/man > > --infodir=/Users/abc/gentoo/usr/share/info > > --datadir=/Users/abc/gentoo/usr/share --sysconfdir=/Users/abc/gentoo/etc > > --localstatedir=/Users/abc/gentoo/var/lib --libdir=/Users/abc/gentoo/usr/lib > > --enable-lzw --disable-gif > > checking for --enable-debug... assert > > checking for --enable-lzw... yes > > checking for --enable-zip... yes > > checking for --enable-fax... yes > > checking for --enable-gif... no > > checking whether the C++ compiler works... yes > > checking for C++ compiler default output file name... a.out > > checking for suffix of executables... > > checking whether we are cross compiling... no > > checking for suffix of object files... o > > checking whether we are using the GNU C++ compiler... yes > > checking whether x86_64-apple-darwin15-clang++ accepts -g... yes > > checking whether x86_64-apple-darwin15-clang++ accepts -fsigned-char... yes > > checking whether x86_64-apple-darwin15-clang++ accepts -fno-rtti > > -fno-exceptions... yes > > checking whether x86_64-apple-darwin15-clang++ accepts -ansi -pedantic -Wall > > -W... yes > > checking whether x86_64-apple-darwin15-clang++ accepts -felide-constructors > > -Wstrict-prototypes -Wpointer-arith -Wcast-align -Winline -Wcast-qual > > -Wmissing-prototypes... yes > > checking for ignored -W -Wall -Wnested-externs -Wbad-function-cast > > -Wmissing-declarations... no > > checking whether x86_64-apple-darwin15-clang++ accepts -Wnested-externs > > -Wbad-function-cast -Wmissing-declarations... yes > > checking whether gcc can link C++ code... no > > checking for cjpeg... /Users/abc/gentoo/usr/bin/cjpeg > > checking for djpeg... /Users/abc/gentoo/usr/bin/djpeg > > checking for tif22pnm... no > > configure: WARNING: tif22pnm would provide increased functionality to this > > program: > > configure: WARNING: tif22pnm is required for loading TIFF files > > checking for tifftopnm... no > > configure: WARNING: tifftopnm would provide increased functionality to this > > program: > > configure: WARNING: tifftopnm might become useful for loading TIFF files > > checking for pngtopnm... no > > configure: WARNING: pngtopnm would provide increased functionality to this > > program: > > configure: WARNING: pngtopnm might become useful for loading PNG files > > checking for gs... /Users/abc/gentoo/usr/bin/gs > > checking for lzw_codec... no > > configure: WARNING: lzw_codec would provide increased functionality to this > > program: > > configure: WARNING: lzw_codec might become recommended for /Compression/LZW > > checking for gzip... /Users/abc/gentoo/bin/gzip > > checking for zip... /usr/bin/zip > > checking for bash... /Users/abc/gentoo/bin/bash > > checking for make... /Users/abc/gentoo/usr/bin/make > > checking for perl... /Users/abc/gentoo/usr/bin/perl > > checking how to run the C++ preprocessor... x86_64-apple-darwin15-clang++ -E > > checking for grep that handles long lines and -e... > > /Users/abc/gentoo/bin/grep > > checking for egrep... /Users/abc/gentoo/bin/grep -E > > checking for ANSI C header files... yes > > checking whether cc supports prototypes... yes > > checking whether cc compiles standard C... yes > > checking for switch(enum) bug... no > > checking for ASCII system... yes > > checking for an ANSI C-conforming const... yes > > checking for C keyword volatile... yes > > checking whether c++ supports static const... yes > > checking for working getc in stdio.h... yes > > checking for working fgetc in stdio.h... yes > > checking for working putc in stdio.h... yes > > checking for working fputc in stdio.h... yes > > checking for working sprintf in stdio.h... yes > > checking for working atoi in stdlib.h... yes > > checking for working write in unistd.h... yes > > checking for working system in stdlib.h... yes > > checking for working lstat in sys/stat.h... yes > > checking for working strcpy in string.h... yes > > checking for working memcpy in string.h... yes > > checking whether memcmp and memcpy are built-in... no > > checking for working malloc in stdlib.h... yes > > checking for sys/types.h... yes > > checking for sys/stat.h... yes > > checking for stdlib.h... yes > > checking for string.h... yes > > checking for memory.h... yes > > checking for strings.h... yes > > checking for inttypes.h... yes > > checking for stdint.h... yes > > checking for unistd.h... yes > > checking for size_t... yes > > checking for working alloca.h... yes > > checking for alloca... yes > > checking for width of printf .g... ".16" > > checking for tmpdir... "/var/tmp/" > > checking for binary popen_... yes > > checking for binary popen_b... (cached) no > > checking for working vsnprintf... c99 > > checking for working system(3)... unix > > checking whether char is unsigned... no > > checking size of char... 1 > > checking size of short... (cached) 2 > > checking size of int... (cached) 4 > > checking size of long... (cached) 8 > > checking size of long long... 8 > > checking size of very long... (cached) 0 > > checking size of __int64... (cached) 0 > > configure: WARNING: cannot find inttype: sizeof(inttype)==16 > > checking size of char *... (cached) 8 > > checking size of void *... 8 > > checking for an integral type to hold a ptr... long > > checking for ptr <-> integral conversion... yes > > checking for integral type size_t... unsigned long > > checking size of bool... 1 > > configure: creating ./config.status > > config.status: creating Makehelp > > config.status: creating config.h > > running gmake Makedep... error > > configure: error: cannot compute depends > > > > !!! Please attach the following file when seeking support: > > !!! > > /Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work/sam2p-0.49.1/config.log > > * ERROR: media-gfx/sam2p-0.49.1::gentoo_prefix failed (configure phase): > > * econf failed > > * > > * Call stack: > > * ebuild.sh, line 133: Called __call-ebuildshell > > 'src_configure' > > * ebuild.sh, line 542: Called src_configure > > * environment, line 2725: Called econf '--enable-lzw' > > '--disable-gif' > > * phase-helpers.sh, line 662: Called __helpers_die 'econf failed' > > * isolated-functions.sh, line 117: Called die > > * The specific snippet of code: > > * die "$@" > > * > > * If you need support, post the output of `emerge --info > > '=media-gfx/sam2p-0.49.1::gentoo_prefix'`, > > * the complete build log and the output of `emerge -pqv > > '=media-gfx/sam2p-0.49.1::gentoo_prefix'`. > > * The complete build log is located at > > '/Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/temp/build.log'. > > * The ebuild environment file is located at > > '/Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/temp/environment'. > > * Working directory: > > '/Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work/sam2p-0.49.1' > > * S: > > '/Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/work/sam2p-0.49.1' > > > > >>> Failed to emerge media-gfx/sam2p-0.49.1, Log file: > > > > >>> > > '/Users/abc/gentoo/var/tmp/portage/media-gfx/sam2p-0.49.1/temp/build.log' > > > > $ emerge --info > > Portage 2.2.28-prefix (python 3.5.1-final-0, prefix/darwin/macos/10.11/x64, > > clang-3.7.1, unavailable, 15.6.0 x86_64) > > ================================================================= > > System uname: Darwin-15.6.0-x86_64-i386-64bit > > Timestamp of repository gentoo_prefix: Fri, 19 Aug 2016 19:27:57 +0000 > > sh bash 4.3_p39 > > app-shells/bash: 4.3_p39::gentoo_prefix > > dev-lang/perl: 5.24.0-r1::gentoo_prefix > > dev-lang/python: 2.7.11-r2::gentoo_prefix, 3.4.3-r5::gentoo_prefix, > > 3.5.1-r3::gentoo_prefix > > dev-util/cmake: 3.6.1::gentoo_prefix > > dev-util/pkgconfig: 0.29.1::gentoo_prefix > > sys-devel/autoconf: 2.69::gentoo_prefix > > sys-devel/automake: 1.14.1::gentoo_prefix, 1.15::gentoo_prefix > > sys-devel/libtool: 2.4.6-r1::gentoo_prefix > > sys-devel/make: 4.2.1::gentoo_prefix > > Repositories: > > > > gentoo_prefix > > location: /Users/abc/gentoo/usr/portage > > sync-type: rsync > > sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix > > priority: -1000 > > aliases: gentoo > > > > science > > location: /Users/abc/gentoo/var/lib/layman/science > > masters: gentoo_prefix > > priority: 0 > > > > sage-on-gentoo > > location: /Users/abc/gentoo/var/lib/layman/sage-on-gentoo > > masters: gentoo_prefix science > > priority: 1 > > > > ACCEPT_KEYWORDS="~x64-macos" > > ACCEPT_LICENSE="* -@EULA" > > CBUILD="x86_64-apple-darwin15" > > CC="x86_64-apple-darwin15-clang" > > CFLAGS="-march=native -O2 -pipe" > > CHOST="x86_64-apple-darwin15" > > CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" > > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d > > /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild > > /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d > > /etc/texmf/updmap.d /etc/texmf/web2c" > > CXX="x86_64-apple-darwin15-clang++" > > CXXFLAGS="-march=native -O2 -pipe" > > DISTDIR="/Users/abc/gentoo/usr/portage/distfiles" > > FCFLAGS="" > > FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect > > config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix > > merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms > > strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged > > userfetch userpriv usersandbox usersync" > > FFLAGS="" > > GENTOO_MIRRORS="http://distfiles.gentoo.org" > > LDFLAGS="-Wl,-dead_strip_dylibs" > > MAKEOPTS="-j5" > > PKGDIR="/Users/abc/gentoo/usr/portage/packages" > > PORTAGE_CONFIGROOT="/Users/abc/gentoo/" > > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times > > --omit-dir-times --compress --force --whole-file --delete --stats > > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local > > --exclude=/packages --exclude=/.git" > > PORTAGE_TMPDIR="/Users/abc/gentoo/var/tmp" > > USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses nls objc > > objc++ prefix prefix-guest readline sse sse2 ssl unicode x64-macos zlib" > > ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd > > actions alias auth_basic authn_alias authn_anon authn_dbm authn_default > > authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner > > authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir > > disk_cache env expires ext_filter file_cache filter headers include info > > log_config logio mem_cache mime mime_magic negotiation rewrite setenvif > > speling status unique_id userdir usertrack vhost_alias" > > CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon > > braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load > > memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" > > ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin > > garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle > > oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox > > ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" L10N="en" > > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb > > ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" > > OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" > > PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 > > python3_5" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" > > XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p > > iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark > > dhcpmac delude chaos account" > > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, > > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, > > PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON > > > > Many thanks, > > Han > > > > -- > Fabian Groffen > Gentoo on a different level Han