Ticket #32976 (closed defect: worksforme)
gcc46 fails to compile (upgrade) on Lion
| Reported by: | mojca.miklavec.lists@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | Cc: | ||
| Port: | gcc46 |
Description
When I tried to update gcc46 (port upgrade outdated) I stumbled across the following problem:
:info:build /bin/sh ./libtool --tag=CC --mode=compile /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/./gcc/ -B/opt/local/x86_64-apple-darwin11/bin/ -B/opt/local/x86_64-apple-darwin11/lib/ -isystem /opt/local/x86_64-apple-darwin11/include -isystem /opt/local/x86_64-apple-darwin11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.6.2/libgfortran -iquote../../../gcc-4.6.2/libgfortran/io -I../../../gcc-4.6.2/libgfortran/../gcc -I../../../gcc-4.6.2/libgfortran/../gcc/config -I../../../gcc-4.6.2/libgfortran/../libquadmath -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -pipe -O2 -MT dtime.lo -MD -MP -MF .deps/dtime.Tpo -c -o dtime.lo `test -f 'intrinsics/dtime.c' || echo '../../../gcc-4.6.2/libgfortran/'`intrinsics/dtime.c
:info:build libtool: compile: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/./gcc/ -B/opt/local/x86_64-apple-darwin11/bin/ -B/opt/local/x86_64-apple-darwin11/lib/ -isystem /opt/local/x86_64-apple-darwin11/include -isystem /opt/local/x86_64-apple-darwin11/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.6.2/libgfortran -iquote../../../gcc-4.6.2/libgfortran/io -I../../../gcc-4.6.2/libgfortran/../gcc -I../../../gcc-4.6.2/libgfortran/../gcc/config -I../../../gcc-4.6.2/libgfortran/../libquadmath -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -g -pipe -O2 -MT dtime.lo -MD -MP -MF .deps/dtime.Tpo -c ../../../gcc-4.6.2/libgfortran/intrinsics/dtime.c -fno-common -DPIC -o .libs/dtime.o
:info:build In file included from ../../../gcc-4.6.2/libgfortran/intrinsics/ctime.c:28:0:
:info:build ../../../gcc-4.6.2/libgfortran/intrinsics/time_1.h:99:1: error: static declaration of 'localtime_r' follows non-static declaration
:info:build /usr/include/time.h:143:12: note: previous declaration of 'localtime_r' was here
:info:build In file included from ../../../gcc-4.6.2/libgfortran/intrinsics/dtime.c:27:0:
:info:build ../../../gcc-4.6.2/libgfortran/intrinsics/time_1.h:99:1: error: static declaration of 'localtime_r' follows non-static declaration
:info:build /usr/include/time.h:143:12: note: previous declaration of 'localtime_r' was here
:info:build In file included from ../../../gcc-4.6.2/libgfortran/intrinsics/cpu_time.c:26:0:
:info:build ../../../gcc-4.6.2/libgfortran/intrinsics/time_1.h:99:1: error: static declaration of 'localtime_r' follows non-static declaration
:info:build In file included from ../../../gcc-4.6.2/libgfortran/intrinsics/date_and_time.c:32:0:
:info:build ../../../gcc-4.6.2/libgfortran/intrinsics/time_1.h:99:1: error: static declaration of 'localtime_r' follows non-static declaration/usr/include/time.h:143:12: note: previous declaration of 'localtime_r' was here
:info:build~
:info:build /usr/include/time.h:143:12: note: previous declaration of 'localtime_r' was here
:info:build make[3]: *** [dtime.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build make[3]: *** [date_and_time.lo] Error 1:info:build make[3]: *** [ctime.lo] Error 1
:info:build make[3]: *** [cpu_time.lo] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/x86_64-apple-darwin11/libgfortran'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build/x86_64-apple-darwin11/libgfortran'
:info:build make[1]: *** [all-target-libgfortran] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/work/build" && /usr/bin/make -j4 -w bootstrap " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gcc46): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for gcc46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc46/gcc46/main.log
Attachments
Change History
comment:2 Changed 14 months ago by ryandesign@…
This log is incomplete (it contains lines that say "Skipping completed"). Could you "sudo port clean gcc46" and try again, and attach the new main.log?
comment:3 Changed 14 months ago by mojca.miklavec.lists@…
gcc46 has undergone 4 commits since I opened the ticket and I completely forgot about it. I checked now and I have gcc46 installed on one computer. Just in case I will try to install it to the second one, but judging from the installed version I assume that the problem must have been fixed in the meantime.
Note: See
TracTickets for help on using
tickets.


log file of failed gcc46 build