[Nestedvm] building c++ with nestedvm-2009-08-09 snapshot
Alexander Bertram
alex at bedatadriven.com
Thu Apr 29 03:17:48 EDT 2010
Hi Aaron,
Just encountered the problem building on a newer Ubuntu distro. Nestedvm
builds a toolchain based on gcc 3.3.6 and g++ 3.3.6 will not compile with
gcc-4.1, apparently because gcc-4.x is much stricter about enforcing certain
standards.
I was able to solve the problem by doing a full native build and install of
gcc 3.3.6 on the host, and the starting over with the nestedvm building
using gcc 3.3.6
These instructions were helpful :
http://www.linuxfromscratch.org/blfs/view/6.3/general/gcc3.html
Best,
Alex
On Thu, Apr 29, 2010 at 12:39 AM, Simmons, Aaron
<asimmons at rosettastone.com>wrote:
> I’m trying to build the nestedvm-2009-08-09 snapshot. I’m able to build
> the base system fine (make, make test) but building C++ (make cxxtest)
> fails:
>
>
>
> gcc-4.1 -g -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
>
> c-parse.o c-lang.o c-pretty-print.o attribs.o
> c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
> c-common.o c-opts.o c-format.o c-semantics.o c-objc-common.o c-dump.o
> libcpp.a main.o libbackend.a ../libiberty/libiberty.a
>
> gcc-4.1 -g -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long -DHAVE_CONFIG_H gcov.o intl.o version.o
> ../libiberty/libiberty.a -o gcov
>
> gcc-4.1 -g -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long -DHAVE_CONFIG_H -o cc1plus \
>
> cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o
> cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parse.o cp/ptree.o cp/rtti.o
> cp/spew.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o
> cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o
> cp/mangle.o cp/cp-lang.o attribs.o c-common.o c-format.o c-pragma.o
> c-semantics.o c-lex.o c-dump.o c-pretty-print.o c-opts.o main.o
> libbackend.a libcpp.a ../libiberty/libiberty.a
>
> gcc-4.1 -c -g -DIN_GCC -DCROSS_COMPILE -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -DHAVE_CONFIG_H -I. -If -I../../gcc-3.3.6/gcc -I../../gcc-3.3.6/gcc/f
> -I../../gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include
> ../../gcc-3.3.6/gcc/f/com.c -o f/com.o
>
> ../../gcc-3.3.6/gcc/f/com.c: In function ‘ffecom_char_args_x_’:
>
> ../../gcc-3.3.6/gcc/f/com.c:1938: warning: pointer targets in
> passing argument 2 of ‘build_string’ differ in signedness
>
> ../../gcc-3.3.6/gcc/f/com.c: In function
> ‘ffecom_constantunion’:
>
> ../../gcc-3.3.6/gcc/f/com.c:10528: warning: pointer targets in
> passing argument 2 of ‘build_string’ differ in signedness
>
> ../../gcc-3.3.6/gcc/f/com.c:10549: warning: pointer targets in
> passing argument 2 of ‘build_string’ differ in signedness
>
> ../../gcc-3.3.6/gcc/f/com.c: At top level:
>
> ../../gcc-3.3.6/gcc/f/com.c:11080: error: conflicting types for
> ‘ffecom_gfrt_basictype’
>
> ../../gcc-3.3.6/gcc/f/com.h:236: error: previous declaration of
> ‘ffecom_gfrt_basictype’ was here
>
> make[3]: *** [f/com.o] Error 1
>
>
>
>
>
> _______________________________________________
> Nestedvm mailing list
> Nestedvm at lists.hcoop.net
> https://lists.hcoop.net/listinfo/nestedvm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hcoop.net/pipermail/nestedvm/attachments/20100429/afef759b/attachment.htm
More information about the Nestedvm
mailing list