Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#32976 closed defect (worksforme)

gcc46 fails to compile (upgrade) on Lion

Reported by: mojca (Mojca Miklavec) 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 (1)

gcc46.log (102.2 KB) - added by mojca (Mojca Miklavec) 13 years ago.
log file of failed gcc46 build

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by mojca (Mojca Miklavec)

Attachment: gcc46.log added

log file of failed gcc46 build

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

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 13 years ago by mojca (Mojca Miklavec)

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.

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

Resolution: worksforme
Status: newclosed

comment:5 Changed 13 years ago by mojca (Mojca Miklavec)

Confirmed, it works on both computers that I'm using. It must have been a temporary problem that got resolved in the meantime.

Note: See TracTickets for help on using tickets.