I`m trying to install filosottile/musl-cross/musl-cross via brew and facing an error at this stage:
==> /opt/homebrew/opt/make/bin/gmake install TARGET=x86_64-linux-musl
Last 15 lines from /Users/galshalom/Library/Logs/Homebrew/musl-cross/01.gmake:
"_host_hooks", referenced from:
gt_pch_save(__sFILE*) in libbackend.a(ggc-common.o)
gt_pch_restore(__sFILE*) in libbackend.a(ggc-common.o)
toplev::main(int, char**) in libbackend.a(toplev.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [../../src_gcc/gcc/lto/Make-lang.in:81: lto1] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm gcc.pod
gmake[3]: Leaving directory '/private/tmp/musl-cross-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl/obj_gcc/gcc'
gmake[2]: *** [Makefile:4361: all-gcc] Error 2
gmake[2]: Leaving directory '/private/tmp/musl-cross-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl/obj_gcc'
gmake[1]: *** [Makefile:222: obj_gcc/gcc/.lc_built] Error 2
gmake[1]: Leaving directory '/private/tmp/musl-cross-20210510-41370-xpfsk6/musl-cross-make-0.9.9/build/local/x86_64-linux-musl'
gmake: *** [Makefile:183: install] Error 2
Cant find appropriate solution on web.
brew edit musl-cross
patch do # Apple Silicon build fix for gcc-10.3.0 and below
url "https://github.com/richfelker/musl-cross-make/commit/3dd050fa.patch?full_index=1"
sha256 "6ecb5d306b2307e058ec0538862bbddec9fcb7a1c4f9cae5c55d29fb39dc34d8"
end
brew reinstall musl-cross
Related
I'm trying to install hack on my mac using:
brew tap hhvm/hhvm
brew install hhvm
But there is an error:
==> Downloading https://dl.hhvm.com/source/hhvm-4.159.0.tar.gz
Already downloaded: /Users/yunchenliu/Library/Caches/Homebrew/downloads/9f3bb772946eb6414a33caaa1e22184c29cdd8c69efa1d5b5b68f7275ca1225f--hhvm-4.159.0.tar.gz
==> Installing hhvm-4.159 from hhvm/hhvm
==> cmake -DCMAKE_INSTALL_SYSCONFDIR=/opt/homebrew/etc -DDEFAULT_CONFIG_DIR=/opt/homebrew/etc/hhvm -DSYSTEM_PCRE_HAS_JIT=0 -DENABLE_MCROUTER=OFF -DENABLE_EXTENSION_MCROUTER=OFF -DENABLE_EXTENSION_IMAP=OFF -DMYSQL
==> make -j1 hack_rust_ffi_bridge_targets
Last 15 lines from /Users/yunchenliu/Library/Logs/Homebrew/hhvm-4.159/02.make:
"_sqlite3_backup_pagecount", referenced from:
rusqlite::backup::Backup::progress::h93278a90a6b51c36 in librusqlite-00a8c3b5c05ca5e6.rlib(rusqlite-00a8c3b5c05ca5e6.rusqlite.7f871c8f-cgu.12.rcgu.o)
"_sqlite3_backup_init", referenced from:
rusqlite::backup::Backup::new_with_names::h49fd44cb204e52d2 in librusqlite-00a8c3b5c05ca5e6.rlib(rusqlite-00a8c3b5c05ca5e6.rusqlite.7f871c8f-cgu.12.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `hack_macro` due to previous error
error: build failed
cp: /tmp/hhvm-4.159-20220429-21361-1x6cjav/hhvm-4.159.0/hphp/hack/_build/rust_ffi/hphp/hack/src/hackc/ffi_bridge/release/libcompiler_ffi.a: No such file or directory
make[3]: *** [hphp/hack/_build/rust_ffi/hphp/hack/src/hackc/ffi_bridge/compiler_ffi.cpp] Error 1
make[2]: *** [hphp/hack/CMakeFiles/compiler_cxx.dir/all] Error 2
make[1]: *** [hphp/hack/CMakeFiles/hack_rust_ffi_bridge_targets.dir/rule] Error 2
make: *** [hack_rust_ffi_bridge_targets] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/hhvm/homebrew-hhvm/issues
I didn't find the solution and could someone help me? Thanks so much.
Running mac osx 10.14.6 and have previously successfully built 3.0.10 and 3.0.11. Trying to build VLC 3.0.12 & 3.0.14 from source downloaded from here: http://www.videolan.org/vlc/download-sources.html
and using recommended build from here: https://wiki.videolan.org/MacOSCompile/ AND using the recommended:
../extras/package/macosx/build.sh -c
Build runs for about 20 minutes and then stops here (snip of output):
CCLD libprefetch_plugin.la
CCLD libhds_plugin.la
CCLD librecord_plugin.la
ld: library not found for -lzstd
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libarchive_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
mysystem:build xx$
What am I missing or doing wrong?
Note: in previous builds I could find a cmake/Utilities/cmzstd/lib directory in vlc-3.0.x/extras/tools that had various zstd files however it is not there in either 3.0.12 or 3.0.14 - only a cmake-enable-ALPN-support-on-macOS-109.14.patch file.
Where do I find zstd? Thanks.
Seems the issue is related to how macOS and packagers (homebrew, etc.) load components. macOS provides a compiled version of libarchive but no headers, so you are unable in trying to compile. You will either need to pass the location of your libarchive respository with headers via your build script or set an environment variable telling the compiler or linker where to look for them. Perhaps someone more familiar with your VLC package can weigh in.
When I tried to install Octave (brew install octave --with-gui --HEAD) on OS X 10.11.2 I got this error:
==> ./configure --prefix=/usr/local/Cellar/octave/HEAD --enable-dependency-tracking --enable-link-al
==> make all DOC_TARGETS=
Last 15 lines from /Users/macbookpro/Library/Logs/Homebrew/octave/03.make:
GEN scripts/plot/util/gnuplot_binary.m
GEN doc/interpreter/contributors.texi
GEN etc/icons/octave-logo-256.png
./build-aux/missing: line 81: rsvg-convert: command not found
WARNING: 'rsvg-convert' is missing on your system.
You might have modified some files without having the proper
tools for further handling them. Check the 'README' file, it
often tells you about the needed prerequisites for installing
this package. You may also peek at any GNU archive site, in
case some other package contains this missing 'rsvg-convert' program.
make[2]: *** [etc/icons/octave-logo-256.png] Error 127
make[2]: *** Waiting for unfinished jobs....
Updating ./doc/liboctave/version-liboctave.texi
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Just install this lib:
brew install librsvg
I am building F# from source on my mac (yosemite).
I followed these steps.
git clone https://github.com/mono/mono
cd mono
./autogen.sh --prefix=/mono64 --enable-nls=no
make
During make I get an error
cd /Users/abhishek.srivastava/mono/mcs && /Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='gcc' all-profiles
mkdir -p -- build/deps
make[6]: mcs: No such file or directory
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
*** The compiler 'mcs' doesn't appear to be usable.
*** You need Mono version 3.8 or better installed to build MCS
*** Check mono README for information on how to bootstrap a Mono installation.
/bin/sh: mcs: command not found
*** The version of 'mcs' is: .
make[5]: *** [do-profile-check] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
LBURMAC603TG8WM:mono (master *=)$
Do make get-monolite-latest after autogen.sh and before making the rest.
Alternatively, any recent binary mono release can be installed and used for bootstrapping.
Try to build firefox from source codes without some changes. Just downloaded the sources, unpacked and try. I run bootstrap.py and it install all need. After that i run "./mach build". Building run 66 mins, after that says:
66:27.53 NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
66:27.53 "_ures_getByIndex_52", referenced from:
66:27.53 icu_52::SimpleDateFormat::construct(icu_52::DateFormat::EStyle, icu_52::DateFormat::EStyle, icu_52::Locale const&, UErrorCode&) in libjs_static.a(smpdtfmt.o)
66:27.53 icu_52::DecimalFormatSymbols::initialize(icu_52::Locale const&, UErrorCode&, signed char) in libjs_static.a(dcfmtsym.o)
66:27.53 icu_52::openOlsonResource(icu_52::UnicodeString const&, UResourceBundle&, UErrorCode&) in libjs_static.a(timezone.o)
66:27.53 icu_52::TimeZone::dereferOlsonLink(icu_52::UnicodeString const&) in libjs_static.a(timezone.o)
66:27.53 _ucurr_forLocale_52 in libjs_static.a(ucurr.o)
66:27.53 _uprv_parseCurrency_52 in libjs_static.a(ucurr.o)
66:27.53 "_u_cleanup_52", referenced from:
66:27.53 JS_ShutDown() in libjs_static.a(jsapi.o)
66:27.53 ld: symbol(s) not found for architecture x86_64
66:27.53 clang: error: linker command failed with exit code 1 (use -v to see invocation)
66:27.53 gmake[5]: *** [jsapi-tests] Ошибка 1
66:27.53 gmake[4]: *** [js/src/jsapi-tests/target] Ошибка 2
66:27.53 gmake[3]: *** [compile] Ошибка 2
66:27.53 gmake[2]: *** [default] Ошибка 2
66:27.53 gmake[1]: *** [realbuild] Ошибка 2
66:27.53 gmake: *** [build] Ошибка 2
66:27.53 301 compiler warnings present.
66:27.61 /usr/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
I seen string "ld: symbol(s) not found for architecture x86_64" and go to build 32bit variant. Create .mozconfig:
CC="clang -arch i386"
CXX="clang++ -arch i386"
ac_add_options --target=i386-apple-darwin9.2.0
ac_add_options --enable-macos-target=10.5
HOST_CC="clang-4.2"
HOST_CXX="clang++-4.2"
RANLIB=ranlib
AR=ar
AS=$CC
LD=ld
STRIP="strip -x -S"
CROSS_COMPILE=1
And it build 33mins and show error:
33:13.84 clang: warning: unknown warning option '-Wno-tautological-constant-out-of-range-compare'; did you mean '-Wno-tautological-compare'?
33:13.86 warning: unknown warning option '-Wno-tautological-constant-out-of-range-compare'; did you mean '-Wno-tautological-compare'? [-Wunknown-warning-option]
33:13.86 1 warning generated.
33:13.93 1 warning generated.
33:14.08 1 warning generated.
33:14.29 1 warning generated.
33:14.30 libgfx_cairo_cairo_src.a.desc
33:14.38 gmake[3]: *** [compile] Ошибка 2
33:14.38 gmake[2]: *** [default] Ошибка 2
33:14.38 gmake[1]: *** [realbuild] Ошибка 2
33:14.38 gmake: *** [build] Ошибка 2
33:14.39 94 compiler warnings present.
33:14.42 /usr/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
Tell me please, what can help me for build FF?
P.S. If i try build last sources from git i this result too.
This is a bit of a strange answer, but I just started poking around in the firefox source and I notice this exact same build failure whenever I do a clobber build. If I proceed to ./mach build again without making any changes then the second build succeeds... shrug hope this helps