[parsec-users] Fwd: Error: Architecture mismatch on "casa".

Manu Awasthi manu.awasthi at gmail.com
Sat Apr 4 13:15:10 EDT 2009


Hi Daniel,Try using "-mcpu=v9 -mtune=v9" in your CFLAGS and CXXFLAGS
(config/gcc.bldconf). Worked for me while compiling for a Linux/Sparc
platform.

-Manu


2009/4/4 Daniel Shteremberg <dshterem at fas.harvard.edu>

>
> Hello,
>
> I am trying to build parsec on a Niagara/Solaris 10 machine. When building
> raytrace I get the following error:
>
> /var/tmp//cczsH5Zb.s: Assembler messages:
> /var/tmp//cczsH5Zb.s:40: Error: Architecture mismatch on "casa".
> /var/tmp//cczsH5Zb.s:40:  (Requires v9|v9a|v9b; requested architecture is
> v8.)
>
> I am using gcc 3.4.3.
>
> Here is the error log for that section:
>
> [ 36%] Building CXX object RTTL/CMakeFiles/RTTL.dir/common/RTThread.o
> cd /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL &&
> /usr/sfw/bin/g++   -DTHIS_IS_CMAKE
> -I/mnt/data/parsec-2.0/bin/../pkgs/libs/mesa/inst/sparc-solaris.gcc/include
> -O3 -funroll-loops -fprefetch-loop-arrays -fpermissive -fno-exceptions
> -I/usr/sfw/include -DPARSEC_VERSION=2.0 -fexceptions -fno-strict-aliasing
> -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK
>  -I/mnt/data/parsec-2.0/pkgs/libs/mesa/inst/sparc-solaris.gcc/include
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/BVH
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/SG
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/LRT/include
> -I/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/LRT
>   -D__root__ -o CMakeFiles/RTTL.dir/common/RTThread.o -c
> /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common/RTThread.cxx
> /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common/RTThread.cxx:1:
> warning: -fprefetch-loop-arrays not supported for this target (try -march
> switches)
> In file included from
> /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common/RTThread.cxx:1:
> /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common/RTThread.hxx:
> In function `int atomic_add(volatile atomic_t*, int)':
> /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common/RTThread.hxx:21:
> warning: invalid conversion from `volatile atomic_t*' to `volatile
> uint32_t*'
> /mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc/RTTL/common/RTThread.hxx:21:
> warning:   initializing argument 1 of `int atomic_cmpset_32(volatile
> uint32_t*, uint32_t, uint32_t)'
> /var/tmp//cczsH5Zb.s: Assembler messages:
> /var/tmp//cczsH5Zb.s:40: Error: Architecture mismatch on "casa".
> /var/tmp//cczsH5Zb.s:40:  (Requires v9|v9a|v9b; requested architecture is
> v8.)
> gmake[2]: *** [RTTL/CMakeFiles/RTTL.dir/common/RTThread.o] Error 1
> gmake[2]: Leaving directory
> `/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc'
> gmake[1]: *** [RTTL/CMakeFiles/RTTL.dir/all] Error 2
> gmake[1]: Leaving directory
> `/mnt/data/parsec-2.0/pkgs/apps/raytrace/obj/sparc-solaris.gcc'
> gmake: *** [all] Error 2
> [PARSEC] Error: 'env
> CXXFLAGS=-I/mnt/data/parsec-2.0/bin/../pkgs/libs/mesa/inst/sparc-solaris.gcc/include
> -O3 -funroll-loops -fprefetch-loop-arrays -fpermissive -fno-exceptions
> -I/usr/sfw/include -DPARSEC_VERSION=2.0 -fexceptions -fno-strict-aliasing
> -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK
> LDFLAGS=-L/mnt/data/parsec-2.0/bin/../pkgs/libs/mesa/inst/sparc-solaris.gcc/lib
> -L/usr/sfw/lib64 -L/usr/sfw/lib -L/usr/sfw/lib LIBS= -lXmu -lX11 -lGL -lGLU
> -lpthread /usr/sfw/bin/gmake' failed.
>
> Has anybody seen this before? Any ideas on how to fix this?
>
> Thanks for your help!
>
> -Daniel Shteremberg
>
>
> _______________________________________________
> parsec-users mailing list
> parsec-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20090404/a766c42a/attachment.html>


More information about the parsec-users mailing list