public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building a custom front end on x86_64-apple-darwin11.4.0
@ 2012-06-26 12:15 Josh Reese
  2012-06-27  5:41 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Josh Reese @ 2012-06-26 12:15 UTC (permalink / raw)
  To: gcc-help

Hello, 
I am attempting to build a custom designed front end for GCC on x86_64-apple-darwin11.4.0. I have successfully built a 'plain' version (no extra front ends) and a version which includes fortran. I have modeled most of my front end files off the files located in gcc/fortran. What I am attempting to build is basically a skeleton version of a front end to make sure everything works together before I begin a full implementation. I have successfully made it through compilation but am experiencing an error during the installation phase. The output of 'make install' for my front end is as follows:

13:03@legolas:.+gcc4.7.0/objdir$ make install
/bin/sh ../srcdir/mkinstalldirs /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local
rm -rf /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools
/bin/sh ../../srcdir/fixincludes/../mkinstalldirs /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools 
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools
/bin/sh ../../srcdir/fixincludes/../mkinstalldirs /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools/include
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools
mkdir /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools/include
/usr/bin/install -c -m 644 ../../srcdir/fixincludes/README-fixinc \
	  /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools/include/README
/usr/bin/install -c fixinc.sh /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools/fixinc.sh
/usr/bin/install -c fixincl \
	  /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools/fixincl
/usr/bin/install -c mkheaders /Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.7.0/install-tools/mkheaders
/bin/sh ../../srcdir/gcc/../mkinstalldirs po
: --statistics -o po/zh_TW.gmo ../../srcdir/gcc/po/zh_TW.po
g++ -c  -DGCC_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/include\" -DFIXED_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/include-fixed\" -DGPLUSPLUS_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../include/c++/4.7.0\" -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=0 -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../include/c++/4.7.0/x86_64-apple-darwin11.4.0\" -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../include/c++/4.7.0/backward\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../x86_64-apple-darwin11.4.0/sys-include\" -DTOOL_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../x86_64-apple-darwin11.4.0/include\" -DNATIVE_SYSTEM_HEADER_DIR=\"/usr/include\" -DPREFIX=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/\" -DSTANDARD_EXEC_PREFIX=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/\"  -DBASEVER="\"4.7.0\"" -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../srcdir/gcc -I../../srcdir/gcc/. -I../../srcdir/gcc/../include -I../../srcdir/gcc/../libcpp/include -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/objdir/./gmp -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/srcdir/gmp -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/objdir/./mpfr -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/srcdir/mpfr -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/srcdir/mpc/src  -I../../srcdir/gcc/../libdecnumber -I../../srcdir/gcc/../libdecnumber/dpd -I../libdecnumber    ../../srcdir/gcc/cppbuiltin.c -o cppbuiltin.o
cc1plus: error: unrecognized command line option "-Wno-narrowing"
make[2]: *** [cppbuiltin.o] Error 1
make[1]: *** [install-gcc] Error 2
make: *** [install] Error 2

The [lang].install-common from my front end makefile is:
gsc.install-common: installdirs
        -if [ -f sc1$(exeext) ] ; then \
          -rm -f $(DESTDIR)$(bindir)/$(SCC_INSTALL_NAME)$(exeext)
          $(INSTALL_PROGRAM) scc$(exeext) $(DESTDIR)$(bindir)/$(SCC_INSTALL_NAME)$(exeext)
          chmod a+x $(DESTDIR)$(bindir)/$(SCC_INSTALL_NAME)$(exeext); \
          if [ -f scc-cross$(exeext) ] ; then \
            if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
              rm -f $(DESTDIR)$(gcc_tooldir)/bin/scc$(exeext); \
              $(INSTALL_PROGRAM) scc-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/scc$(exeext); \
            else true; fi; \
          else \
            rm -f $(DESTDIR)$(bindir)/$(SCC_TARGET_INSTALL_NAME)$(exeext); \
            $(LN) $(DESTDIR)$(bindir)/$(SCC_INSTALL_NAME)$(exeext) $(DESTDIR)$(bindir)/$(SCC_TARGET_INSTALL_NAME)$(exeext); \
          fi ; \
        fi

which is taken from the makefile in gcc/fortran. I'm not sure what I've changed that causes my 'make install' to fail but if anyone has any ideas I would be greatly appreciative. Also, if there is any information that may be relevant I am happy to provide it.

Cheers,
Josh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Building a custom front end on x86_64-apple-darwin11.4.0
  2012-06-26 12:15 Building a custom front end on x86_64-apple-darwin11.4.0 Josh Reese
@ 2012-06-27  5:41 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2012-06-27  5:41 UTC (permalink / raw)
  To: Josh Reese; +Cc: gcc-help

Josh Reese <jreeseue@gmail.com> writes:

> 13:03@legolas:.+gcc4.7.0/objdir$ make install

> g++ -c  -DGCC_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/include\" -DFIXED_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/include-fixed\" -DGPLUSPLUS_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../include/c++/4.7.0\" -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=0 -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../include/c++/4.7.0/x86_64-apple-darwin11.4.0\" -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../include/c++/4.7.0/backward\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../x86_64-apple-darwin11.4.0/sys-include\" -DTOOL_INCLUDE_DIR=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/x86_64-apple-darwin11.4.0/4.7.0/../../../../x86_64-apple-darwin11.4.0/include\" -DNATIVE_SYSTEM_HEADER_DIR=\"/usr/include\" -DPREFIX=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/\" -DSTANDARD_EXEC_PREFIX=\"/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/local/lib/gcc/\"  -DBASEVER="\"4.7.0\"" -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../srcdir/gcc -I../../srcdir/gcc/. -I../../srcdir/gcc/../include -I../../srcdir/gcc/../libcpp/include -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/objdir/./gmp -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/srcdir/gmp -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/objdir/./mpfr -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/srcdir/mpfr -I/Users/jreese/Documents/school/edinburgh/project/builds/gsc-gcc4.7.0/srcdir/mpc/src  -I../../srcdir/gcc/../libdecnumber -I../../srcdir/gcc/../libdecnumber/dpd -I../libdecnumber    ../../srcdir/gcc/cppbuiltin.c -o cppbuiltin.o
> cc1plus: error: unrecognized command line option "-Wno-narrowing"

make install should not normally run the compiler (I assume you ran make
before running make install).  My first guess would be some sort of
timestamp confusion.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-27  5:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26 12:15 Building a custom front end on x86_64-apple-darwin11.4.0 Josh Reese
2012-06-27  5:41 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).