I'm running into an error compiling gcc in Sage 6.7 on OS X 10.10.3 with XCode 6.3.1. Here's the end of the build log (I can post the entire install log, if needed). Is Sage supposed to compile on OS X 10.10.3 with XCode 6.3.1? I saw some messages and trac tickets about compiling gcc in Sage on this platform from before 6.7, but it seemed like they were fixed.

Thanks,

Jason




[snip]
/usr/bin/clang++ -I../../src/libcpp -I. -I../../src/libcpp/../include -I../../src/libcpp/include -g -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../src/libcpp -I. -I../../src/libcpp/../include -I../../src/libcpp/include -c -o errors.o -MT errors.o -MMD -MP -MF .deps/errors.Tpo ../../src/libcpp/errors.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated /usr/bin/clang++ -I../../src/libcpp -I. -I../../src/libcpp/../include -I../../src/libcpp/include -g -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../src/libcpp -I. -I../../src/libcpp/../include -I../../src/libcpp/include -c -o directives-only.o -MT directives-only.o -MMD -MP -MF .deps/directives-only.Tpo ../../src/libcpp/directives-only.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated /usr/bin/clang++ -I../../src/libcpp -I. -I../../src/libcpp/../include -I../../src/libcpp/include -g -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../src/libcpp -I. -I../../src/libcpp/../include -I../../src/libcpp/include -c -o directives.o -MT directives.o -MMD -MP -MF .deps/directives.Tpo ../../src/libcpp/directives.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
rm -f libcpp.a
ar cru libcpp.a charset.o directives.o directives-only.o errors.o expr.o files.o identifiers.o init.o lex.o line-map.o macro.o mkdeps.o pch.o symtab.o traditional.o
ranlib libcpp.a
TARGET_CPU_DEFAULT="" \
        HEADERS="auto-host.h ansidecl.h" DEFINES="" \
        /bin/sh ../../src/gcc/mkconfig.sh bconfig.h
/usr/bin/clang++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../src/gcc -I../../src/gcc/build -I../../src/gcc/../include -I../../src/gcc/../libcpp/include \
        -DBASEVER="\"4.9.2\"" -DDATESTAMP="\"\"" \
        -DREVISION="\"\"" \
        -DDEVPHASE="\"\"" -DPKGVERSION="\"(GCC) \"" \
-DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -o build/version.o ../../src/gcc/version.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated awk -f ../../src/gcc/opt-gather.awk ../../src/gcc/ada/gcc-interface/lang.opt ../../src/gcc/fortran/lang.opt ../../src/gcc/go/lang.opt ../../src/gcc/java/lang.opt ../../src/gcc/lto/lang.opt ../../src/gcc/c-family/c.opt ../../src/gcc/common.opt ../../src/gcc/config/fused-madd.opt ../../src/gcc/config/i386/i386.opt ../../src/gcc/config/darwin.opt > tmp-optionlist
/bin/sh ../../src/gcc/../move-if-change tmp-optionlist optionlist
echo timestamp > s-options
/bin/sh ../../src/gcc/../move-if-change tmp-gi.list gtyp-input.list
echo timestamp > s-gtyp-input
echo "#define BUILDING_GCC_MAJOR `echo 4.9.2 | sed -e 's/^\([0-9]*\).*$/\1/'`" > bversion.h echo "#define BUILDING_GCC_MINOR `echo 4.9.2 | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`" >> bversion.h echo "#define BUILDING_GCC_PATCHLEVEL `echo 4.9.2 | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`" >> bversion.h echo "#define BUILDING_GCC_VERSION (BUILDING_GCC_MAJOR * 1000 + BUILDING_GCC_MINOR)" >> bversion.h
echo timestamp > s-bversion
if test no = yes \
           || test -n ""; then \
          /bin/sh ../../src/gcc/genmultilib \
            "m32" \
            "i386" \
            "" \
            "" \
            "" \
            "" \
            "" \
            "" \
            "" \
            "" \
            "no" \
            > tmp-mlib.h; \
        else \
          /bin/sh ../../src/gcc/genmultilib '' '' '' '' '' '' '' '' \
            "" '' no \
            > tmp-mlib.h; \
        fi
/bin/sh ../../src/gcc/../move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
lsf="../../src/gcc/cp/lang-specs.h"; for f in $lsf; do \
            echo "#include \"$f\""; \
        done | sed 's|../../src/gcc/||' > tmp-specs.h
/bin/sh ../../src/gcc/../move-if-change tmp-specs.h specs.h
echo timestamp > s-specs
rm -f tmp-all-tree.def
echo '#include "tree.def"' > tmp-all-tree.def
echo 'END_OF_BASE_TREE_CODES' >> tmp-all-tree.def
echo '#include "c-family/c-common.def"' >> tmp-all-tree.def
ltf="../../src/gcc/ada/gcc-interface/ada-tree.def ../../src/gcc/cp/cp-tree.def ../../src/gcc/java/java-tree.def ../../src/gcc/objc/objc-tree.def"; for f in $ltf; do \
          echo "#include \"$f\""; \
        done | sed 's|../../src/gcc/||' >> tmp-all-tree.def
/bin/sh ../../src/gcc/../move-if-change tmp-all-tree.def all-tree.def
echo timestamp > s-alltree
awk -f ../../src/gcc/gen-pass-instances.awk \
          ../../src/gcc/passes.def > pass-instances.def
awk -f ../../src/gcc/config/i386/i386-builtin-types.awk ../../src/gcc/config/i386/i386-builtin-types.def > tmp-bt.inc
/bin/sh ../../src/gcc/../move-if-change tmp-bt.inc i386-builtin-types.inc
echo timestamp > s-i386-bt
echo "/usr/bin/clang++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -Wl,-no_pie " > checksum-options.tmp \
        && ../../src/gcc/../move-if-change checksum-options.tmp checksum-options
/usr/bin/clang++ -c -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/Users/grout/sage-trees/sage/local/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/Users/grout/sage-trees/sage/local/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.9.2\" -DDEFAULT_TARGET_MACHINE=\"x86_64-apple-darwin14.3.0\" -DSTANDARD_BINDIR_PREFIX=\"/Users/grout/sage-trees/sage/local/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\"" -DTARGET_MACHINE=\"x86_64-apple-darwin14.3.0\" -DPERSONALITY=\"ar\" -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include -I/Users/grout/sage-trees/sage/local/include -I/Users/grout/sage-trees/sage/local/include -I/Users/grout/sage-trees/sage/local/include -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd -I../libdecnumber -I../../src/gcc/../libbacktrace -o gcc-ar.o -MT gcc-ar.o -MMD -MP -MF ./.deps/gcc-ar.TPo ../../src/gcc/gcc-ar.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
In file included from ../../src/gcc/gcc-ar.c:22:
../../src/gcc/system.h:506:20: error: functions that differ only in their return type cannot be overloaded
extern const char *strsignal (int);
             ~~~~~~^
/usr/include/string.h:134:7: note: previous declaration is here
char    *strsignal(int sig);
~~~~~~~~~^
In file included from ../../src/gcc/gcc-ar.c:22:
In file included from ../../src/gcc/system.h:1064:
../../src/gcc/hwint.h:244:12: error: use of undeclared identifier 'CHAR_BIT'
    return HOST_BITS_PER_WIDE_INT;
           ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/hwint.h:258:12: error: use of undeclared identifier 'CHAR_BIT'
    return HOST_BITS_PER_WIDE_INT;
           ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/hwint.h:295:10: error: use of undeclared identifier 'CHAR_BIT'
  return HOST_BITS_PER_WIDE_INT - 1 - clz_hwi (x);
         ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/hwint.h:328:15: error: use of undeclared identifier 'CHAR_BIT'
  if (prec == HOST_BITS_PER_WIDE_INT)
              ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/hwint.h:332:35: error: use of undeclared identifier 'CHAR_BIT'
      gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT);
                                  ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/system.h:703:49: note: expanded from macro 'gcc_checking_assert'
#define gcc_checking_assert(EXPR) ((void)(0 && (EXPR)))
                                                ^
In file included from ../../src/gcc/gcc-ar.c:22:
In file included from ../../src/gcc/system.h:1064:
../../src/gcc/hwint.h:333:19: error: use of undeclared identifier 'CHAR_BIT'
      int shift = HOST_BITS_PER_WIDE_INT - prec;
                  ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/hwint.h:342:15: error: use of undeclared identifier 'CHAR_BIT'
  if (prec == HOST_BITS_PER_WIDE_INT)
              ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/hwint.h:346:35: error: use of undeclared identifier 'CHAR_BIT'
      gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT);
                                  ^
../../src/gcc/hwint.h:60:35: note: expanded from macro 'HOST_BITS_PER_WIDE_INT'
#   define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
                                  ^
../../src/gcc/hwint.h:16:30: note: expanded from macro 'HOST_BITS_PER_LONG'
#define HOST_BITS_PER_LONG  (CHAR_BIT * SIZEOF_LONG)
                             ^
../../src/gcc/system.h:703:49: note: expanded from macro 'gcc_checking_assert'
#define gcc_checking_assert(EXPR) ((void)(0 && (EXPR)))
                                                ^
../../src/gcc/gcc-ar.c:139:39: error: use of undeclared identifier 'LTOPLUGINSONAME'
  plugin = find_a_file (&target_path, LTOPLUGINSONAME, R_OK);
                                      ^
../../src/gcc/gcc-ar.c:142:64: error: use of undeclared identifier 'LTOPLUGINSONAME' fprintf (stderr, "%s: Cannot find plugin '%s'\n", av[0], LTOPLUGINSONAME);
                                                               ^
11 errors generated.
make[6]: *** [gcc-ar.o] Error 1
make[5]: *** [all-stage1-gcc] Error 2
make[4]: *** [stage1-bubble] Error 2
make[3]: *** [all] Error 2

real    1m38.459s
user    1m8.853s
sys     0m53.070s
************************************************************************
Error installing package gcc-4.9.2.p1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /Users/grout/sage-trees/sage/logs/pkgs/gcc-4.9.2.p1.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Users/grout/sage-trees/sage/local/var/tmp/sage/build/gcc-4.9.2.p1 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/Users/grout/sage-trees/sage/local/var/tmp/sage/build/gcc-4.9.2.p1' && '/Users/grout/sage-trees/sage/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
make[2]: *** [/Users/grout/sage-trees/sage/local/var/lib/sage/installed/gcc-4.9.2.p1] Error 1
make[2]: INTERNAL: Exiting with 7 jobserver tokens available; should be 6!
make[1]: *** [all] Error 2

real    6m22.425s
user    4m55.192s
sys     3m8.392s
***************************************************************
Error building Sage.

The following package(s) may have failed to build:

package: gcc-4.9.2.p1
log file: /Users/grout/sage-trees/sage/logs/pkgs/gcc-4.9.2.p1.log
build directory: /Users/grout/sage-trees/sage/local/var/tmp/sage/build/gcc-4.9.2.p1

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.



--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to