Hello,
While compiling 15.05 for Octeon I ran into these errors. I am suspecting I missing some host libraries. Appreciates any clues to solve this.
Also I was able to successfully compile for 14.04.
x86_64-linux-gnu-gcc -O2 -I/media/venkat/data_xps/work/openwrt/openwrt_15_05.git/staging_dir/host/include -I/media/venkat/data_xps/work/op
enwrt/openwrt_15_05.git/staging_dir/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-pro
totypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-de
finition -Wc++-compat -DHAVE_CONFIG_H -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-inf
o.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-g
implify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-p
rint.o c-family/c-semantics.o c-family/c-ada-spec.o \
cc1-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.
a ../libdecnumber/libdecnumber.a -lstdc++ -L/media/venkat/data_xps/work/openwrt/openwrt_15_05.git/staging_dir/host/lib -L/media/venkat/dat
a_xps/work/openwrt/openwrt_15_05.git/staging_dir/host/lib -L/media/venkat/data_xps/work/openwrt/openwrt_15_05.git/staging_dir/host/lib -lmpc
-lmpfr -lgmp -rdynamic -ldl -lstdc++ -L../zlib -lz
c-typeck.o: In function `c_common_type':
c-typeck.c:(.text+0x17): undefined reference to `global_trees'
c-typeck.c:(.text+0xa5): undefined reference to `build_type_attribute_variant'
c-typeck.c:(.text+0xb9): undefined reference to `build_type_attribute_variant'
c-typeck.c:(.text+0x1c3): undefined reference to `fancy_abort'
c-typeck.c:(.text+0x1f3): undefined reference to `fancy_abort'
c-typeck.c:(.text+0x272): undefined reference to `mode_class'
c-typeck.c:(.text+0x2d2): undefined reference to `global_trees'
c-typeck.c:(.text+0x363): undefined reference to `mode_fbit'
c-typeck.c:(.text+0x36b): undefined reference to `mode_ibit'
c-typeck.c:(.text+0x3d6): undefined reference to `mode_class'
c-typeck.c:(.text+0x3f1): undefined reference to `mode_class'
c-typeck.c:(.text+0x440): undefined reference to `global_trees'
c-typeck.c:(.text+0x460): undefined reference to `global_trees'
c-typeck.c:(.text+0x475): undefined reference to `global_trees'
c-typeck.c:(.text+0x4d3): undefined reference to `integer_types'
c-typeck.c:(.text+0x4f3): undefined reference to `integer_types'
c-typeck.c:(.text+0x50c): undefined reference to `integer_types'
c-typeck.c:(.text+0x525): undefined reference to `integer_types'
c-typeck.c:(.text+0x53e): undefined reference to `global_trees'
c-typeck.c:(.text+0x577): undefined reference to `global_trees'
c-typeck.c:(.text+0x5cf): undefined reference to `global_trees'
c-typeck.c:(.text+0x5fa): undefined reference to `mode_class'
Thanks,
Venkat