[MacPorts] #66206: clang-11-bootstrap links opportunistically against libxml2

MacPorts noreply at macports.org
Tue Nov 15 18:06:27 UTC 2022


#66206: clang-11-bootstrap links opportunistically against libxml2
---------------------------------+-----------------------
  Reporter:  cave-canem          |      Owner:  catap
      Type:  defect              |     Status:  closed
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.8.0
Resolution:  worksforme          |   Keywords:  Mavericks
      Port:  clang-11-bootstrap  |
---------------------------------+-----------------------

Comment (by cave-canem):

 Hello Ken,

 {{{
 cat ./hello.c
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>

 int main()
 {
     const char * const msg = "Hello World!\n";
     const char * begin = msg;
     const char * const end = begin + strlen(msg);

     while (begin < end)
     {
         size_t remaining = end - begin;
         ssize_t res = write(STDOUT_FILENO, begin, remaining);
         if (res >= 0)
         {
             begin += res;
             continue; // Let's send the remaining part of this message
         }
         if (EINTR == errno)
         {
             continue; // It's just a signal, try again
         }
         return 1; // It's a real error
     }
     return 0; // OK! Let's celebrate and drink some beer!
 }
 }}}


 {{{
 otool -L /opt/MacPorts/libexec/clang-11-bootstrap/bin/clang
 /opt/MacPorts/libexec/clang-11-bootstrap/bin/clang:
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1197.1.1)
 }}}


 {{{
 /opt/MacPorts/libexec/clang-11-bootstrap/bin/clang -v ./hello.c -o ./hello
 clang version 11.1.0
 Target: x86_64-apple-darwin13.4.0
 Thread model: posix
 InstalledDir: /opt/MacPorts/libexec/clang-11-bootstrap/bin
  "/opt/MacPorts/libexec/clang-11-bootstrap/bin/clang-11" -cc1 -triple
 x86_64-apple-macosx10.9.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix
 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj
 -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names
 -main-file-name hello.c -mrelocation-model pic -pic-level 2 -mframe-
 pointer=all -fno-rounding-math -munwind-tables -faligned-alloc-unavailable
 -fcompatibility-qualified-id-block-type-checking -target-cpu core2
 -debugger-tuning=lldb -target-linker-version 450.3 -v -resource-dir
 /opt/MacPorts/libexec/clang-11-bootstrap/lib/clang/11.1.0 -internal-
 isystem /usr/local/include -internal-isystem
 /opt/MacPorts/libexec/clang-11-bootstrap/lib/clang/11.1.0/include
 -internal-externc-isystem /usr/include -fdebug-compilation-dir
 /Volumes/WORK/WORK -ferror-limit 19 -stack-protector 1 -fblocks -fencode-
 extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-
 version=4.2.1 -fmax-type-align=16 -fcolor-diagnostics -o
 /var/folders/j2/whh7d9lj5mvfvtn9yc3dsxt00000gn/T/hello-d9d3ea.o -x c
 ./hello.c
 clang -cc1 version 11.1.0 based upon LLVM 11.1.0 default target x86_64
 -apple-darwin13.4.0
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/local/include
  /opt/MacPorts/libexec/clang-11-bootstrap/lib/clang/11.1.0/include
  /usr/include
  /System/Library/Frameworks (framework directory)
  /Library/Frameworks (framework directory)
 End of search list.
  "/opt/MacPorts/bin/ld" -demangle -lto_library
 /opt/MacPorts/libexec/clang-11-bootstrap/lib/libLTO.dylib -no_deduplicate
 -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o ./hello
 /var/folders/j2/whh7d9lj5mvfvtn9yc3dsxt00000gn/T/hello-d9d3ea.o -lSystem
 /opt/MacPorts/libexec/clang-11-bootstrap/lib/clang/11.1.0/lib/darwin/libclang_rt.osx.a
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66206#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list