Opened 6 years ago

Closed 6 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, 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)

main.log.bz2 (100.7 KB) - added by skymoo (Adam Mercer) 6 years ago.
main_log.dat (39.3 KB) - added by march.1.xue@… 6 years ago.
Portfile.patch (446 bytes) - added by gthb (Gunnlaugur Thor Briem) 6 years ago.
patch-gcc-varasm.c.diff (741 bytes) - added by gthb (Gunnlaugur Thor Briem) 6 years ago.

Download all attachments as: .zip

Change History (21)

comment:1 Changed 6 years ago by march.1.xue@…

sorry, it is sudo port -d install R

comment:2 Changed 6 years ago by ryandesign (Ryan 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 Rlibstdcxx-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.

comment:3 Changed 6 years ago by march.1.xue@…

sorry but how to output main.log? thanks!

comment:4 Changed 6 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

Changed 6 years ago by skymoo (Adam Mercer)

Attachment: main.log.bz2 added

comment:5 Changed 6 years ago by skymoo (Adam Mercer)

Compressed build log attached, uncompressed it's 5Mb!

Changed 6 years ago by march.1.xue@…

Attachment: main_log.dat added

comment:6 in reply to:  2 Changed 6 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:7 Changed 6 years ago by gnw3

Cc: gnwiii@… added

Cc Me!

comment:8 Changed 6 years ago by anthony.gelibert@…

Cc: anthony.gelibert@… added

Cc Me!

comment:9 Changed 6 years ago by alexeiz@…

Cc: alexeiz@… added

Cc Me!

comment:10 Changed 6 years ago by smitty1e@…

Cc: smitty1e@… added

Cc Me!

comment:11 Changed 6 years ago by mano@…

Cc: mano@… added

Cc Me!

comment:12 Changed 6 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 in reply to:  12 Changed 6 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 6 years ago by gthb (Gunnlaugur Thor Briem)

Attachment: Portfile.patch added

comment:14 Changed 6 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 6 years ago by gthb (Gunnlaugur Thor Briem)

Attachment: patch-gcc-varasm.c.diff added

comment:15 Changed 6 years ago by gthb (Gunnlaugur Thor Briem)

Fixed bogus extra folder prefix in the varasm.c patch file.

comment:16 Changed 6 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 6 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: newclosed

latest snapshot builds

Note: See TracTickets for help on using tickets.