Opened 13 years ago

Closed 12 years ago

#30721 closed defect (fixed)

erlang build failure: "the clang compiler does not support '-MG'"

Reported by: keith.beaudoin@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: clang Cc:
Port: erlang

Description (last modified by mf2k (Frank Schima))

--->  Building erlang
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for erlang is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade erlang failed

Log :

version:1
:msg:main --->  Computing dependencies for erlang:info:main .:debug:main Searching for dependency: gawk
:debug:main Found Dependency: receipt exists for gawk
:debug:main Searching for dependency: perl5
:debug:main Found Dependency: receipt exists for perl5
:debug:main Searching for dependency: ncurses
:debug:main Found Dependency: receipt exists for ncurses
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:msg:main
:debug:main Executing org.macports.main (erlang)
:debug:main Skipping completed org.macports.archivefetch (erlang)
:debug:main Skipping completed org.macports.fetch (erlang)
:debug:main Skipping completed org.macports.checksum (erlang)
:debug:main Skipping completed org.macports.extract (erlang)
:debug:main Skipping completed org.macports.patch (erlang)
:debug:main Skipping completed org.macports.configure (erlang)
:debug:build build phase started at Thu Aug 11 14:57:24 EDT 2011
:notice:build --->  Building erlang
:debug:build Executing org.macports.build (erlang)
:debug:build port disallows a parallel build
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03" && /usr/bin/make -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03" && /usr/bin/make -w all
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03'
:info:build test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03 make generate depend)
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/erts/emulator'
:info:build make -f i386-apple-darwin11.0.0/Makefile generate
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/erts/emulator'
:info:build make[2]: Nothing to be done for `generate'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/erts/emulator'
:info:build make -f i386-apple-darwin11.0.0/Makefile depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/erts/emulator'
:info:build /Developer/usr/bin/clang -MM -MG -mdynamic-no-pic -Ipcre -m64 -O0 -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/erts/i386-apple-darwin11.0.0  -no-cpp-precomp -I/opt/local/include -D_XOPEN_SOURCE  -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS  -Ii386-apple-darwin11.0.0/opt/plain -Ibeam -Isys/unix -Isys/common -Ii386-apple-darwin11.0.0 -Izlib  -Ipcre -Ihipe -I../include -I../include/i386-apple-darwin11.0.0 -I../include/internal -I../include/internal/i386-apple-darwin11.0.0 -Idrivers/common beam/atom.c beam/beam_bif_load.c beam/beam_bp.c beam/beam_catches.c beam/beam_debug.c beam/beam_emu.c beam/beam_load.c beam/benchmark.c beam/bif.c beam/big.c beam/binary.c beam/break.c beam/copy.c beam/dist.c beam/elib_memmove.c beam/erl_afit_alloc.c beam/erl_alloc.c beam/erl_alloc_util.c beam/erl_arith.c beam/erl_async.c beam/erl_bestfit_alloc.c beam/erl_bif_binary.c beam/erl_bif_chksum.c beam/erl_bif_ddll.c beam/erl_bif_guard.c beam/erl_bif_info.c beam/erl_bif_lists.c beam/erl_bif_op.c beam/erl_bif_os.c beam/erl_bif_port.c beam/erl_bif_re.c beam/erl_bif_timer.c beam/erl_bif_trace.c beam/erl_bits.c beam/erl_cpu_topology.c beam/erl_db.c beam/erl_db_hash.c beam/erl_db_tree.c beam/erl_db_util.c beam/erl_debug.c beam/erl_drv_thread.c beam/erl_fun.c beam/erl_gc.c beam/erl_goodfit_alloc.c beam/erl_init.c beam/erl_instrument.c beam/erl_lock_check.c beam/erl_lock_count.c beam/erl_math.c beam/erl_md5.c beam/erl_message.c beam/erl_monitors.c beam/erl_mtrace.c beam/erl_nif.c beam/erl_nmgc.c beam/erl_node_tables.c beam/erl_port_task.c beam/erl_posix_str.c beam/erl_printf_term.c beam/erl_process.c beam/erl_process_dict.c beam/erl_process_dump.c beam/erl_process_lock.c beam/erl_resolv_dns.c beam/erl_resolv_nodns.c beam/erl_term.c beam/erl_time_sup.c beam/erl_trace.c beam/erl_unicode.c beam/erl_zlib.c beam/export.c beam/external.c beam/fix_alloc.c beam/hash.c beam/index.c beam/io.c beam/module.c beam/packet_parser.c beam/register.c beam/safe_hash.c beam/time.c beam/utils.c \
:info:build             | sed 's|^\([^:]*:\)|$(OBJDIR)/\1|g;s|i386-apple-darwin11.0.0/opt/plain/|$(TTF_DIR)/|g;s|\([    ]\)/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/|\1$(ERL_TOP)/|g;s|^/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/erlang/work/erlang-R14B03/|$(ERL_TOP)/|g;s|$(OBJDIR)/erl_poll.o|$(OBJDIR)/erl_poll.kp.o $(OBJDIR)/erl_poll.nkp.o|g;s|$(OBJDIR)/erl_check_io.o|$(OBJDIR)/erl_check_io.kp.o $(OBJDIR)/erl_check_io.nkp.o|g' > i386-apple-darwin11.0.0/depend.mk
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'
:info:build clang: error: the clang compiler does not support '-MG'

Change History (3)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: lion added
Owner: changed from macports-tickets@… to bfulgham@…
Port: erlang added

comment:2 Changed 13 years ago by bfulgham@…

I believe this is fixed in the new R14B04 release. Could you please try and close the bug it works for you?

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Keywords: clang added; lion removed
Resolution: fixed
Status: newclosed
Summary: Mac OSX Lion - XCode v4.2 - ejabberd 2.1.8erlang build failure: "the clang compiler does not support '-MG'"

The current portfile explicitly avoids using clang.

Note: See TracTickets for help on using tickets.