[Nestedvm] building nestedvm with gcc 4.x

Charles Oliver Nutter headius at headius.com
Thu May 6 16:11:23 EDT 2010


Well I got somewhere on OS X. I think I ran into this before but I
don't remember what I did...

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/Users/headius/projects/nestedvm.ibex.org/upstream/build/gcc-obj/gcc/xgcc
-B/Users/headius/projects/nestedvm.ibex.org/upstream/build/gcc-obj/gcc/
-B/Users/headius/projects/nestedvm.ibex.org/upstream/install/mips-unknown-elf/bin/
-B/Users/headius/projects/nestedvm.ibex.org/upstream/install/mips-unknown-elf/lib/
-isystem /Users/headius/projects/nestedvm.ibex.org/upstream/install/mips-unknown-elf/include
-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -G 0 -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../gcc-3.3.6/gcc -I../../gcc-3.3.6/gcc/.
-I../../gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include
-DL_m16addsf3 -xassembler-with-cpp -c
../../gcc-3.3.6/gcc/config/mips/mips16.S -o libgcc/./_m16addsf3.o
FATAL:/usr/bin/../libexec/gcc/darwin/x86_64/as: I don't understand 'G' flag!
make[4]: *** [libgcc/./_m16addsf3.o] Error 1
make[3]: *** [stmp-multilib] Error 2
make[2]: *** [all-gcc] Error 2
make[1]: *** [tasks/build_gcc] Error 2
make: *** [upstream/tasks/build_gcc_step2] Error 2


On Thu, May 6, 2010 at 2:50 PM, Simmons, Aaron
<asimmons at rosettastone.com> wrote:
>>Wow, this sounds like a great find.
>>
>>What system are you on? Maybe you can post updated instructions (w/
>>patch) for getting the cross-compiler built?
>
> The patch works fine on Ubuntu 9.10 with gcc-4.2, though I misspoke when I said 4.x as it doesn't work with gcc-4.4.  I haven't tried it with gcc-4.3 yet.  While not the default on newer Ubuntu systems, gcc-4.2 is at least available.  :)
>
> I'm currently blocked from building nestedvm on Mac as darcs is broken in macports (!), but I'm sure the patch will work there also with gcc-4.2 (which is the default on 10.6).
>
> Incidentally, I figured out how to itegrate this patch into nestedvm's build.  Attached to this email is a new patch for nestedvm itself.  To make it work do this:
>
>    1) download the patch to your home dir (nestedvm.new-gcc-fix.patch)
>    2) git clone http://nestedvm.ibex.org/.git/
>    3) cd nestedvm.ibex.org
>    4) patch -p0 ~/nestedvm.new-gcc-fix.patch
>    5) make cxxtest CC=gcc-4.2
>    6) wait
>
>
> Let me know how it goes,
> aaron
>
> _______________________________________________
> Nestedvm mailing list
> Nestedvm at lists.hcoop.net
> https://lists.hcoop.net/listinfo/nestedvm
>
>



More information about the Nestedvm mailing list