Opened 5 years ago
Closed 5 years ago
#60060 closed defect (fixed)
gdal @3.0.3: patch fails to apply
Reported by: | kencu (Ken) | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | legacy | Cc: | |
Port: | gdal |
Change History (10)
comment:1 Changed 5 years ago by kencu (Ken)
comment:2 Changed 5 years ago by fvaccari
Following Ken's suggestion I removed the patch from the Portfile. Configuration and compilation were ok, but the linking failed with this error
Undefined symbols for architecture x86_64: "___cxa_thread_atexit", referenced from: ___cxx_global_var_init.2 in ogr_proj_p.o ___cxx_global_var_init in gdaldataset.o ___cxx_global_var_init in cpl_vsil_curl.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [libgdal.la] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.0.3/gdal' make: *** [check-lib] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.0.3/gdal' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-3.0.3/gdal" && /usr/bin/make -j2 -w Exit code: 2 Error: Failed to build gdal: command execution failed
This is on 10.6.8 on a brand new MacPorts installation, 2.6.2 selfupdated.
What is missing here? I guess I should open a separate ticket on this...
comment:3 Changed 5 years ago by kencu (Ken)
no, there aleady is a ticket for this issue.
Bootstrapping libcxx on 10.6.8 is unfortunately a 2 step process, and we have not as yet found a way to automate step two. I have an idea, though.
For now, once you have any version of clang >= 5.0 installed, do this (only required once):
sudo port -v -n upgrade --enforce-variants libcxx +emulated_tls
that should go smoothly, and then try gdal again. I can confirm that gdal then builds, but as I haven't yet tried 10.7, I won't PR it.
comment:5 Changed 5 years ago by fvaccari
Eh... I wanted to test this on 10.7.5, removed the very old MacPorts installation there, installed 2.6.2, removed Xcode 4.4 and installed 4.6.3, but can't get anywhere with gdal due to failed installation of cctools...
comment:6 Changed 5 years ago by kencu (Ken)
I just rebuilt and installed the current cctools on 10.7.5 without any troubles. If you're having an issue it should be fixable (although not really for this ticket).
comment:7 Changed 5 years ago by fvaccari
Ok, I've posted to the user list the summary of what I did, and the cctools log. Then I've found that
sudo port install cctools +xcode
installs properly, but then failed the installation of pcre so still unable to test gdal
comment:8 Changed 5 years ago by fvaccari
Ok, after updating Xcode to 4.6.3 and installing the latest Command Line Tools for Lion I can finally confirm that I could build gdal on my 10.7.5 system, with the patch removed
comment:10 Changed 5 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I tried just deleting the patch, and on this 10.6.8 system, it built through without any other issues. I guess the patch is not needed any longer, although I did not try 10.7 or 10.8.