[MacPorts] #37374: Trying to build a G95 snapshot
MacPorts
noreply at macports.org
Sun Dec 23 06:37:28 PST 2012
#37374: Trying to build a G95 snapshot
-------------------------------+--------------------------------
Reporter: angelo.graziosi@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: g95-snapshot | Port: g95
-------------------------------+--------------------------------
It seems that the development of G95 (http://www.g95.org) is restarted so
I have tried to build current snapshot (http://ftp.g95.org/g95_source.tgz,
2012.12.19). I don't understand completely Portfile language but I have
tried to follow this
https://trac.macports.org/browser/trunk/dports/lang/g95/Portfile, and my
steps have been:
{{{
wget ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.2.4/gcc-core-4.2.4.tar.gz
tar -xvf gcc-core-4.2.4.tar.gz
cd gcc-4.2.4
patch gcc/gcc.c
/opt/local//var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/g95/files
/patch-gcc.c.diff
mkdir g95
cd g95
CC=llvm-gcc-4.2 ../configure --enable-languages=c --with-included-gettext
--with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm
--build=x86_64-apple-darwin11 --host=x86_64-apple-darwin11
make
}}}
but 'make' fails:
{{{
llvm-gcc-4.2 -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o xgcc gcc.o
opts-common.o gcc-options.o gccspec.o \
intl.o prefix.o version.o driver-i386.o ../libcpp/libcpp.a
./../intl/libintl.a -liconv ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a
duplicate symbol _target_flags in:
gcc.o
gcc-options.o
ld: 1 duplicate symbol for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [xgcc] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
}}}
Have you any ideas how to fix this?
TIA,
Angelo.
--
Ticket URL: <https://trac.macports.org/ticket/37374>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list