This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/61024] New: nios2-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61024

            Bug ID: 61024
           Summary: nios2-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++
                    (clang).
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chris at contemporary dot net.au

Building gcc for the nios2-rtems4.11 on FreeBSD 10 using the standard c++
compiler fails with ...

/usr/bin/c++ -O2 -pipe
-I/mnt/data0/chrisj/rtems/rsb/rtems-source-builder.master/rtems/build/tmp/sb-chrisj/4.11/rtems-nios2/home/chrisj/development/rtems/4.11/include
 -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE
-I. -Ibuild -I../../gcc-4.9.0/gcc -I../../gcc-4.9.0/gcc/build
-I../../gcc-4.9.0/gcc/../include  -I../../gcc-4.9.0/gcc/../libcpp/include  \
        -o build/gencondmd.o build/gencondmd.c
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
In file included from build/gencondmd.c:34:
../../gcc-4.9.0/gcc/output.h:131:6: warning: format attribute argument not
supported: asm_fprintf [-Wignored-attributes]
     ATTRIBUTE_ASM_FPRINTF(2, 3);
     ^
../../gcc-4.9.0/gcc/output.h:121:53: note: expanded from macro
'ATTRIBUTE_ASM_FPRINTF'
#define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__
(__asm_fprintf__, m, n))) ATTRIBUTE_NONNULL(m)
                                                    ^
../../gcc-4.9.0/gcc/config/nios2/nios2.md:1024:2: error: use of undeclared
identifier 'TARGET_LINUX_ABI'
(TARGET_LINUX_ABI)
 ^
../../gcc-4.9.0/gcc/config/nios2/nios2.md:1024:2: error: use of undeclared
identifier 'TARGET_LINUX_ABI'
(TARGET_LINUX_ABI)
 ^
../../gcc-4.9.0/gcc/config/nios2/nios2.md:532:19: error: invalid application of
'sizeof' to an incomplete type 'const struct c_test []'
  for (i = 0; i < ARRAY_SIZE (insn_conditions); i++)
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc-4.9.0/gcc/../include/libiberty.h:647:31: note: expanded from macro
'ARRAY_SIZE'
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
                              ^~~
1 warning and 3 errors generated.

Configure command line is ...

+ ../gcc-4.9.0/configure --prefix=/home/chrisj/development/rtems/4.11
--bindir=/home/chrisj/development/rtems/4.11/bin
--exec_prefix=/home/chrisj/development/rtems/4.11
--includedir=/home/chrisj/development/rtems/4.11/include
--libdir=/home/chrisj/development/rtems/4.11/lib
--libexecdir=/home/chrisj/development/rtems/4.11/libexec
--mandir=/home/chrisj/development/rtems/4.11/share/man
--infodir=/home/chrisj/development/rtems/4.11/share/info
--datadir=/home/chrisj/development/rtems/4.11/share --build=x86_64-freebsd10.0
--host=x86_64-freebsd10.0 --target=nios2-rtems4.11 --disable-libstdcxx-pch
--with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib
--disable-nls --without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --disable-lto
--enable-newlib-io-c99-formats --enable-newlib-iconv
--enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258
--enable-threads --disable-plugin --enable-languages=c,c++

$ uname -a
FreeBSD sync.rtems.org 10.0-STABLE FreeBSD 10.0-STABLE #0 ed891fe(stable/10):
Fri Apr 25 18:18:40 UTC 2014    
amar@build1.rtems.org:/usr/obj/usr/src/sys/build1  amd64


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]