Changes between Initial Version and Version 1 of Ticket #56436, comment 10
- Timestamp:
- Jun 24, 2020, 1:56:16 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #56436, comment 10
initial v1 1 `gcc7` failed for me initially because I was trying to build it with `clang-3.9` and it failed to link. The linking fails because `clang-3.9` doesn't add `-stdlib=libc++` as it does on newer compilers. (See Ken's explanation to me in ticket [https://trac.macports.org/ticket/55410]). I built `gcc7` with the default c compiler from `xcode 3.2.6` and it built. The other way to get around it is to rebuild `llvm-3.9` with his patches [https://github.com/kencu/SnowLeopardPorts/blob/master/lang/llvm-3.9/files/9999-patch-clang-3.9-Toolchains-default-always-libcxx.diff]. If tackle building `gcc7` with `clang-3.9` you'll need his setup [https://github.com/kencu/SnowLeopardPorts/tree/master/lang/llvm-3.9].1 `gcc7` failed for me initially because I was trying to build it with `clang-3.9` and it failed to link. The linking fails because `clang-3.9` doesn't add `-stdlib=libc++` as it does on newer compilers. (See Ken's explanation to me in ticket:55410). I built `gcc7` with the default c compiler from `xcode 3.2.6` and it built. The other way to get around it is to rebuild `llvm-3.9` with his patches [https://github.com/kencu/SnowLeopardPorts/blob/master/lang/llvm-3.9/files/9999-patch-clang-3.9-Toolchains-default-always-libcxx.diff]. If tackle building `gcc7` with `clang-3.9` you'll need his setup [https://github.com/kencu/SnowLeopardPorts/tree/master/lang/llvm-3.9].