Koji Ishida wrote:

>I'm building qemu-0.8.2-slaris on sparc(snv_47 on SunFireV440).
>But, I haven't succeeded to compile it yet, because of the 
>preferred-stack-boundary 
>gcc's option.
>
>I guess that option shouldn't be used sparc (only x86-64).
>If somebody have some suggestions, please let me know.
>  
>

That's true.
Anyways, it would have been corrected in two days.
I'm bringing out the SUNWqemu and CSWqemu pkgs for sparc (will be mostly
identical, except for paths).
Currently am I busy with a complete overhaul of the Solaris-qemu versus
stock-qemu global patch.
Fixing certain other functionality.

______________________________________________
______________________________________________

Here is your quick solution guide:

#0.) Change cpu-all.h:974 from

#elif defined(__sparc_v9__)

to

#elif defined(__sparc__) || (__sparc_v8plus__) || (__sparc_v9__)

[cpu_get_real_ticks would be an undefined symbol otherwise, rd %%tick is
ultrasparc asm only, but sparcv8plus _is_ ultrasparc and so it can be
used for sparcv8plus too, to implement cpu_get_real_ticks]

#1.) Do not use "--force-64bit" at all on sparcv9, there is no need for it.
(you will build for the current default of sparcv8plus, I'm going to
change the default back to v8, though this requires some changes in vl.c
and cpu-all.h)
______________________________________________
______________________________________________

If something doesn't work as expected, please come back to me.

--
M.

>[error log]
>-------------------------------------------------------------------
># ./configure --install=/usr/ucb/install --prefix=/opt/qemu --force-64bit
>Forcing 64-bit mode, changing CPU from sparc to sparc64
>Install prefix    /opt/qemu
>BIOS directory    /opt/qemu/share/qemu
>binary directory  /opt/qemu/bin
>Manual directory  /opt/qemu/share/man
>ELF interp prefix /usr/gnemul/qemu-%M
>Source path       /var/tmp/qemu-0.8.2-solaris
>C compiler        gcc
>Host C compiler   gcc
>make              gmake
>install           /usr/ucb/install
>host CPU          sparc64
>host big endian   yes
>target list       i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu 
>mips-softmmu mipsel-softmmu arm-softmmu
>gprof enabled     no
>profiler          no
>static build      no
>SDL support       yes
>SDL static link   no
>mingw32 support   no
>Adlib support     no
>CoreAudio support no
>ALSA support      no
>DSound support    no
>FMOD support      no 
>kqemu support     no
>Documentation     no
># gmake  
>gcc -DQEMU_TOOL -m64 -mpreferred-stack-boundary=4 -fomit-frame-pointer -Wall 
>-O2 -g -fno-strict-aliasing -I. -m64 -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
>-D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.c block-cow.c block-qcow.c 
>aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c 
>block-vvfat.c -lz 
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>cc1: error: invalid option `preferred-stack-boundary=4'
>gmake: *** [qemu-img] Error 1
># 
>-------------------------------------------------------------------
>
>[part of configure file]
>-------------------------------------------------------------------
>   248    --force-64bit)
>   249        force_64bit="yes"
>   250        CFLAGS="$CFLAGS -m64 -mpreferred-stack-boundary=4 
> -fomit-frame-poi
>nter"
>   251        LDFLAGS="$LDFLAGS -m64"
>   252        force_64bitflags="-m64"
>   253        case "$cpu" in
>   254           i386)
>   255             echo "Forcing 64-bit mode, changing CPU from $cpu to x86_64"
>   256             cpu="x86_64"
>   257           ;;
>   258           sparc*)
>   259             echo "Forcing 64-bit mode, changing CPU from $cpu to 
> sparc64"
>   260             cpu="sparc64"
>   261           ;;
>   262           *)
>   263             echo "Forcing 64-bit mode"
>   264           ;;
>   265        esac
>   266    ;;
>-------------------------------------------------------------------
> 
> 
>This message posted from opensolaris.org
>_______________________________________________
>opensolaris-discuss mailing list
>[email protected]
>
>
>  
>

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to