Opened 6 years ago

Closed 4 years ago

#57734 closed defect (fixed)

grass7 @7.4.3 is not using the right compiler

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Veence (Vincent)
Port: grass7

Description

grass7 is not using the right compiler:

cc -dynamiclib -compatibility_version 7.4 -current_version 7.4 -install_name /opt/local/share/grass-7.4.3/lib/libgrass_gis.7.4.3.dylib -o /opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_gis_grass7/grass7/work/grass-7.4.3/dist.x86_64-apple-darwin17.7.0/lib/libgrass_gis.7.4.3.dylib -L/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_gis_grass7/grass7/work/grass-7.4.3/dist.x86_64-apple-darwin17.7.0/lib -L/opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_gis_grass7/grass7/work/grass-7.4.3/dist.x86_64-apple-darwin17.7.0/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -framework OpenCL -arch x86_64 OBJ.x86_64-apple-darwin17.7.0/adj_cellhd.o OBJ.x86_64-apple-darwin17.7.0/alloc.o OBJ.x86_64-apple-darwin17.7.0/area.o OBJ.x86_64-apple-darwin17.7.0/area_ellipse.o OBJ.x86_64-apple-darwin17.7.0/area_poly1.o OBJ.x86_64-apple-darwin17.7.0/area_poly2.o OBJ.x86_64-apple-darwin17.7.0/area_sphere.o OBJ.x86_64-apple-darwin17.7.0/ascii_chk.o OBJ.x86_64-apple-darwin17.7.0/asprintf.o OBJ.x86_64-apple-darwin17.7.0/basename.o OBJ.x86_64-apple-darwin17.7.0/bres_line.o OBJ.x86_64-apple-darwin17.7.0/clicker.o OBJ.x86_64-apple-darwin17.7.0/cmprbzip.o OBJ.x86_64-apple-darwin17.7.0/cmprlz4.o OBJ.x86_64-apple-darwin17.7.0/cmprrle.o OBJ.x86_64-apple-darwin17.7.0/cmprzlib.o OBJ.x86_64-apple-darwin17.7.0/color_rules.o OBJ.x86_64-apple-darwin17.7.0/color_str.o OBJ.x86_64-apple-darwin17.7.0/commas.o OBJ.x86_64-apple-darwin17.7.0/compress.o OBJ.x86_64-apple-darwin17.7.0/copy_dir.o OBJ.x86_64-apple-darwin17.7.0/copy_file.o OBJ.x86_64-apple-darwin17.7.0/counter.o OBJ.x86_64-apple-darwin17.7.0/date.o OBJ.x86_64-apple-darwin17.7.0/datum.o OBJ.x86_64-apple-darwin17.7.0/debug.o OBJ.x86_64-apple-darwin17.7.0/distance.o OBJ.x86_64-apple-darwin17.7.0/done_msg.o OBJ.x86_64-apple-darwin17.7.0/endian.o OBJ.x86_64-apple-darwin17.7.0/env.o OBJ.x86_64-apple-darwin17.7.0/error.o OBJ.x86_64-apple-darwin17.7.0/file_name.o OBJ.x86_64-apple-darwin17.7.0/find_etc.o OBJ.x86_64-apple-darwin17.7.0/find_file.o OBJ.x86_64-apple-darwin17.7.0/find_rast.o OBJ.x86_64-apple-darwin17.7.0/find_rast3d.o OBJ.x86_64-apple-darwin17.7.0/find_vect.o OBJ.x86_64-apple-darwin17.7.0/geodesic.o OBJ.x86_64-apple-darwin17.7.0/geodist.o OBJ.x86_64-apple-darwin17.7.0/get_ellipse.o OBJ.x86_64-apple-darwin17.7.0/get_projinfo.o OBJ.x86_64-apple-darwin17.7.0/get_window.o OBJ.x86_64-apple-darwin17.7.0/getl.o OBJ.x86_64-apple-darwin17.7.0/gisbase.o OBJ.x86_64-apple-darwin17.7.0/gisdbase.o OBJ.x86_64-apple-darwin17.7.0/gisinit.o OBJ.x86_64-apple-darwin17.7.0/handler.o OBJ.x86_64-apple-darwin17.7.0/home.o OBJ.x86_64-apple-darwin17.7.0/ilist.o OBJ.x86_64-apple-darwin17.7.0/intersect.o OBJ.x86_64-apple-darwin17.7.0/is.o OBJ.x86_64-apple-darwin17.7.0/key_value1.o OBJ.x86_64-apple-darwin17.7.0/key_value2.o OBJ.x86_64-apple-darwin17.7.0/key_value3.o OBJ.x86_64-apple-darwin17.7.0/key_value4.o OBJ.x86_64-apple-darwin17.7.0/legal_name.o OBJ.x86_64-apple-darwin17.7.0/line_dist.o OBJ.x86_64-apple-darwin17.7.0/list.o OBJ.x86_64-apple-darwin17.7.0/ll_format.o OBJ.x86_64-apple-darwin17.7.0/ll_scan.o OBJ.x86_64-apple-darwin17.7.0/locale.o OBJ.x86_64-apple-darwin17.7.0/location.o OBJ.x86_64-apple-darwin17.7.0/lrand48.o OBJ.x86_64-apple-darwin17.7.0/ls.o OBJ.x86_64-apple-darwin17.7.0/ls_filter.o OBJ.x86_64-apple-darwin17.7.0/lz4.o OBJ.x86_64-apple-darwin17.7.0/mach_name.o OBJ.x86_64-apple-darwin17.7.0/make_loc.o OBJ.x86_64-apple-darwin17.7.0/make_mapset.o OBJ.x86_64-apple-darwin17.7.0/mapcase.o OBJ.x86_64-apple-darwin17.7.0/mapset.o OBJ.x86_64-apple-darwin17.7.0/mapset_msc.o OBJ.x86_64-apple-darwin17.7.0/mapset_nme.o OBJ.x86_64-apple-darwin17.7.0/mkstemp.o OBJ.x86_64-apple-darwin17.7.0/myname.o OBJ.x86_64-apple-darwin17.7.0/named_colr.o OBJ.x86_64-apple-darwin17.7.0/nl_to_spaces.o OBJ.x86_64-apple-darwin17.7.0/nme_in_mps.o OBJ.x86_64-apple-darwin17.7.0/open.o OBJ.x86_64-apple-darwin17.7.0/open_misc.o OBJ.x86_64-apple-darwin17.7.0/overwrite.o OBJ.x86_64-apple-darwin17.7.0/pager.o OBJ.x86_64-apple-darwin17.7.0/parser.o OBJ.x86_64-apple-darwin17.7.0/parser_dependencies.o OBJ.x86_64-apple-darwin17.7.0/parser_help.o OBJ.x86_64-apple-darwin17.7.0/parser_html.o OBJ.x86_64-apple-darwin17.7.0/parser_interface.o OBJ.x86_64-apple-darwin17.7.0/parser_rest.o OBJ.x86_64-apple-darwin17.7.0/parser_script.o OBJ.x86_64-apple-darwin17.7.0/parser_standard_options.o OBJ.x86_64-apple-darwin17.7.0/parser_wps.o OBJ.x86_64-apple-darwin17.7.0/paths.o OBJ.x86_64-apple-darwin17.7.0/percent.o OBJ.x86_64-apple-darwin17.7.0/plot.o OBJ.x86_64-apple-darwin17.7.0/pole_in_poly.o OBJ.x86_64-apple-darwin17.7.0/popen.o OBJ.x86_64-apple-darwin17.7.0/progrm_nme.o OBJ.x86_64-apple-darwin17.7.0/proj1.o OBJ.x86_64-apple-darwin17.7.0/proj2.o OBJ.x86_64-apple-darwin17.7.0/proj3.o OBJ.x86_64-apple-darwin17.7.0/put_window.o OBJ.x86_64-apple-darwin17.7.0/putenv.o OBJ.x86_64-apple-darwin17.7.0/radii.o OBJ.x86_64-apple-darwin17.7.0/rd_cellhd.o OBJ.x86_64-apple-darwin17.7.0/remove.o OBJ.x86_64-apple-darwin17.7.0/rename.o OBJ.x86_64-apple-darwin17.7.0/rhumbline.o OBJ.x86_64-apple-darwin17.7.0/rotate.o OBJ.x86_64-apple-darwin17.7.0/seek.o OBJ.x86_64-apple-darwin17.7.0/set_window.o OBJ.x86_64-apple-darwin17.7.0/short_way.o OBJ.x86_64-apple-darwin17.7.0/sleep.o OBJ.x86_64-apple-darwin17.7.0/snprintf.o OBJ.x86_64-apple-darwin17.7.0/spawn.o OBJ.x86_64-apple-darwin17.7.0/strings.o OBJ.x86_64-apple-darwin17.7.0/tempfile.o OBJ.x86_64-apple-darwin17.7.0/timestamp.o OBJ.x86_64-apple-darwin17.7.0/token.o OBJ.x86_64-apple-darwin17.7.0/trim_dec.o OBJ.x86_64-apple-darwin17.7.0/units.o OBJ.x86_64-apple-darwin17.7.0/user_config.o OBJ.x86_64-apple-darwin17.7.0/verbose.o OBJ.x86_64-apple-darwin17.7.0/view.o OBJ.x86_64-apple-darwin17.7.0/whoami.o OBJ.x86_64-apple-darwin17.7.0/win32_pipes.o OBJ.x86_64-apple-darwin17.7.0/wind_2_box.o OBJ.x86_64-apple-darwin17.7.0/wind_format.o OBJ.x86_64-apple-darwin17.7.0/wind_in.o OBJ.x86_64-apple-darwin17.7.0/wind_limits.o OBJ.x86_64-apple-darwin17.7.0/wind_overlap.o OBJ.x86_64-apple-darwin17.7.0/wind_scan.o OBJ.x86_64-apple-darwin17.7.0/window_map.o OBJ.x86_64-apple-darwin17.7.0/worker.o OBJ.x86_64-apple-darwin17.7.0/wr_cellhd.o OBJ.x86_64-apple-darwin17.7.0/writ_zeros.o OBJ.x86_64-apple-darwin17.7.0/xdr.o OBJ.x86_64-apple-darwin17.7.0/zero.o OBJ.x86_64-apple-darwin17.7.0/zone.o -lgrass_datetime.7.4.3 -lz -lbz2 -liconv
cc: Error: You should be using ${configure.cc}
See https://trac.macports.org/wiki/UsingTheRightCompiler

Change History (5)

comment:1 Changed 5 years ago by nilason (Nicklas Larsson)

I believe this can be closed. With 7.8.3 this issue has lost its relevance.

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Here is a build log of 7.8.3 that shows the issue has not yet been resolved:

cc -dynamiclib -compatibility_version 7.8 -current_version 7.8 -install_name /opt/local/share/grass78/lib/libgrass_datetime.7.8.dylib -o /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_grass7/grass7/work/grass-7.8.3/dist.x86_64-apple-darwin17.7.0/lib/libgrass_datetime.7.8.dylib -L/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_grass7/grass7/work/grass-7.8.3/dist.x86_64-apple-darwin17.7.0/lib -L/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_grass7/grass7/work/grass-7.8.3/dist.x86_64-apple-darwin17.7.0/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -framework OpenCL -arch x86_64    OBJ.x86_64-apple-darwin17.7.0/between.o OBJ.x86_64-apple-darwin17.7.0/change.o OBJ.x86_64-apple-darwin17.7.0/copy.o OBJ.x86_64-apple-darwin17.7.0/diff.o OBJ.x86_64-apple-darwin17.7.0/error.o OBJ.x86_64-apple-darwin17.7.0/format.o OBJ.x86_64-apple-darwin17.7.0/incr1.o OBJ.x86_64-apple-darwin17.7.0/incr2.o OBJ.x86_64-apple-darwin17.7.0/incr3.o OBJ.x86_64-apple-darwin17.7.0/local.o OBJ.x86_64-apple-darwin17.7.0/misc.o OBJ.x86_64-apple-darwin17.7.0/same.o OBJ.x86_64-apple-darwin17.7.0/scan.o OBJ.x86_64-apple-darwin17.7.0/sign.o OBJ.x86_64-apple-darwin17.7.0/type.o OBJ.x86_64-apple-darwin17.7.0/tz1.o OBJ.x86_64-apple-darwin17.7.0/tz2.o OBJ.x86_64-apple-darwin17.7.0/values.o   

Note the use of cc instead of the correct compiler.

comment:3 Changed 5 years ago by Veence (Vincent)

I pushed a patch that should resolve this. The culprit was a literal "cc" in the configure file for Darwin OS, instead of proper ${CC} for more "mainstream" Unix OS like Linux. Going to report that upstream.

comment:4 Changed 5 years ago by nilason (Nicklas Larsson)

I believe this can be closed. With 7.8.3 this issue has lost its relevance.

Sorry, was too quick.

I pushed a patch that should resolve this. The culprit was a literal "cc" in the configure file for Darwin OS, instead of proper ${CC} for more "mainstream" Unix OS like Linux. Going to report that upstream.

PR upstream: https://github.com/OSGeo/grass/pull/611

comment:5 in reply to:  3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to Veence:

I pushed a patch that should resolve this.

Just to make a note of it, it was this commit: [586ca30cd2fab399f388912a0b2654cf9e00e28c/macports-ports]

Note: See TracTickets for help on using tickets.