Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#38054 closed defect (fixed)

grass fails to install

Reported by: basmac Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: manuel.deljesuspe@…, cooljeanius (Eric Gallager)
Port: grass

Description (last modified by ryandesign (Ryan Carsten Schmidt))

MacOs 10.8.2, XCode 4.5, MP 2.1.3

--->  Fetching archive for grass
--->  Attempting to fetch grass-6.4.2_3.darwin_12.x86_64.tbz2 from http://packages.macports.org/grass
--->  Attempting to fetch grass-6.4.2_3.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/grass
--->  Attempting to fetch grass-6.4.2_3.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/grass
--->  Fetching distfiles for grass
--->  Verifying checksum(s) for grass
--->  Extracting grass
--->  Applying patches to grass
--->  Configuring grass
--->  Building grass
Error: org.macports.build for port grass returned: command execution failed

Log file attached

Attachments (2)

grass (1.9 MB) - added by basmac 11 years ago.
debug file
grass.2 (5.8 MB) - added by basmac 11 years ago.

Change History (7)

Changed 11 years ago by basmac

Attachment: grass added

debug file

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: grass removed

Hmm, the log seems to be filled with a zillion errors starting with:

Status: Preprocessing /tmp/tmpsoOT1L.h
Status: /usr/bin/llvm-gcc-4.2 -E -I/opt/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include -U __BLOCKS__ -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" "-D__uint16_t=uint16_t" "-D__uint32_t=uint32_t" "-D__uint64_t=uint64_t" /tmp/tmpsoOT1L.h
Error: /usr/bin/llvm-gcc-4.2 -E -I/opt/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include: In file included from /usr/include/stdio.h:64,
Error: /usr/bin/llvm-gcc-4.2 -E -I/opt/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include:                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include/grass/gis.h:24,
Error: /usr/bin/llvm-gcc-4.2 -E -I/opt/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include:                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include/grass/stats.h:5,
Error: /usr/bin/llvm-gcc-4.2 -E -I/opt/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include:                  from /tmp/tmpsoOT1L.h:1:
Error: /usr/bin/llvm-gcc-4.2 -E -I/opt/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass/grass/work/grass-6.4.2/dist.i386-apple-darwin12.2.0/include: /usr/include/sys/cdefs.h:81:2: warning: #warning "Unsupported compiler detected"

Curious that it says llvm-gcc-4.2 is not a supported compiler; we previously switched the port from clang to llvm-gcc-4.2; see #32790.

Can you try updating to Xcode 4.6? Also ensure the Xcode command line tools are up to date (open Xcode, go to Preferences > Downloads and install or update the command line tools from there).

Note that even once you get past this error, grass still won't build with tcl / tk 8.6; see #37578.

Changed 11 years ago by basmac

Attachment: grass.2 added

comment:2 Changed 11 years ago by basmac

Upgrade to XCode 4.6 with CL Tools. Log file attached.

comment:3 Changed 11 years ago by manuel.deljesuspe@…

Cc: manuel.deljesuspe@… added

Cc Me!

comment:4 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: newclosed

Fixed in r106731. Also, duplicate of #37578.

comment:5 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.