Hi Aaron,<div><br></div><div>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. </div>

<div><br></div><div>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</div><div><br></div><div>These instructions were helpful :</div>

<div><br></div><div><a href="http://www.linuxfromscratch.org/blfs/view/6.3/general/gcc3.html">http://www.linuxfromscratch.org/blfs/view/6.3/general/gcc3.html</a></div><div><br></div><div>Best,</div><div><br></div><div>Alex<br>

<br><div class="gmail_quote">On Thu, Apr 29, 2010 at 12:39 AM, Simmons, Aaron <span dir="ltr">&lt;<a href="mailto:asimmons@rosettastone.com">asimmons@rosettastone.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">










<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal">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:</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">            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 \</p>

<p class="MsoNormal">                    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</p>

<p class="MsoNormal">            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</p>

<p class="MsoNormal">            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 \</p>

<p class="MsoNormal">                      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</p>

<p class="MsoNormal">            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</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c: In function
‘ffecom_char_args_x_’:</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c:1938: warning:
pointer targets in passing argument 2 of ‘build_string’ differ in
signedness</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c: In function
‘ffecom_constantunion’:</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c:10528: warning:
pointer targets in passing argument 2 of ‘build_string’ differ in
signedness</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c:10549: warning:
pointer targets in passing argument 2 of ‘build_string’ differ in
signedness</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c: At top level:</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.c:11080: error:
conflicting types for ‘ffecom_gfrt_basictype’</p>

<p class="MsoNormal">            ../../gcc-3.3.6/gcc/f/com.h:236: error: previous
declaration of ‘ffecom_gfrt_basictype’ was here</p>

<p class="MsoNormal">            make[3]: *** [f/com.o] Error 1</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
Nestedvm mailing list<br>
<a href="mailto:Nestedvm@lists.hcoop.net">Nestedvm@lists.hcoop.net</a><br>
<a href="https://lists.hcoop.net/listinfo/nestedvm" target="_blank">https://lists.hcoop.net/listinfo/nestedvm</a><br>
<br></blockquote></div><br></div>