[MacPorts] #37336: Error when install R
#37336: Error when install R ---------------------------+-------------------------------- Reporter: march.1.xue@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: install error | Port: 2.15.2 ---------------------------+-------------------------------- When I type: sudo install -d R I got the follow errors after quite a while {{{ ../../gcc-4.8-20121216/gcc/varasm.c:2094:13: error: 'pending_assemble_externals_processed' defined but not used [-Werror =unused-variable] static bool pending_assemble_externals_processed; ^ cc1plus: all warnings being treated as errors make[3]: *** [varasm.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48 /libstdcxx-devel/work/build/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48 /libstdcxx-devel/work/build' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48 /libstdcxx-devel/work/build' make: *** [bootstrap] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48 /libstdcxx-devel/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48 /libstdcxx-devel/work/build" && /usr/bin/make -j8 -w bootstrap Exit code: 2 Error: org.macports.build for port libstdcxx-devel returned: command execution failed DEBUG: Error code: CHILDSTATUS 7129 2 DEBUG: Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" Warning: targets not executed for libstdcxx-devel: org.macports.install org.macports.build org.macports.destroot Please see the log file for port libstdcxx-devel for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48 /libstdcxx-devel/main.log DEBUG: couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory while executing "open [file join $dir tclIndex]" Error: Unable to upgrade port: 1 DEBUG: upgrade gcc45 failed while executing "macports::_upgrade_mport_deps $mport $target" (procedure "mportexec" line 39) invoked from within "mportexec $workername $target" Error: Unable to execute port: upgrade gcc45 failed }}} -- Ticket URL: <https://trac.macports.org/ticket/37336> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: Error when install R ----------------------------+-------------------------------- Reporter: march.1.xue@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: install error Port: 2.15.2 | ----------------------------+-------------------------------- Comment (by march.1.xue@…): sorry, it is sudo port -d install R -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Changes (by ryandesign@…): * keywords: install error => * owner: macports-tickets@… => mww@… * port: 2.15.2 => libstdcxx-devel * cc: ryandesign@… (removed) * cc: jeremyhu@… (added) Comment: Please attach the main.log file from the failed libstdcxx-devel build. -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by march.1.xue@…): sorry but how to output main.log? thanks! -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by ram@…): Compressed build log attached, uncompressed it's 5Mb! -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by march.1.xue@…): Replying to [comment:2 ryandesign@…]:
Please attach the main.log file from the failed libstdcxx-devel build.
Main_log.dat attached -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by mano@…): ''... /gcc/varasm.c:2094:13: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] static bool pending_assemble_externals_processed;'' To get it work just comment out the line 2094, static bool ..., in /opt/local/var/macports/build/... .../gcc/varasm.c Why were warnings treated as errors? OR Is there a reason, why warning- treated-as-errors is not disabled? -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by march.1.xue@…): Replying to [comment:12 mano@…]:
''... /gcc/varasm.c:2094:13: error: 'pending_assemble_externals_processed' defined but not used [-Werror =unused-variable] static bool pending_assemble_externals_processed;''
To get it work just comment out the line 2094, static bool ..., in /opt/local/var/macports/build/... .../gcc/varasm.c
Why were warnings treated as errors? OR Is there a reason, why warning- treated-as-errors is not disabled?
Thanks! It is working now... -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by gunnlaugur@…): Thanks! Attached portfile patch and patch file to `#ifdef` this variable appropriately. With this change it builds just fine. The patch is already in place upstream: http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=c1946cb7e83dd1532f3fce7f5ed... -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by gunnlaugur@…): Fixed bogus extra folder prefix in the `varasm.c` patch file. -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: libstdcxx-devel | ------------------------------+------------------- Comment (by jeremyhu@…): Ok, well this will just go away when mww bumps gcc48 to a newer weekly. -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37336: libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] ------------------------------+-------------------- Reporter: march.1.xue@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: libstdcxx-devel | ------------------------------+-------------------- Changes (by ram@…): * status: new => closed * resolution: => fixed Comment: latest snapshot builds -- Ticket URL: <https://trac.macports.org/ticket/37336#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts