Giter VIP home page Giter VIP logo

homebrew-zld's People

Contributors

michaeleisel avatar trzeciak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homebrew-zld's Issues

Does not like Xcode CLI build tools when installing

xcodebuild -project ld/zld.xcodeproj -scheme zld -derivedDataPath build -configuration Release build ONLY_ACTIVE_ARCH=YES
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Problem when installing with homebrew

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
make: *** [build_homebrew

macOS Monterrey 12.0.1, XCode 13.1 with latest command line tools... Somehow, it does not detect the full XCode installation :|

Installation Failures

I keep getting http errors when trying to install. I'm on an M1 mac.

brew install michaeleisel/zld/zld


==> Downloading https://github.com/michaeleisel/zld/archive/refs/heads/homebrew-fixes-1.3.3.zip
Already downloaded: /Users/voxelot/Library/Caches/Homebrew/downloads/fe560f9185d8fdf96707287aa78ff219507f3143158e1c208848dc1f86503952--zld-homebrew-fixes-1.3.3.zip
==> Installing zld from michaeleisel/zld
==> make clean
==> make build_homebrew
Last 15 lines from /Users/voxelot/Library/Logs/Homebrew/zld/02.make:
missing header for unified diff at line 15 of patch
patching file include/mach-o/dyld_priv.h
Hunk #1 succeeded at 120 (offset -60 lines).
############################################################################################################################################################################################# 100.0%
##########################################6.1%##########################                                                                                                                           3############################################                                                                                                                                                   23.6%################################################                                                                                                                                               25.5%curl: (92) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

cfe-8.0.1.src/include/clang-c/Index.h: Lzma library error:  No progress is possible
tar: Error exit delayed from previous errors.
make: *** [cfe-8.0.1.src] Error 1
make: *** Waiting for unfinished jobs....
##################################################                                                                                                                                             26.9%curl: (92) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

llvm-8.0.1.src/lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp: Lzma library error:  No progress is possible
tar: Error exit delayed from previous errors.
make: *** [llvm-8.0.1.src] Error 1

MacOS HomeBrew issue

misc/checks.rb
/opt/homebrew/opt/cmake/bin/cmake
xcodebuild -project ld/zld.xcodeproj -scheme zld -derivedDataPath build -configuration Release build ONLY_ACTIVE_ARCH=YES
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
make: *** [build_homebrew] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/michaeleisel/homebrew-zld/issues

Cannot build as "'pstl/execution' file not found"

brew install michaeleisel/zld/zld 
==> Installing zld from michaeleisel/zld
==> Downloading https://github.com/michaeleisel/zld/archive/refs/heads/homebrew-fixes-1.3.3.zip
Already downloaded: /Users/xxxxxx/Library/Caches/Homebrew/downloads/fe560f9185d8fdf96707287aa78ff219507f3143158e1c208848dc1f86503952--zld-homebrew-fixes-1.3.3.zip
==> make clean
==> make build_homebrew
Last 15 lines from /Users/xxxxxx/Library/Logs/Homebrew/zld/02.make:
CompileC /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/Objects-normal/x86_64/order.o /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/ld/src/ld/passes/order.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0 (in target 'zld' from project 'zld')
    cd /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/ld
    export LANG\=en_US.US-ASCII
    clang -x c++ -target x86_64-apple-macos10.14 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=c++1z -stdlib\=libc++ -Wno-trigraphs -fpascal-strings -O3 -fno-common -mdynamic-no-pic -Wno-missing-field-initializers -Wmissing-prototypes -Wunreachable-code -Wno-non-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wno-uninitialized -Wunknown-pragmas -Wno-shadow -Wfour-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DLD_VERS\=\"ld64-\" -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-invalid-offsetof -g -msse4.2 -Wno-sign-conversion -Winfinite-recursion -Wmove -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -iquote /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/zld-generated-files.hmap -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/zld-own-target-headers.hmap -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/zld-all-target-headers.hmap -iquote /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/zld-project-headers.hmap -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Products/Release/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/tapi-1100.0.11/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/dyld-733.6/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/llvm-8.0.1.src/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/cfe-8.0.1.src/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/abseil-cpp-20200225 -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/pstl/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/pstl/stdlib -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/tbb/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/corecrypto/include -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/DerivedSources-normal/x86_64 -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/DerivedSources/x86_64 -I/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/DerivedSources -Wall -F/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Products/Release -Wno-deprecated-declarations -Wno-unknown-pragmas -MMD -MT dependencies -MF /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/Objects-normal/x86_64/order.d --serialize-diagnostics /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/Objects-normal/x86_64/order.dia -c /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/ld/src/ld/passes/order.cpp -o /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/Objects-normal/x86_64/order.o
/tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/ld/src/ld/passes/order.cpp:32:10: fatal error: 'pstl/execution' file not found
#include "pstl/execution"
         ^~~~~~~~~~~~~~~~

** BUILD FAILED **


The following build commands failed:
	CompileC /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/build/Build/Intermediates.noindex/zld.build/Release/zld.build/Objects-normal/x86_64/thread_starts.o /tmp/zld-20220107-10468-l8o3ou/zld-homebrew-fixes-1.3.3/ld/src/ld/passes/thread_starts.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0
(1 failure)
make: *** [build_homebrew] Error 65

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/michaeleisel/homebrew-zld/issues
sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.7
BuildVersion:	19H15

xcodebuild -version
Xcode 12.2
Build version 12B45b

Failure upgrading 1.2.1 to 1.3.0 on 11.3.1 x86_64

$ brew upgrade
==> Upgrading 1 outdated package:
michaeleisel/zld/zld 1.2.1 -> 1.3.0
==> Upgrading michaeleisel/zld/zld 1.2.1 -> 1.3.0
==> Downloading https://github.com/michaeleisel/zld/archive/1.3.0.zip
Already downloaded: /Users/dmilith/Library/Caches/Homebrew/downloads/7d10518b5c61a024920ba10c6e7b7945d7bd49dbbcc3ce1159966b0d29eaf82e--zld-1.3.0.zip
==> make clean
==> make build
Last 15 lines from /Users/dmilith/Library/Logs/Homebrew/zld/02.make:
[100%] Built target flags_parse
find abseil-cpp-20200225/build_arm64/absl -name '*.a' | xargs libtool -static -o abseil-cpp-20200225/build/libabsl_arm64.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (escaping.cc.o) in output file used for input files: abseil-cpp-20200225/build_arm64/absl/strings/libabsl_strings.a(escaping.cc.o) and: abseil-cpp-20200225/build_arm64/absl/strings/libabsl_strings_internal.a(escaping.cc.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (flag.cc.o) in output file used for input files: abseil-cpp-20200225/build_arm64/absl/flags/libabsl_flags_internal.a(flag.cc.o) and: abseil-cpp-20200225/build_arm64/absl/flags/libabsl_flags.a(flag.cc.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning same member name (usage.cc.o) in output file used for input files: abseil-cpp-20200225/build_arm64/absl/flags/libabsl_flags_usage.a(usage.cc.o) and: abseil-cpp-20200225/build_arm64/absl/flags/libabsl_flags_usage_internal.a(usage.cc.o) due to use of basename, truncation and blank padding
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/strings/libabsl_strings.a(string_view.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/types/libabsl_bad_optional_access.a(bad_optional_access.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/types/libabsl_bad_any_cast_impl.a(bad_any_cast.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/types/libabsl_bad_variant_access.a(bad_variant_access.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/flags/libabsl_flags.a(flag.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/debugging/libabsl_debugging_internal.a(elf_mem_image.cc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: abseil-cpp-20200225/build_arm64/absl/debugging/libabsl_debugging_internal.a(vdso_support.cc.o) has no symbols
lipo -create abseil-cpp-20200225/build/libabsl_x86_64.a abseil-cpp-20200225/build/libabsl_arm64.a -output abseil-cpp-20200225/build/libabsl.a
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: abseil-cpp-20200225/build/libabsl_x86_64.a and abseil-cpp-20200225/build/libabsl_arm64.a have the same architectures (x86_64) and can't be in the same fat output file
make: *** [abseil-cpp-20200225] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/michaeleisel/homebrew-zld/issues

Installing the zld on M1 Mac fails

Here is the command and the output:

โžœ  ~ brew reinstall zld
==> Fetching michaeleisel/zld/zld
==> Downloading https://github.com/michaeleisel/zld/archive/refs/tags/1.3.9.zip
Already downloaded: /Users/cemeliguzel/Library/Caches/Homebrew/downloads/fe17ea222d6c1c843c98b5b3059964de10febdcbb73719c2823811bb663e4b19--zld-1.3.9.zip
==> Reinstalling michaeleisel/zld/zld
==> make clean
==> make build_homebrew
Last 15 lines from /Users/cemeliguzel/Library/Logs/Homebrew/zld/02.make:
note: Target dependency graph (1 target)
    Target 'zld' in project 'zld' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription
Build description signature: eec0d077b7e077945e4939f7d67e42d4
Build description path: /tmp/zld-20240131-70552-wc4yoe/zld-1.3.9/build/Build/Intermediates.noindex/XCBuildData/eec0d077b7e077945e4939f7d67e42d4.xcbuilddata

error: DT_TOOLCHAIN_DIR cannot be used to evaluate TAPI_HEADER_SEARCH_PATHS, use TOOLCHAIN_DIR instead (in target 'zld' from project 'zld')
error: DT_TOOLCHAIN_DIR cannot be used to evaluate HEADER_SEARCH_PATHS, use TOOLCHAIN_DIR instead (in target 'zld' from project 'zld')
warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'zld' from project 'zld')
** BUILD FAILED **

make: *** [build_homebrew] Error 65

I performed the Mac system update as well as brew upgrade before the installation.

tar error on install

Sorry if the issue is upstream, I'm not very familiar with brew or zld as I do not actually own a mac.

I've been installing zld in the CI for my project successfully as recently as 9 days ago. For CI, I'm using github actions with the runner macOS-latest. But now I'm running into this issue on installation: https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226

Copied log:

Run brew install michaeleisel/zld/zld
==> Tapping michaeleisel/zld
Cloning into '/usr/local/Homebrew/Library/Taps/michaeleisel/homebrew-zld'...
Tapped 1 formula (13 files, 3.3MB).
==> Downloading https://github.com/michaeleisel/zld/archive/54f29464a6e6926f[7](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:8)535f3a990c6aca3dfc4f513.zip
==> Downloading from https://codeload.github.com/michaeleisel/zld/zip/54f29464a6e6926f7535f3a990c6aca3dfc4f513
==> Installing zld from michaeleisel/zld
==> make clean
==> make build_homebrew
Last 15 lines from /Users/runner/Library/Logs/Homebrew/zld/02.make:
git clone --depth=1 https://github.com/apple-oss-distributions/dyld.git dyld-940
curl -# -L https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-13.0.1.src.tar.xz | tar xJ
mkdir -p tapi-1100.0.11
curl -# -L https://opensource.apple.com/tarballs/tapi/tapi-1100.0.11.tar.gz | tar xz -C tapi-1100.0.11 --strip-components=1
Cloning into 'dyld-940'...
#=#=#                                                                          
#=#=#                                                                          
##O#- #                                                                        

####################                                                       2[8](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:9).3%
######################################################################### 100.0%
tar: Error opening archive: Unrecognized archive format
make: *** [tapi-1100.0.11] Error 1
make: *** Waiting for unfinished jobs....
##O=#  #                                                                       

                                                                            0.4%
##                                                                          2.8%
####                                                                        5.5%
######                                                                      8.4%Updating files:  73% (12[9](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:10)3/1748)
Updating files:  74% (1294/1748)
Updating files:  75% (1311/1748)
Updating files:  76% (1329/1748)
Updating files:  77% (1346/1748)
Updating files:  78% (1364/1748)
Updating files:  79% (1381/1748)
Updating files:  80% (1399/1748)
Updating files:  81% (1416/1748)
Updating files:  82% (1434/1748)
Updating files:  83% (1451/1748)
Updating files:  84% (1469/1748)
Updating files:  85% (1486/1748)
Updating files:  86% (1504/1748)
Updating files:  87% (1521/1748)
Updating files:  88% (1539/1748)
Updating files:  89% (1556/1748)
Updating files:  90% (1574/1748)
Updating files:  91% (1591/1748)
Updating files:  92% (1609/1748)
Updating files:  93% (1626/1748)
Updating files:  94% (1644/1748)
Updating files:  95% (1661/1748)
Updating files:  96% (1679/1748)
Updating files:  97% (1696/1748)
Updating files:  98% (1714/1748)
Updating files:  99% (1731/1748)
Updating files: [10](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:11)0% (1748/1748)
Updating files: 100% (1748/1748), done.
patch -p1 -d dyld-940 < patches/dyld.patch
patching file include/mach-o/dyld.h
patching file include/mach-o/dyld_priv.h
Hunk #1 succeeded at 177 (offset 51 lines).

#######                                                                    10.7%
#########                                                                  [13](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:14).6%
############                                                               [16](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:17).5%
##############                                                             [19](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:20).4%
################                                                           [22](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:23).3%
##################                                                         [25](https://github.com/Trouv/willos-graveyard/actions/runs/3399118714/jobs/5656957226#step:6:26).2%
####################                                                       28.2%
######################                                                     31.1%
########################                                                   34.0%
##########################                                                 36.9%
#############################                                              39.9%
###############################                                            42.8%
#################################                                          45.7%
###################################                                        48.6%
#####################################                                      51.5%
#######################################                                    54.4%
#########################################                                  57.4%
############################################                               60.3%
##############################################                             63.2%
################################################                           66.2%
##################################################                         69.1%
####################################################                       72.0%
######################################################                     74.9%
########################################################                   77.8%
###########################################################                80.8%
#############################################################              83.7%
###############################################################            86.7%
#################################################################          89.6%
###################################################################        92.5%
#####################################################################      95.5%
#######################################################################    98.4%
######################################################################### 100.0%

Do not report this issue to Homebrew/brew or Homebrew/core!

Error: Process completed with exit code 1.

Dependency on full xcode install

It would be great if this could be installed with the xcode cli build tools, rather than requiring a full install of the app. Is this something that could be done?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.