Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.58k stars 12.33k forks source link

openssl & wine install failure mac os 10.12.4 #9510

Closed tdenley1 closed 7 years ago

tdenley1 commented 7 years ago

Last login: Tue Jan 31 17:23:42 on ttys000 t-ds-iMac:~ tden$ brew install wine ==> Installing dependencies for wine: openssl, sane-backends, libtasn1 ==> Installing wine dependency: openssl ==> Using the sandbox ==> Downloading https://www.openssl.org/source/openssl-1.0.2k.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/openssl-1.0.2k.tar.gz ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make ==> make test ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make Last 15 lines from /Users/td/Library/Logs/Homebrew/openssl/09.make: fi [ -z "" ] || clang -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Iinclude \ -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \ fips_premain.c fipscanister.o \ libcrypto.a Undefined symbols for architecture i386: "_compilerrt_abort_impl", referenced from: ___eprintf in libclang_rt.eprintf.a(eprintf.c.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: [link_a.darwin] Error 1 make[3]: [do_darwin-shared] Error 2 make[2]: [libcrypto.1.0.0.dylib] Error 2 make[1]: [shared] Error 2 make: *** [build_crypto] Error 1

READ THIS: http://docs.brew.sh/Troubleshooting.html

These open issues may also help: OpenSSL@1.1 Migration [Tracking] https://github.com/Homebrew/homebrew-core/issues/4543 The description for openssl installation is misleading https://github.com/Homebrew/homebrew-core/issues/5291 t-ds-iMac:~ tden$ brew doctor Your system is ready to brew. t-ds-iMac:~ tden$ brew config HOMEBREW_VERSION: 1.1.9 ORIGIN: https://github.com/Homebrew/brew HEAD: 664d0c67d5947605c914c4c56ebcfaa80cb6eca0 Last commit: 2 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: c11a5143c0f63704c39dbc196b17bd3fb8361b0d Core tap last commit: 3 hours ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local/Homebrew HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit sandybridge Homebrew Ruby: 2.0.0-p648 Clang: 8.0 build 800 Git: 2.10.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby Java: 1.8.0_121 macOS: 10.12.4-x86_64 Xcode: 8.2.1 CLT: N/A X11: 2.7.11 => /opt/X11 t-ds-iMac:~ tden$

please assist openssl & wine installation. thank you in advance.

MikeMcQuaid commented 7 years ago

Please provide your brew gist-logs wine output.

ntapiam commented 7 years ago

Hi, I'm running into the same problem. Here is my brew gist-logs wineoutput.

Thanks.

tdenley1 commented 7 years ago

Last login: Thu Feb 9 16:10:37 on ttys000 t-ds-iMac:~ tden$ brew gist-logs wine Error: No logs. t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

Please try

brew uninstall --ignore-dependencies $(brew deps --include-build wine)
brew install wine
tdenley1 commented 7 years ago

Last login: Sun Feb 19 09:33:47 on ttys000 t-ds-iMac:~ tden$ brew uninstall --ignore-dependencies $(brew deps --include-build wine) Error: No such keg: /usr/local/Cellar/sphinx-doc t-ds-iMac:~ tden$ brew install wine ==> Installing dependencies for wine: openssl, sane-backends, libtasn1, gnutls ==> Installing wine dependency: openssl ==> Using the sandbox ==> Downloading https://www.openssl.org/source/openssl-1.0.2k.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/openssl-1.0.2k.tar.gz ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make ==> make test ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make Last 15 lines from /Users/td/Library/Logs/Homebrew/openssl/09.make: fi [ -z "" ] || clang -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Iinclude \ -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \ fips_premain.c fipscanister.o \ libcrypto.a Undefined symbols for architecture i386: "_compilerrt_abort_impl", referenced from: ___eprintf in libclang_rt.eprintf.a(eprintf.c.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: [link_a.darwin] Error 1 make[3]: [do_darwin-shared] Error 2 make[2]: [libcrypto.1.0.0.dylib] Error 2 make[1]: [shared] Error 2 make: *** [build_crypto] Error 1

READ THIS: http://docs.brew.sh/Troubleshooting.html

These open issues may also help: OpenSSL@1.1 Migration [Tracking] https://github.com/Homebrew/homebrew-core/issues/4543 openssl & wine install failure mac os 10.12.4 https://github.com/Homebrew/homebrew-core/issues/9510 The description for openssl installation is misleading https://github.com/Homebrew/homebrew-core/issues/5291 t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

Ah, OK, then

brew deps --include-build wine | xargs -tn1 brew uninstall --ignore-dependencies
brew install wine
tdenley1 commented 7 years ago

Last login: Sun Feb 19 09:34:16 on ttys000 t-ds-iMac:~ tden$ brew deps --include-build wine | xargs -tn1 brew uninstall --ignore-dependencies brew uninstall --ignore-dependencies cmake Uninstalling /usr/local/Cellar/cmake/3.7.2... (2,143 files, 29.1M) brew uninstall --ignore-dependencies fontconfig Uninstalling /usr/local/Cellar/fontconfig/2.12.1_2... (469 files, 3.8M) brew uninstall --ignore-dependencies freetype Uninstalling /usr/local/Cellar/freetype/2.7.1... (62 files, 3.6M) brew uninstall --ignore-dependencies gd Uninstalling /usr/local/Cellar/gd/2.2.4_1... (34 files, 2.0M) gd 2.2.4 is still installed. Remove all versions with brew uninstall --force gd. brew uninstall --ignore-dependencies gmp Uninstalling /usr/local/Cellar/gmp/6.1.2... (18 files, 3.1M) brew uninstall --ignore-dependencies gnutls Uninstalling /usr/local/Cellar/gnutls/3.5.8... (1,171 files, 7.5M) brew uninstall --ignore-dependencies jasper Uninstalling /usr/local/Cellar/jasper/2.0.10... (39 files, 1.3M) brew uninstall --ignore-dependencies jpeg Uninstalling /usr/local/Cellar/jpeg/8d... (20 files, 1.3M) brew uninstall --ignore-dependencies libffi Uninstalling /usr/local/Cellar/libffi/3.0.13... (15 files, 361.9K) brew uninstall --ignore-dependencies libgphoto2 Uninstalling /usr/local/Cellar/libgphoto2/2.5.12... (169 files, 7.3M) brew uninstall --ignore-dependencies libicns Uninstalling /usr/local/Cellar/libicns/0.8.1_3... (19 files, 408.2K) brew uninstall --ignore-dependencies libpng Uninstalling /usr/local/Cellar/libpng/1.6.28... (26 files, 1.6M) brew uninstall --ignore-dependencies libtasn1 Uninstalling /usr/local/Cellar/libtasn1/4.10... (59 files, 439.4K) brew uninstall --ignore-dependencies libtiff Uninstalling /usr/local/Cellar/libtiff/4.0.7_2... (248 files, 4.9M) brew uninstall --ignore-dependencies libtool Uninstalling /usr/local/Cellar/libtool/2.4.6_1... (71 files, 3.7M) brew uninstall --ignore-dependencies libunistring Uninstalling /usr/local/Cellar/libunistring/0.9.7... (53 files, 4.2M) brew uninstall --ignore-dependencies libusb Uninstalling /usr/local/Cellar/libusb/1.0.21... (29 files, 691.6K) brew uninstall --ignore-dependencies libusb-compat Uninstalling /usr/local/Cellar/libusb-compat/0.1.5... (14 files, 134.4K) brew uninstall --ignore-dependencies little-cms2 Uninstalling /usr/local/Cellar/little-cms2/2.8... (18 files, 1.9M) brew uninstall --ignore-dependencies makedepend Uninstalling /usr/local/Cellar/makedepend/1.0.5... (7 files, 78.9K) brew uninstall --ignore-dependencies net-snmp Uninstalling /usr/local/Cellar/net-snmp/5.7.3... (538 files, 12.8M) brew uninstall --ignore-dependencies nettle Uninstalling /usr/local/Cellar/nettle/3.3... (81 files, 2.0M) brew uninstall --ignore-dependencies openssl Uninstalling /usr/local/Cellar/openssl/1.0.2k.tmp... (1,696 files, 12.1M) brew uninstall --ignore-dependencies p11-kit Uninstalling /usr/local/Cellar/p11-kit/0.23.3... (59 files, 861.5K) brew uninstall --ignore-dependencies pkg-config Uninstalling /usr/local/Cellar/pkg-config/0.29.1_2... (10 files, 627.5K) brew uninstall --ignore-dependencies sane-backends Uninstalling /usr/local/Cellar/sane-backends/1.0.25_1... (427 files, 11.4M) brew uninstall --ignore-dependencies sphinx-doc Error: No such keg: /usr/local/Cellar/sphinx-doc brew uninstall --ignore-dependencies webp Uninstalling /usr/local/Cellar/webp/0.6.0... (36 files, 2.0M) webp 0.5.2 is still installed. Remove all versions with brew uninstall --force webp. t-ds-iMac:~ tden$ brew install wine Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> Updated Formulae chicken imagemagick@6 no-more-secrets vim imagemagick mapserver protobuf-swift ==> Deleted Formulae esound lcab

==> Installing dependencies for wine: libpng, freetype, jpeg, pkg-config, libtool, libusb, libusb-compat, fontconfig, libtiff, webp, gd, libgphoto2, little-cms2, cmake, jasper, libicns, makedepend, openssl, net-snmp, sane-backends, libtasn1, gmp, nettle, libunistring, libffi, p11-kit, gnutls ==> Installing wine dependency: libpng ==> Using the sandbox ==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1 Already downloaded: /Users/td/Library/Caches/Homebrew/libpng-1.6.28.tar.xz ==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libpng/1.6.28 ==> make ==> make test ==> make install 🍺 /usr/local/Cellar/libpng/1.6.28: 26 files, 1.6M, built in 1 minute 13 seconds ==> Installing wine dependency: freetype ==> Downloading https://downloads.sf.net/project/freetype/freetype2/2.7.1/freety Already downloaded: /Users/td/Library/Caches/Homebrew/freetype-2.7.1.tar.bz2 ==> ./configure --prefix=/usr/local/Cellar/freetype/2.7.1 --without-harfbuzz ==> make ==> make install 🍺 /usr/local/Cellar/freetype/2.7.1: 62 files, 3.6M, built in 44 seconds ==> Installing wine dependency: jpeg ==> Downloading http://www.ijg.org/files/jpegsrc.v8d.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/jpeg-8d.tar.gz ==> ./configure --prefix=/usr/local/Cellar/jpeg/8d ==> make install 🍺 /usr/local/Cellar/jpeg/8d: 20 files, 1.3M, built in 34 seconds ==> Installing wine dependency: pkg-config ==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_2.sierra. Already downloaded: /Users/td/Library/Caches/Homebrew/pkg-config-0.29.1_2.sierra.bottle.tar.gz ==> Pouring pkg-config-0.29.1_2.sierra.bottle.tar.gz 🍺 /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.5K ==> Installing wine dependency: libtool ==> Downloading https://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz Already downloaded: /Users/td/Library/Caches/Homebrew/libtool-2.4.6.tar.xz ==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.6_1 --program-prefix=g -- ==> make install ==> Caveats In order to prevent conflicts with Apple's own libtool we have prepended a "g" so, you have instead: glibtool and glibtoolize. ==> Summary 🍺 /usr/local/Cellar/libtool/2.4.6_1: 71 files, 3.7M, built in 37 seconds ==> Installing wine dependency: libusb ==> Downloading https://github.com/libusb/libusb/releases/download/v1.0.21/libus Already downloaded: /Users/td/Library/Caches/Homebrew/libusb-1.0.21.tar.bz2 ==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.21 ==> make install 🍺 /usr/local/Cellar/libusb/1.0.21: 29 files, 685.5K, built in 28 seconds ==> Installing wine dependency: libusb-compat ==> Downloading https://downloads.sourceforge.net/project/libusb/libusb-compat-0 Already downloaded: /Users/td/Library/Caches/Homebrew/libusb-compat-0.1.5.tar.bz2 ==> ./configure --prefix=/usr/local/Cellar/libusb-compat/0.1.5 ==> make install 🍺 /usr/local/Cellar/libusb-compat/0.1.5: 14 files, 134.4K, built in 17 seconds ==> Installing wine dependency: fontconfig ==> Downloading https://www.freedesktop.org/software/fontconfig/release/fontconf Already downloaded: /Users/td/Library/Caches/Homebrew/fontconfig-2.12.1.tar.bz2 ==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/3790b Already downloaded: /Users/td/Library/Caches/Homebrew/fontconfig--patch-e7c074109a367bf3966578034b20d11f7e0b4a611785a040aef1fd11359af04d.diff ==> Patching ==> Applying patch-2.12.1-fccache.diff patching file src/fccache.c ==> ./configure --disable-silent-rules --enable-static --with-add-fonts=/System/ ==> make install RUN_FC_CACHE_TEST=false ==> Regenerating font cache, this may take a while ==> /usr/local/Cellar/fontconfig/2.12.1_2/bin/fc-cache -frv 🍺 /usr/local/Cellar/fontconfig/2.12.1_2: 469 files, 3.8M, built in 2 minutes 16 seconds ==> Installing wine dependency: libtiff ==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/libtiff-4.0.7.tar.gz ==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4. Already downloaded: /Users/td/Library/Caches/Homebrew/libtiff--patch-f4183c48ed74b6c3c3a74ff1f10f0cf972d3dba0f840cf28b5a3f3846ceb2be6.tar.xz ==> Patching ==> Applying patches/01-CVE.patch patching file ChangeLog patching file libtiff/tif_read.c patching file libtiff/tiffiop.h ==> Applying patches/02-CVE.patch patching file ChangeLog patching file tools/tiffcp.c ==> Applying patches/03-CVE.patch patching file ChangeLog patching file libtiff/tif_luv.c patching file libtiff/tif_pixarlog.c ==> Applying patches/04-CVE.patch patching file ChangeLog patching file libtiff/tif_dirread.c patching file libtiff/tif_strip.c ==> Applying patches/05-CVE.patch patching file ChangeLog patching file libtiff/tif_ojpeg.c ==> Applying patches/06-CVE.patch patching file ChangeLog patching file tools/tiffcrop.c ==> Applying patches/07-CVE.patch patching file ChangeLog patching file tools/tiffcrop.c ==> Applying patches/08-CVE.patch patching file ChangeLog patching file tools/tiffcrop.c ==> Applying patches/09-CVE.patch patching file ChangeLog patching file tools/tiffinfo.c ==> Applying patches/10-CVE.patch patching file ChangeLog patching file tools/tiffcp.c ==> Applying patches/11-CVE.patch patching file ChangeLog patching file libtiff/tif_dir.c ==> Applying patches/12-CVE.patch patching file ChangeLog patching file tools/tiffcp.c ==> Applying patches/13-CVE.patch patching file ChangeLog patching file tools/tiffcp.c ==> Applying patches/14-CVE.patch patching file ChangeLog patching file tools/tiffcp.c ==> Applying patches/15-TIFFFaxTabEnt_bugfix.patch patching file ChangeLog patching file libtiff/tif_fax3.h ==> Applying patches/16-CVE-2016-10094.patch patching file ChangeLog patching file tools/tiff2pdf.c ==> Applying patches/17-CVE-2017-5225.patch patching file ChangeLog patching file tools/tiffcp.c ==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.7_2 --without-x --with-jp ==> make install 🍺 /usr/local/Cellar/libtiff/4.0.7_2: 248 files, 4.9M, built in 1 minute 13 seconds ==> Installing wine dependency: webp ==> Downloading https://homebrew.bintray.com/bottles/webp-0.6.0.sierra.bottle.ta Already downloaded: /Users/td/Library/Caches/Homebrew/webp-0.6.0.sierra.bottle.tar.gz ==> Pouring webp-0.6.0.sierra.bottle.tar.gz 🍺 /usr/local/Cellar/webp/0.6.0: 36 files, 2.0M ==> Installing wine dependency: gd ==> Downloading https://github.com/libgd/libgd/releases/download/gd-2.2.4/libgd- Already downloaded: /Users/td/Library/Caches/Homebrew/gd-2.2.4.tar.xz ==> Downloading https://github.com/libgd/libgd/commit/381e89de.patch Already downloaded: /Users/td/Library/Caches/Homebrew/gd--patch-5604fb87dfaabff0ae399bb6f6ed0fbe01dbb8a63db9cead85623c7bc63d4963.patch ==> Patching ==> Applying 381e89de.patch patching file src/gd_gd2.c ==> ./configure --prefix=/usr/local/Cellar/gd/2.2.4_1 --without-x --without-xpm ==> make install 🍺 /usr/local/Cellar/gd/2.2.4_1: 34 files, 2.0M, built in 41 seconds ==> Installing wine dependency: libgphoto2 ==> Downloading https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.1 Already downloaded: /Users/td/Library/Caches/Homebrew/libgphoto2-2.5.12.tar.bz2 ==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgphoto2/2.5 ==> make install 🍺 /usr/local/Cellar/libgphoto2/2.5.12: 169 files, 7.3M, built in 2 minutes 33 seconds ==> Installing wine dependency: little-cms2 ==> Downloading https://downloads.sourceforge.net/project/lcms/lcms/2.8/lcms2-2. Already downloaded: /Users/td/Library/Caches/Homebrew/little-cms2-2.8.tar.gz tar: copyfile unpack (lcms2-2.8/Projects/mac/.DS_Store) failed: File exists ==> ./configure --prefix=/usr/local/Cellar/little-cms2/2.8 ==> make install 🍺 /usr/local/Cellar/little-cms2/2.8: 18 files, 1.9M, built in 43 seconds ==> Installing wine dependency: cmake ==> Downloading https://homebrew.bintray.com/bottles/cmake-3.7.2.sierra.bottle.t Already downloaded: /Users/td/Library/Caches/Homebrew/cmake-3.7.2.sierra.bottle.tar.gz ==> Pouring cmake-3.7.2.sierra.bottle.tar.gz ==> Caveats Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/cmake ==> Summary 🍺 /usr/local/Cellar/cmake/3.7.2: 2,143 files, 29M ==> Installing wine dependency: jasper ==> Downloading https://github.com/mdadams/jasper/archive/version-2.0.10.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/jasper-2.0.10.tar.gz ==> cmake .. -DGLUT_glut_LIBRARY=/Applications/Xcode.app/Contents/Developer/Plat ==> make ==> make test ==> make install 🍺 /usr/local/Cellar/jasper/2.0.10: 39 files, 1.3M, built in 29 seconds ==> Installing wine dependency: libicns ==> Downloading https://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar Already downloaded: /Users/td/Library/Caches/Homebrew/libicns-0.8.1.tar.gz ==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1_3 ==> make install 🍺 /usr/local/Cellar/libicns/0.8.1_3: 19 files, 408.2K, built in 27 seconds ==> Installing wine dependency: makedepend ==> Downloading https://homebrew.bintray.com/bottles/makedepend-1.0.5.sierra.bot Already downloaded: /Users/td/Library/Caches/Homebrew/makedepend-1.0.5.sierra.bottle.1.tar.gz ==> Pouring makedepend-1.0.5.sierra.bottle.1.tar.gz 🍺 /usr/local/Cellar/makedepend/1.0.5: 7 files, 72.8K ==> Installing wine dependency: openssl ==> Downloading https://www.openssl.org/source/openssl-1.0.2k.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/openssl-1.0.2k.tar.gz ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make ==> make test ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make Last 15 lines from /Users/td/Library/Logs/Homebrew/openssl/09.make: fi [ -z "" ] || clang -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Iinclude \ -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \ fips_premain.c fipscanister.o \ libcrypto.a Undefined symbols for architecture i386: "_compilerrt_abort_impl", referenced from: ___eprintf in libclang_rt.eprintf.a(eprintf.c.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: [link_a.darwin] Error 1 make[3]: [do_darwin-shared] Error 2 make[2]: [libcrypto.1.0.0.dylib] Error 2 make[1]: [shared] Error 2 make: *** [build_crypto] Error 1

READ THIS: http://docs.brew.sh/Troubleshooting.html

These open issues may also help: openssl: Ignore PERL5LIB while we ignore PERL https://github.com/Homebrew/homebrew-core/pull/10141 OpenSSL@1.1 Migration [Tracking] https://github.com/Homebrew/homebrew-core/issues/4543 openssl & wine install failure mac os 10.12.4 https://github.com/Homebrew/homebrew-core/issues/9510 The description for openssl installation is misleading https://github.com/Homebrew/homebrew-core/issues/5291 t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

Have you set any environment variables regarding compilation like CC, CFLAGS, etc.?

ilovezfs commented 7 years ago

@DomT4 are you on 10.12.4 yet?

DomT4 commented 7 years ago

@ilovezfs Yup! Build 16E154a.

ilovezfs commented 7 years ago

@DomT4 hurray! Can I convince you to rule out whether this is 10.12.4 specific breakage?

DomT4 commented 7 years ago

Presumably you just want me to check a openssl --universal build actually builds?

JCount commented 7 years ago

Yes please!

DomT4 commented 7 years ago

No issue here:

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2k: 1,696 files, 17.3M, built in 9 minutes 47 seconds

~> brew config
HOMEBREW_VERSION: 1.1.10-38-g9f31d41fb
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 9f31d41fb263718bff98e194df411b8aaea72aba
Last commit: 4 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: db6cfef8b163475af6c8fb79caa050b4f59a4283
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.0.0-p648/bin/ruby
Clang: 8.0 build 800
Git: 2.11.1 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.0_1/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/var/rbenv/shims/ruby => /usr/local/var/rbenv/versions/2.4.0/bin/ruby
Java: 1.8.0_121
macOS: 10.12.4-x86_64
Xcode: 8.2.1
CLT: 8.2.0.0.1.1480973914
X11: 2.7.11 => /opt/X11

~>  clang --version
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
ilovezfs commented 7 years ago

@DomT4 perfect. Thanks for checking!

tdenley1 commented 7 years ago

Last login: Sun Feb 19 13:53:15 on ttys000 t-ds-iMac:~ tden$ brew install openssl --universal ==> Using the sandbox ==> Downloading https://www.openssl.org/source/openssl-1.0.2k.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/openssl-1.0.2k.tar.gz ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make ==> make test ==> make clean ==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2k --openssldir=/usr ==> make depend ==> make Last 15 lines from /Users/td/Library/Logs/Homebrew/openssl/09.make: fi [ -z "" ] || clang -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -DL_ENDIAN -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -Iinclude \ -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \ fips_premain.c fipscanister.o \ libcrypto.a Undefined symbols for architecture i386: "_compilerrt_abort_impl", referenced from: ___eprintf in libclang_rt.eprintf.a(eprintf.c.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: [link_a.darwin] Error 1 make[3]: [do_darwin-shared] Error 2 make[2]: [libcrypto.1.0.0.dylib] Error 2 make[1]: [shared] Error 2 make: *** [build_crypto] Error 1

READ THIS: http://docs.brew.sh/Troubleshooting.html

These open issues may also help: openssl: Ignore PERL5LIB while we ignore PERL https://github.com/Homebrew/homebrew-core/pull/10141 OpenSSL@1.1 Migration [Tracking] https://github.com/Homebrew/homebrew-core/issues/4543 openssl & wine install failure mac os 10.12.4 https://github.com/Homebrew/homebrew-core/issues/9510 The description for openssl installation is misleading https://github.com/Homebrew/homebrew-core/issues/5291 t-ds-iMac:~ tden$

DomT4 commented 7 years ago

@tdenley1 Are you still getting nothing from brew gist-logs openssl?

tdenley1 commented 7 years ago

just this: Last login: Sun Feb 19 17:30:42 on ttys000 t-ds-iMac:~ tden$ brew gist-logs openssl https://gist.github.com/f7095c500943796ccc7dd089ad0821aa

ilovezfs commented 7 years ago

@tdenley1 where is the -O3 coming from?

ilovezfs commented 7 years ago

@tdenley1 Please try again in a clean brew installation by doing the following:

mkdir ~/Documents/brew-20170221
sudo mv /usr/local ~/Documents/brew-20170221/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install --universal openssl
tdenley1 commented 7 years ago

Note: password entered when prompted.

Last login: Tue Feb 21 08:23:02 on ttys000 t-ds-iMac:~ tden$ mkdir ~/Documents/brew-20170221 mkdir: /Users/td/Documents/brew-20170221: File exists t-ds-iMac:~ tden$ sudo mv /usr/local ~/Documents/brew-20170221/ Password: Sorry, try again. Password: mv: /usr/local: No such file or directory t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

OK, so did you run install script, and then try brew install --universal openssl?

tdenley1 commented 7 years ago

I copy and pasted the entire command, mkdir... you recommended trying. I entered password when prompted, and received the output as shown. (marked text appeared only after posting this message). Do you see, "mv: /usr/local: No such file or directory"? Following above, I tried brew install --universal openssl command, receiving 'not recognized reply'.

ilovezfs commented 7 years ago

OK. what is the output of

ls -al /usr/local
tdenley1 commented 7 years ago

Last login: Tue Feb 21 08:48:08 on ttys000 t-ds-iMac:~ tden$ ls -al /usr/local ls: /usr/local: No such file or directory t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

@tdenley1 OK good. Now run:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
tdenley1 commented 7 years ago

What next?

Last login: Tue Feb 21 08:53:50 on ttys000 t-ds-iMac:~ tden$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following new directories will be created: /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/mkdir -p /usr/local Password: Sorry, try again. Password: ==> /usr/bin/sudo /usr/sbin/chown root:wheel /usr/local ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /usr/sbin/chown tden /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown tden /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Counting objects: 5104, done. remote: Compressing objects: 100% (3200/3200), done. remote: Total 5104 (delta 2811), reused 3360 (delta 1734), pack-reused 0 Receiving objects: 100% (5104/5104), 2.69 MiB | 658.00 KiB/s, done. Resolving deltas: 100% (2811/2811), done. From https://github.com/Homebrew/brew

==> Homebrew has enabled anonymous aggregate user behaviour analytics. Read the analytics documentation (and how to opt-out) here: https://git.io/brew-analytics

==> Next steps:

tdenley1 commented 7 years ago

I ran brew help and brew doctor.

Last login: Tue Feb 21 08:59:17 on ttys000 t-ds-iMac:~ tden$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks!

Warning: Your XQuartz (2.3.6) is outdated. Please install XQuartz 2.7.9 (or delete the current version). XQuartz can be updated using Homebrew-Cask by running brew cask reinstall xquartz t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

OK good. Now run

export HOMEBREW_MAKE_JOBS=1; brew install -dv --universal openssl
tdenley1 commented 7 years ago

Ran, first and last portions of terminal output shown below.

Last login: Tue Feb 21 08:59:55 on ttys000 t-ds-iMac:~ tden$ export HOMEBREW_MAKE_JOBS=1; brew install -dv --universal openssl Updating Homebrew... /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb /usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb ==> Installing dependencies for openssl: makedepend ==> Installing openssl dependency: makedepend ==> Downloading https://homebrew.bintray.com/bottles/makedepend-1.0.5.sierra.bottle.1.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/makedepend-1.0.5.sierra.bottle.1.tar.gz ==> Verifying makedepend-1.0.5.sierra.bottle.1.tar.gz checksum ==> Pouring makedepend-1.0.5.sierra.bottle.1.tar.gz tar xzf /Users/td/Library/Caches/Homebrew/makedepend-1.0.5.sierra.bottle.1.tar.gz ==> Finishing up ln -s ../Cellar/makedepend/1.0.5/bin/makedepend makedepend ln -s ../../../Cellar/makedepend/1.0.5/share/man/man1/makedepend.1 makedepend.1 ==> Summary 🍺 /usr/local/Cellar/makedepend/1.0.5: 7 files, 72.8K ==> Installing openssl --universal ==> Using the sandbox /usr/bin/sandbox-exec -f /tmp/homebrew20170221-3459-ov4mzi.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb --verbose --debug --universal /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb /usr/local/Homebrew/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb ==> Downloading https://www.openssl.org/source/openssl-1.0.2k.tar.gz Already downloaded: /Users/td/Library/Caches/Homebrew/openssl-1.0.2k.tar.gz ==> Verifying openssl-1.0.2k.tar.gz checksum tar xzf /Users/td/Library/Caches/Homebrew/openssl-1.0.2k.tar.gz ==> make clean

Undefined symbols for architecture i386: "_compilerrt_abort_impl", referenced from: ___eprintf in libclang_rt.eprintf.a(eprintf.c.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: [link_a.darwin] Error 1 make[3]: [do_darwin-shared] Error 2 make[2]: [libcrypto.1.0.0.dylib] Error 2 make[1]: [shared] Error 2 make: *** [build_crypto] Error 1 /usr/local/Homebrew/Library/Homebrew/debrew.rb:11:in `raise' BuildError: Failed executing: make

  1. raise
  2. ignore
  3. backtrace
  4. irb
  5. shell Choose an action:
tdenley1 commented 7 years ago

I can send you long middle portion of terminal output if you need it.

ilovezfs commented 7 years ago

I'm wondering if there's something wrong with your environment or your Xcode. Please try

sudo rm -rf /usr/local

and then repeat the above steps in a new user account.

tdenley1 commented 7 years ago

Note: password entered when prompted, result below. Which above steps in new user account?

Last login: Tue Feb 21 09:50:02 on ttys000 t-ds-iMac:~ tden$ sudo rm -rf /usr/local Password: t-ds-iMac:~ tden$

ilovezfs commented 7 years ago

Step 1

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2

export HOMEBREW_MAKE_JOBS=1

Step 3

brew install --universal openssl
ilovezfs commented 7 years ago

@tdenley1 any luck?

tdenley1 commented 7 years ago

Below is listed your recommended steps in new user account, no luck. Is it possible ssl or wine does not install on my system using home-brew? I have installed wine successfully previously using wine bottler, though some programs did not install, hence I seeked new install method. Any insights or alternative wine install methods? I may wish to forgo further command line in home-brew, particularly if outcome is unknown. Thanks in advance.

Last login: Fri Feb 24 12:52:54 on console t-ds-iMac:~ test$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following new directories will be created: /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/mkdir -p /usr/local Password: ==> /usr/bin/sudo /usr/sbin/chown root:wheel /usr/local ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions ==> /usr/bin/sudo /usr/sbin/chown test /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var ==> /usr/bin/sudo /bin/mkdir -p /Users/test/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Users/test/Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown test /Users/test/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown test /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Counting objects: 5182, done. remote: Compressing objects: 100% (3246/3246), done. remote: Total 5182 (delta 2843), reused 3427 (delta 1765), pack-reused 0 Receiving objects: 100% (5182/5182), 2.71 MiB | 654.00 KiB/s, done. Resolving deltas: 100% (2843/2843), done. From https://github.com/Homebrew/brew

==> Homebrew has enabled anonymous aggregate user behaviour analytics. Read the analytics documentation (and how to opt-out) here: http://docs.brew.sh/Analytics.html

==> Next steps:

READ THIS: http://docs.brew.sh/Troubleshooting.html

These open issues may also help: OpenSSL@1.1 Migration [Tracking] https://github.com/Homebrew/homebrew-core/issues/4543 openssl & wine install failure mac os 10.12.4 https://github.com/Homebrew/homebrew-core/issues/9510 The description for openssl installation is misleading https://github.com/Homebrew/homebrew-core/issues/5291 t-ds-iMac:~ test$

ilovezfs commented 7 years ago

Thanks for trying that. Please check whether openssl builds without the universal option:

brew install --build-from-source openssl
DomT4 commented 7 years ago

FWIW on my earlier verification this install does work on 10.12.4, OP is running without the CLT installed and I'm running with it installed. I don't really see how that could be the difference in this situation but 🤷‍♂️.

ilovezfs commented 7 years ago

@DomT4 my current theory is broken Xcode

JCount commented 7 years ago

@ilovezfs I would have to say my gut feeling is that it is an Xcode issue as well. The OP may need to be running the Xcode 8.3 beta 3 instead of Xcode 8.2.1. The release notes for the beta specifically mention that the Xcode 8.3 beta 3 includes SDKs for iOS 10.3, watchOS 3.2, macOS 10.12.4, and tvOS 10.2. However, the reasoning there is a bit tenuous, and it probably would be one of the last things to try.

ilovezfs commented 7 years ago

@tdenley1 does brew install --build-from-source openssl work?

tdenley1 commented 7 years ago

Following installation of Xcode 8.3 beta 3, wine installed, and the desired programs installed and functioned normally. Prior to new Xcode install, command, brew install --build-from-source openssl did not work. My next challenge is creating a dock icon using script editor. I tried following David Baumgold's instructions, though received syntax and path errors. DB's instructions: tell application "Terminal" do script "/usr/local/bin/wine ~/.wine/drive_c/Program\ Files/$PATH_TO_PROGRAM.exe" end tell. The path and windows program looks to be /Users/td/.wine/drive_c/Program Files (x86)/Steam/Steam.exe. I think I should replace '$PATH_TO_PROGRAM.exe', but I'm not sure with what. Can anyone provide instructions to open the program? Thanks for the assistance.

ilovezfs commented 7 years ago

@tdenley1 I'm glad to hear you got wine to install.

I guess you'd want

tell application "Terminal"
  do script "/usr/local/bin/wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe"
end tell
ilovezfs commented 7 years ago

Closing since the original issue is now resolved.