Opened 10 years ago
Closed 7 years ago
#47281 closed defect (worksforme)
grass @6.4.3_5: cc: No such file or directory
Reported by: | shay.strong@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | mojca (Mojca Miklavec) | |
Port: | grass |
Description
I have been trying to install Grass via macports on 10.10.2 and continue to get a failed installation. I have clean the port, upgraded macports, and done other recommended things mentioned here and via a google search. Attached is the log. Thanks.
Attachments (1)
Change History (7)
Changed 10 years ago by shay.strong@…
comment:2 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | mojca@… added |
---|---|
Port: | grass added; Grass removed |
Summary: | port grass failed to install on 10.10.2 → grass @6.4.3_5: does not use the right compiler |
The build tries to use “cc” in several places:
:info:build cc -dynamiclib -compatibility_version 6.4 -current_version 6.4 -install_name /opt/local/share/grass-6.4.3/lib/libgrass_datetime.6.4.3.dylib -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.3/dist.x86_64-apple-darwin14.1.0/lib/libgrass_datetime.6.4.3.dylib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.3/dist.x86_64-apple-darwin14.1.0/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -framework OpenGL -framework Accelerate -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -framework OpenGL -framework Accelerate -arch x86_64 OBJ.x86_64-apple-darwin14.1.0/between.o OBJ.x86_64-apple-darwin14.1.0/copy.o OBJ.x86_64-apple-darwin14.1.0/same.o OBJ.x86_64-apple-darwin14.1.0/diff.o OBJ.x86_64-apple-darwin14.1.0/error.o OBJ.x86_64-apple-darwin14.1.0/format.o OBJ.x86_64-apple-darwin14.1.0/incr1.o OBJ.x86_64-apple-darwin14.1.0/incr2.o OBJ.x86_64-apple-darwin14.1.0/incr3.o OBJ.x86_64-apple-darwin14.1.0/local.o OBJ.x86_64-apple-darwin14.1.0/misc.o OBJ.x86_64-apple-darwin14.1.0/change.o OBJ.x86_64-apple-darwin14.1.0/scan.o OBJ.x86_64-apple-darwin14.1.0/sign.o OBJ.x86_64-apple-darwin14.1.0/type.o OBJ.x86_64-apple-darwin14.1.0/tz1.o OBJ.x86_64-apple-darwin14.1.0/tz2.o OBJ.x86_64-apple-darwin14.1.0/values.o :info:build make[3]: cc: No such file or directory :info:build make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.3/dist.x86_64-apple-darwin14.1.0/lib/libgrass_datetime.6.4.3.dylib] Error 1
comment:3 follow-up: 4 Changed 10 years ago by mojca (Mojca Miklavec)
If the wrong compiler is the culprit, then this is a duplicate of #32797, but it would certainly help to provide some easy-to-reproduce recipe (like the one in this port: testing on 10.10). That old ticket doesn't make it easy to find the problematic places.
Anyway, it would probably make sense to first look into Grass 7.0 (#44056) before starting patching the outdated version.
comment:4 follow-up: 5 Changed 10 years ago by larryv (Lawrence Velázquez)
Replying to mojca@…:
it would certainly help to provide some easy-to-reproduce recipe
Not sure what you mean. If you’re looking for a way to easily detect this issue, try this: UsingTheRightCompiler#testing
Anyway, it would probably make sense to first look into Grass 7.0 (#44056) before starting patching the outdated version.
Agreed.
comment:5 Changed 10 years ago by mojca (Mojca Miklavec)
Replying to larryv@…:
Replying to mojca@…:
it would certainly help to provide some easy-to-reproduce recipe
Not sure what you mean. If you’re looking for a way to easily detect this issue, try this: UsingTheRightCompiler#testing
I didn't think of this. Thank you.
comment:6 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Summary: | grass @6.4.3_5: does not use the right compiler → grass @6.4.3_5: cc: No such file or directory |
There is clearly something abnormal happening on the user's system:
cc: No such file or directory
We agree it's a bug (#32797) that the port is trying to use cc
at all; it should be using /usr/bin/clang
. But cc
should exist and work, if Xcode and/or the command line tools are installed, and based on the fact that the log mentions clang version 600.0.56, the user has Xcode 6.1.1.
I just updated grass to 6.4.6 and it built fine on our buildbot workers, including Yosemite, so this is something specific to the user's system. If cc
really is missing on the user's system, they'll have to get it back, perhaps by reinstalling the command line tools, Xcode, or macOS.