Opened 12 years ago
Closed 12 years ago
#37336 closed defect (fixed)
libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable]
Reported by: | march.1.xue@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | jeremyhu (Jeremy Huddleston Sequoia), skymoo (Adam Mercer), gnw3, anthonygelibert (Anthony Gelibert), alexeiz@…, smitty1e@…, mano@… | |
Port: | libstdcxx-devel |
Description
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
Attachments (4)
Change History (21)
comment:1 Changed 12 years ago by march.1.xue@…
comment:2 follow-up: 6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jeremyhu@… added; ryandesign@… removed |
---|---|
Keywords: | install error removed |
Owner: | changed from macports-tickets@… to mww@… |
Port: | libstdcxx-devel added; 2.15.2 removed |
Summary: | Error when install R → libstdcxx-devel: error: 'pending_assemble_externals_processed' defined but not used [-Werror=unused-variable] |
Please attach the main.log file from the failed libstdcxx-devel build.
Changed 12 years ago by skymoo (Adam Mercer)
Attachment: | main.log.bz2 added |
---|
comment:5 Changed 12 years ago by skymoo (Adam Mercer)
Compressed build log attached, uncompressed it's 5Mb!
Changed 12 years ago by march.1.xue@…
Attachment: | main_log.dat added |
---|
comment:6 Changed 12 years ago by march.1.xue@…
Replying to ryandesign@…:
Please attach the main.log file from the failed libstdcxx-devel build.
Main_log.dat attached
comment:8 Changed 12 years ago by anthonygelibert (Anthony Gelibert)
Cc: | anthony.gelibert@… added |
---|
Cc Me!
comment:12 follow-up: 13 Changed 12 years ago 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?
comment:13 Changed 12 years ago by march.1.xue@…
Replying to 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...
Changed 12 years ago by gthb (Gunnlaugur Thor Briem)
Attachment: | Portfile.patch added |
---|
comment:14 Changed 12 years ago by gthb (Gunnlaugur Thor Briem)
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=c1946cb7e83dd1532f3fce7f5edba79f2eec86e0
Changed 12 years ago by gthb (Gunnlaugur Thor Briem)
Attachment: | patch-gcc-varasm.c.diff added |
---|
comment:15 Changed 12 years ago by gthb (Gunnlaugur Thor Briem)
Fixed bogus extra folder prefix in the varasm.c
patch file.
comment:16 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Ok, well this will just go away when mww bumps gcc48 to a newer weekly.
comment:17 Changed 12 years ago by skymoo (Adam Mercer)
Resolution: | → fixed |
---|---|
Status: | new → closed |
latest snapshot builds
sorry, it is sudo port -d install R