Hi All,
I am trying to compile valgrind for mips, using:
./autogen.sh
./configure --host=mipsel-linux-gnu --prefix=/tmp CFLAGS="-mips32r2"
CC=mips-linux-uclibc-gcc CXX=mips-linux-uclibc-g++
Issue-1:
Got below error:
mips-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include
-I../include -I../VEX/pub -I../VEX/pub -DVGA_mips32=1 -DVGO_linux=1
-DVGP_mips32_linux=1 -DVGPV_mips32_linux_vanilla=1 -Ipriv -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
-Wbad-function-cast -fstrict-aliasing -mips32r2 -MT
priv/libvex_mips32_linux_a-guest_s390_toIR.o -MD -MP -MF
priv/.deps/libvex_mips32_linux_a-guest_s390_toIR.Tpo -c -o
priv/libvex_mips32_linux_a-guest_s390_toIR.o `test -f
'priv/guest_s390_toIR.c' || echo './'`priv/guest_s390_toIR.c
mv -f priv/.deps/libvex_mips32_linux_a-guest_s390_toIR.Tpo
priv/.deps/libvex_mips32_linux_a-guest_s390_toIR.Po
mips-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include
-I../include -I../VEX/pub -I../VEX/pub -DVGA_mips32=1 -DVGO_linux=1
-DVGP_mips32_linux=1 -DVGPV_mips32_linux_vanilla=1 -Ipriv -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
-Wbad-function-cast -fstrict-aliasing -mips32r2 -MT
priv/libvex_mips32_linux_a-guest_mips_helpers.o -MD -MP -MF
priv/.deps/libvex_mips32_linux_a-guest_mips_helpers.Tpo -c -o
priv/libvex_mips32_linux_a-guest_mips_helpers.o `test -f
'priv/guest_mips_helpers.c' || echo './'`priv/guest_mips_helpers.c
priv/guest_mips_helpers.c: In function 'mips_dirtyhelper_rdhwr':
priv/guest_mips_helpers.c:439: error: expected string literal before ')'
token
priv/guest_mips_helpers.c:443: error: expected string literal before ')'
token
priv/guest_mips_helpers.c:447: error: expected string literal before ')'
token
priv/guest_mips_helpers.c:451: error: expected string literal before ')'
token
priv/guest_mips_helpers.c:455: error: expected string literal before ')'
token
I disabled it using "#if !defined(__mips__)" at vim
VEX/priv/guest_mips_helpers.c +439.
Though don't know it's impact.
Issue-2:
Later compilation hanged at:
mips-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include
-I../include -I../VEX/pub -I../VEX/pub -DVGA_mips32=1 -DVGO_linux=1
-DVGP_mips32_linux=1 -DVGPV_mips32_linux_vanilla=1 -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 --param inline-unit-growth=900 -O2
-Wextra -Wformat-nonliteral -Wswitch-enum -Wno-inline -Wno-unused-parameter
-mips32r2 -MT drd_mips32_linux-drd_clientreq.o -MD -MP -MF
.deps/drd_mips32_linux-drd_clientreq.Tpo -c -o
drd_mips32_linux-drd_clientreq.o `test -f 'drd_clientreq.c' || echo
'./'`drd_clientreq.c
drd_clientreq.c:78: warning: 'optimize' attribute directive ignored
It never came out, even after 30+ min.
Issue-3:
README.mips asks to pass " -mplt" with ./configure, if I use this it
fail with unrecognized option.
-Raghu
------------------------------------------------------------------------------
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