Hello Ivo,
I attempted a fresh hg checkout and build of valgrind-solaris, ran “bash
autogen.sh” ./configure CC=“gcc –m64” CXX=“g++ -m64” and gmake, but it died
down in VEX in assembly:
gcc -m64 -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -I../VEX/pub
-DVGA_sparcv9=1 -DVGO_solaris=1 -DVGP_sparcv9_solaris=1
-DVGPV_sparcv9_solaris_vanilla=1 -Ipriv -m64 -O2 -g -std=gnu99 -Wall
-Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes
-Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings -Wempty-body
-Wformat -Wformat-security -Wignored-qualifiers -Wmissing-parameter-type
-Wold-style-declaration -fno-stack-protector -fno-strict-aliasing -fno-builtin
-mcpu=niagara -Wbad-function-cast -fstrict-aliasing -MT
priv/libvex_sparcv9_solaris_a-guest_sparcv9_helpers_crypto.o -MD -MP -MF
priv/.deps/libvex_sparcv9_solaris_a-guest_sparcv9_helpers_crypto.Tpo -c -o
priv/libvex_sparcv9_solaris_a-guest_sparcv9_helpers_crypto.o `test -f
'priv/guest_sparcv9_helpers_crypto.c' || echo
'./'`priv/guest_sparcv9_helpers_crypto.c
/usr/bin/as: "/var/tmp//ccyxaWLp.s", line 14: error: cannot use SPARC4
instructions in a non-SPARC4 target binary
gmake[3]: *** [priv/libvex_sparcv9_solaris_a-guest_sparcv9_helpers_crypto.o]
Error 1
gmake[3]: Leaving directory `/devlocal/robb/valgrind-solaris/VEX'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/devlocal/robb/valgrind-solaris/VEX'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/devlocal/robb/valgrind-solaris'
gmake: *** [all] Error 2
robb@mars:/devlocal/robb/valgrind-solaris$head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Valgrind configure 3.12.0.SVN, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure CC=gcc -m64 CXX=g++ -m64
## --------- ##
## Platform. ##
robb@mars:/devlocal/robb/valgrind-solaris$hg status
? VEX/priv/.deps/libvex_sparcv9_solaris_a-guest_sparcv9_helpers_crypto.Tpo
robb@mars:/devlocal/robb/valgrind-solaris$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/lto-wrapper
Target: sparc-sun-solaris2.11
Configured with:
/export/home/hudson/workspace/nightly-update/build/sparc/components/gcc48/gcc-4.8.2/configure
CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.8
--mandir=/usr/gcc/4.8/share/man --bindir=/usr/gcc/4.8/bin
--libdir=/usr/gcc/4.8/lib --sbindir=/usr/gcc/4.8/sbin
--infodir=/usr/gcc/4.8/share/info --libexecdir=/usr/gcc/4.8/lib
--enable-languages=c,c++,fortran,objc --enable-shared
--with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr
--without-gnu-ld --with-ld=/usr/bin/ld --without-gnu-as --with-as=/usr/bin/as
CFLAGS='-g -O2 -mtune=ultrasparc -mcpu=ultrasparc -mno-unaligned-doubles'
CXXFLAGS='-g -O2 -mtune=ultrasparc -mcpu=ultrasparc -mno-unaligned-doubles'
Thread model: posix
gcc version 4.8.2 (GCC)
robb@mars:/devlocal/robb/valgrind-solaris$which gcc
/usr/bin/gcc
robb@mars:/devlocal/robb/valgrind-solaris$uname -a
SunOS mars 5.11 11.3 sun4u sparc SUNW,SPARC-Enterprise
robb@mars:/devlocal/robb/valgrind-solaris$hg identify
8917905ab492 tip
robb@mars:/devlocal/robb/valgrind-solaris$hg update
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
robb@mars:/devlocal/robb/valgrind-solaris$psrinfo -v
Status of virtual processor 32 as of: 10/19/2016 12:37:28
on-line since 07/12/2016 20:49:09.
The sparcv9 processor operates at 2400 MHz,
and has a sparcv9 floating point processor.
Do I need some specific architecture or code generation flags to build on
Solaris 11 / SPARC or the GNU assembler ?
Thanks,
Robert Boehne
From: Ivo Raisr <iv...@ivosh.net<mailto:iv...@ivosh.net>>
Date: Wednesday, July 27, 2016 at 1:08 PM
To: Rob Boehne <r...@datalogics.com<mailto:r...@datalogics.com>>
Cc:
"valgrind-users@lists.sourceforge.net<mailto:valgrind-users@lists.sourceforge.net>"
<valgrind-users@lists.sourceforge.net<mailto:valgrind-users@lists.sourceforge.net>>
Subject: Re: [Valgrind-users] Sparc port status
2016-07-26 15:53 GMT+02:00 Rob Boehne
<r...@datalogics.com<mailto:r...@datalogics.com>>:
As I’ve found valgrind quite useful on x86/Linux for many years, I was very
excited to see a project to support Solaris Sparc, and I’d love to have this
available, as I maintain a large, old codebase with a pool allocator (Electric
Fence doesn’t deal well with it, and isn’t useful for leak checking, or the
other things valgrind can do).
Where can I find information on how to build, what versions of Solaris are
supported on what hardware, and what works?
I’m happy to contribute to the effort as well.
Hello Robert,
Thank you for your interest in sparcv9/Solaris port.
The port currently lives here: https://bitbucket.org/iraisr/valgrind-solaris
and is also linked from http://valgrind.org/info/platforms.html
It is under active development and still far from complete.
As with x86+amd64/Solaris, we aim at Solaris 11 and illumos (or higher).
We have no intention to spend effort on Solaris 10 as this OS is now over 10
years old and will become unsupported soon.
With sparcv9/Solaris, we obviously target 64-bit programs. Area of 32-bit
programs with sparcv8+ is quite murky.
We might add sparv8+ later, when sparcv9 is largely finished.
We aim to support all sparcv9 hardware, that is starting from T1 up to
currently T7, ... and their M-series equivalents.
Currently we are implementing Oracle Sparc Architecture 2015 [1] features
(which correspond to T7/M7).
For instructions how to build please follow README.solaris and generic README.
We actively develop on Solaris 12, and Solaris 11 should also work ok.
Any contributions are welcome. We maintain a list of issues:
https://bitbucket.org/iraisr/valgrind-solaris/issues?status=new&status=open
and you are free to take any. The main development work is now focused on
fixing last few failing tests
under none/tests (only 10 failing out of 474 total) and then we will focus on
enabling memcheck.
Happy Valgrind'ing!
I.
[1]
http://www.oracle.com/technetwork/server-storage/sun-sparc-enterprise/documentation/sparc-servers-documentation-163529.html
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users