[MacPorts] #32976: gcc46 fails to compile (upgrade) on Lion
MacPorts
noreply at macports.org
Sat Jan 21 13:40:35 PST 2012
#32976: gcc46 fails to compile (upgrade) on Lion
--------------------------------------------+-------------------------------
Reporter: mojca.miklavec.lists@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: gcc46
--------------------------------------------+-------------------------------
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/32976>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list