Opened 9 years ago

Closed 6 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)

main.log (3.0 MB) - added by shay.strong@… 9 years ago.

Change History (7)

comment:1 Changed 9 years ago by shay.strong@…

Error: org.macports.build for port grass returned: command execution failed
Please see the log file for port grass for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port grass failed
Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 9 years ago by shay.strong@…

Attachment: main.log added

comment:2 Changed 9 years ago by larryv (Lawrence Velázquez)

Cc: mojca@… added
Port: grass added; Grass removed
Summary: port grass failed to install on 10.10.2grass @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 Changed 9 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 in reply to:  3 ; Changed 9 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 in reply to:  4 Changed 9 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 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed
Summary: grass @6.4.3_5: does not use the right compilergrass @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.

Note: See TracTickets for help on using tickets.