Binutils installation problem
Hi! I need to install GNU Binutils but I get the following error during installation cc: unrecognized option '-no-cpp-precomp' /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c: In function 'fibheap_union': /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c:151: warning: implicit declaration of function 'free' /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c: In function 'fibheap_delete_node': /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c:258: error: 'LONG_MIN' undeclared (first use in this function) /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c:258: error: (Each undeclared identifier is reported only once /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c:258: error: for each function it appears in.) /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c: In function 'fibheap_consolidate': /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c:360: warning: implicit declaration of function 'memset' /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c:360: warning: incompatible implicit declaration of built-in function 'memset' make[2]: *** [fibheap.o] Error 1 make[1]: *** [all-libiberty] Error 2 make: *** [all] Error 2 Error: Status 1 encountered during processing. Can somebody help me to solve this problem? Thanks Chiara
Chiara Sandionigi wrote:
I need to install GNU Binutils but I get the following error during installation
cc: unrecognized option '-no-cpp-precomp'
This flag shouldn't be needed for Panther and beyond (gcc-3.3+) However, my Apple GCC compiler still seems to recognize it. What platform are you trying to build the binutils port on ? --anders
On 30/ago/07, at 19:46, Anders F Björklund wrote:
Chiara Sandionigi wrote:
I need to install GNU Binutils but I get the following error during installation
cc: unrecognized option '-no-cpp-precomp'
This flag shouldn't be needed for Panther and beyond (gcc-3.3+)
However, my Apple GCC compiler still seems to recognize it. What platform are you trying to build the binutils port on ?
I work on a MacBook with Mac OS X 10.4 and with gcc 4.2.1
Chiara Sandionigi wrote:
However, my Apple GCC compiler still seems to recognize it. What platform are you trying to build the binutils port on ?
I work on a MacBook with Mac OS X 10.4 and with gcc 4.2.1
Ah, OK... The Portfile is probably not set up to handle the FSF GCC but assumes you are using the Apple GCC (/usr/bin/gcc). If you have such a non-standard gcc in your path, then you'll probably run into port problems with more than just binutils ? I suggest moving GCC 4.2.1 out of the default paths at least. But the port should probably not add -cpp-precomp for new GCC, and it will fail with the FSF GCC (including other platforms). Not sure how to do it in Tcl, but could be done with "system". --anders
On Aug 31, 2007, at 09:48, Anders F Björklund wrote:
On Aug 31, 2007, at 09:41, Chiara Sandionigi wrote:
On Aug 30, 2007, at 12:46, Anders F Björklund wrote:
Chiara Sandionigi wrote:
I need to install GNU Binutils but I get the following error during installation
cc: unrecognized option '-no-cpp-precomp'
This flag shouldn't be needed for Panther and beyond (gcc-3.3+)
However, my Apple GCC compiler still seems to recognize it. What platform are you trying to build the binutils port on ?
I work on a MacBook with Mac OS X 10.4 and with gcc 4.2.1
Ah, OK... The Portfile is probably not set up to handle the FSF GCC but assumes you are using the Apple GCC (/usr/bin/gcc). If you have such a non-standard gcc in your path, then you'll probably run into port problems with more than just binutils ?
I suggest moving GCC 4.2.1 out of the default paths at least. But the port should probably not add -cpp-precomp for new GCC, and it will fail with the FSF GCC (including other platforms). Not sure how to do it in Tcl, but could be done with "system".
I have submitted a ticket: http://trac.macosforge.org/projects/macports/ticket/12584
On 01/set/07, at 01:26, Ryan Schmidt wrote:
On Aug 31, 2007, at 09:48, Anders F Björklund wrote:
On Aug 31, 2007, at 09:41, Chiara Sandionigi wrote:
On Aug 30, 2007, at 12:46, Anders F Björklund wrote:
Chiara Sandionigi wrote:
I need to install GNU Binutils but I get the following error during installation
cc: unrecognized option '-no-cpp-precomp'
This flag shouldn't be needed for Panther and beyond (gcc-3.3+)
However, my Apple GCC compiler still seems to recognize it. What platform are you trying to build the binutils port on ?
I work on a MacBook with Mac OS X 10.4 and with gcc 4.2.1
Ah, OK... The Portfile is probably not set up to handle the FSF GCC but assumes you are using the Apple GCC (/usr/bin/gcc). If you have such a non-standard gcc in your path, then you'll probably run into port problems with more than just binutils ?
I suggest moving GCC 4.2.1 out of the default paths at least. But the port should probably not add -cpp-precomp for new GCC, and it will fail with the FSF GCC (including other platforms). Not sure how to do it in Tcl, but could be done with "system".
I have submitted a ticket:
Now I'm using Apple GCC 4.0.1, but I have another error cc1: error: unrecognized command line option "-Wc++-compat"
Le 1 sept. 07 à 01:26, Ryan Schmidt a écrit :
I work on a MacBook with Mac OS X 10.4 and with gcc 4.2.1
Ah, OK... The Portfile is probably not set up to handle the FSF GCC but assumes you are using the Apple GCC (/usr/bin/gcc). If you have such a non-standard gcc in your path, then you'll probably run into port problems with more than just binutils ?
I suggest moving GCC 4.2.1 out of the default paths at least. But the port should probably not add -cpp-precomp for new GCC, and it will fail with the FSF GCC (including other platforms). Not sure how to do it in Tcl, but could be done with "system".
I have submitted a ticket:
I already commented on Trac. The binutils port is only there to provide binutils programs in an Apple gcc environment. It does not make sense to use MacPorts to install binutils for FSF compilers. Chiara should either remove FSF compiler and retry or try to compile an FSF-obtained version of binutils. Paul -- http://paul-guyot.com/
On 03/set/07, at 06:57, Paul Guyot wrote:
Chiara should either remove FSF compiler and retry or try to compile an FSF-obtained version of binutils.
Unfortunately no solution works properly. ::. Using gcc 4.0.1 of Apple and installing binutils through macport, I have the following error ---> Building binutils with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/build" && make all " returned error 2 Command output: if [ x"" != x ]; then \ cc -no-cpp-precomp -c -DHAVE_CONFIG_H -O2 -I. -I/opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/../include -W -Wall -pedantic - Wwrite-strings -Wstrict-prototypes -Wc++-compat /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c -o pic/fibheap.o; \ else true; fi cc -no-cpp-precomp -c -DHAVE_CONFIG_H -O2 -I. -I/opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/../include -W -Wall -pedantic - Wwrite-strings -Wstrict-prototypes -Wc++-compat /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c -o fibheap.o cc1: error: unrecognized command line option "-Wc++-compat" make[2]: *** [fibheap.o] Error 1 make[1]: *** [all-libiberty] Error 2 make: *** [all] Error 2 Error: Status 1 encountered during processing. ::. Using gcc 3.3 of Apple and installing binutils through macport, I have the following error ---> Building binutils with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/build" && make all " returned error 2 Command output: if [ x"" != x ]; then \ cc -no-cpp-precomp -c -DHAVE_CONFIG_H -O2 -I. -I/opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/../include -W -Wall -pedantic - Wwrite-strings -Wstrict-prototypes -Wc++-compat /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c -o pic/fibheap.o; \ else true; fi cc -no-cpp-precomp -c -DHAVE_CONFIG_H -O2 -I. -I/opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/../include -W -Wall -pedantic - Wwrite-strings -Wstrict-prototypes -Wc++-compat /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_b inutils/work/binutils-2.17/libiberty/fibheap.c -o fibheap.o cc: installation problem, cannot exec `cc1': No such file or directory make[2]: *** [fibheap.o] Error 1 make[1]: *** [all-libiberty] Error 2 make: *** [all] Error 2 Error: Status 1 encountered during processing. ::. Compiling a FSF version of binutils and using gcc 4.2.1 of FSF, I get the following during the installation phase /bin/sh ./mkinstalldirs /usr/local /usr/local for f in standards.info configure.info; do \ if test -f .././etc/`echo $f | sed -e 's/.info$/.texi/'`; then \ if make "MAKEINFO=makeinfo --split-size=5000000 --split- size=5000000" $f; then \ true; \ else \ exit 1; \ fi; \ fi; \ done make[3]: `standards.info' is up to date. make[3]: `configure.info' is up to date. /bin/sh .././etc/../mkinstalldirs /usr/local/info if test ! -f standards.info; then cd .././etc; fi; \ if test -f standards.info; then \ for i in standards.info*; do \ /usr/bin/install -c -m 644 $i /usr/local/info/$i; \ done; \ fi if test ! -f configure.info; then cd .././etc; fi; \ if test -f configure.info; then \ for i in configure.info*; do \ /usr/bin/install -c -m 644 $i /usr/local/info/$i; \ done; \ fi make[2]: Nothing to be done for `install'. make[3]: Nothing to be done for `all'. /bin/sh .././libiberty/../mkinstalldirs /usr/local/lib/`gcc -g -O2 - print-multi-os-directory` /usr/bin/install -c -m 644 ./libiberty.a /usr/local/lib/`gcc -g -O2 - print-multi-os-directory`/./libiberty.an ( cd /usr/local/lib/`gcc -g -O2 -print-multi-os-directory` ; chmod 644 ./libiberty.an ;ranlib ./libiberty.an ) mv -f /usr/local/lib/`gcc -g -O2 -print-multi-os-directory`/./ libiberty.an /usr/local/lib/`gcc -g -O2 -print-multi-os-directory`/./ libiberty.a if test -n ""; then \ case "" in \ /*) thd=;; \ *) thd=/usr/local/include/;; \ esac; \ /bin/sh .././libiberty/../mkinstalldirs ${thd}; \ for h in .././libiberty/../include/ansidecl.h .././libiberty/../ include/demangle.h .././libiberty/../include/dyn-string.h .././ libiberty/../include/fibheap.h .././libiberty/../include/ floatformat.h .././libiberty/../include/hashtab.h .././libiberty/../ include/libiberty.h .././libiberty/../include/objalloc.h .././ libiberty/../include/partition.h .././libiberty/../include/safe- ctype.h .././libiberty/../include/sort.h .././libiberty/../include/ splay-tree.h; do \ /usr/bin/install -c -m 644 $h ${thd}; \ done; \ fi make[3]: Nothing to be done for `install'. make[1]: Nothing to be done for `install-target'.
participants (4)
-
Anders F Björklund
-
Chiara Sandionigi
-
Paul Guyot
-
Ryan Schmidt