* Re: Insight can not get compiled under Solaris/sparc
@ 2011-02-23 8:39 Ruppert
0 siblings, 0 replies; 3+ messages in thread
From: Ruppert @ 2011-02-23 8:39 UTC (permalink / raw)
To: insight, kevin.h.li
Hi,
there is a simple workaround for this one:
>gcc -c -g -O2 -I. -I../../insight-6.8-1/gdb -I../../insight-6.8-1/gdb/config
-DLOCALEDIR="\"/home/ehailii/insight-host-6.8.1/tool/share/locale\""
-DHAVE_CONFIG_H -I../../insight-6.8-1/gdb/../include/opcode
-I../../insight-6.8-1/gdb/../readline/.. -I../bfd
-I../../insight-6.8-1/gdb/../bfd -I../../insight-6.8-1/gdb/../include
-I../libdecnumber -I../../insight-6.8-1/gdb/../libdecnumber -I./../intl
-DMI_OUT=1 -DGDBTK -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith
-Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror
-I../../insight-6.8-1/gdb/../libgui/src
-I/home/ehailii/insight-6.8-1/itcl/itcl/generic \
> -I/home/ehailii/insight-6.8-1/itcl/itk/generic \
>-I/home/ehailii/insight-6.8-1/tcl/generic
-I/home/ehailii/insight-6.8-1/tk/generic -I/usr/openwin/include \
> ../../insight-6.8-1/gdb/gdbtk/generic/gdbtk.c \
>
-DGDBTK_LIBRARY=\"/home/ehailii/insight-host-6.8.1/tool/share/insight1.0\"
-DSRC_DIR=\"/home/ehailii/insight-6.8-1/gdb\"
>In file included from /home/ehailii/insight-6.8-1/tk/generic/tk.h:96,
> from /home/ehailii/insight-6.8-1/itcl/itk/generic/itk.h:61,
> from ../../insight-6.8-1/gdb/gdbtk/generic/gdbtk.c:46:
>/usr/openwin/include/X11/Xlib.h:38: warning: ignoring #pragma ident
>*** Error code 1
Due to "-Werror", warnings are treated as errors here. This particular
warning, OTOH, is harmless, so it is safe to invoke configure with the
option "--enable-werror=no". This will make this particular error go away.
Regards
Dieter
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Insight can not get compiled under Solaris/sparc
2011-02-23 5:45 ` Kevin Li H
@ 2011-02-23 6:23 ` Kevin Li H
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Li H @ 2011-02-23 6:23 UTC (permalink / raw)
To: Kevin Li H, insight; +Cc: Gene Guo J, Yingjie Guo
The version of insight is 6.8.1.
Best Wishes
LiHai
-----Original Message-----
From: Kevin Li H
Sent: Wednesday, February 23, 2011 13:45
To: insight@sourceware.org
Cc: Gene Guo J; Yingjie Guo; Kevin Li H
Subject: Insight can not get compiled under Solaris/sparc
Hi all,
I am trying to build insight on Solaris 10 based on sparc, but I can not get it compiled successfully.
My enviroment is:
SunOS ecnshux2000 5.10 Generic_138888-03 sun4u sparc SUNW,SPARC-Enterprise
Gcc version:
gcc (GCC) 3.4.1
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Actually I met two problems:
1. I have to modify the source code of SourceCode/gdb/remote.c at line 2859. change "sprintf (rs->buf, "vAttach;%x", pid);" to "sprintf (rs->buf, "vAttach;%x",(unsigned int) pid);". Otherwise, it can not get compiled.
2. after fixing item 1 above, I still met the compiling error shown as following. I google it and I found some expert said "iirc wine doesn't work under solaris out of the box". Is it already a known issue? Refer http://www.winehq.org/pipermail/wine-users/2006-March/020686.html for details.
Great thanks!
BTW, I tried on linux/x86, it works.
gcc -c -g -O2 -I. -I../../insight-6.8-1/gdb -I../../insight-6.8-1/gdb/config -DLOCALEDIR="\"/home/ehailii/insight-host-6.8.1/tool/share/locale\"" -DHAVE_CONFIG_H -I../../insight-6.8-1/gdb/../include/opcode -I../../insight-6.8-1/gdb/../readline/.. -I../bfd -I../../insight-6.8-1/gdb/../bfd -I../../insight-6.8-1/gdb/../include -I../libdecnumber -I../../insight-6.8-1/gdb/../libdecnumber -I./../intl -DMI_OUT=1 -DGDBTK -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror -I../../insight-6.8-1/gdb/../libgui/src -I/home/ehailii/insight-6.8-1/itcl/itcl/generic \
-I/home/ehailii/insight-6.8-1/itcl/itk/generic \ -I/home/ehailii/insight-6.8-1/tcl/generic -I/home/ehailii/insight-6.8-1/tk/generic -I/usr/openwin/include \
../../insight-6.8-1/gdb/gdbtk/generic/gdbtk.c \
-DGDBTK_LIBRARY=\"/home/ehailii/insight-host-6.8.1/tool/share/insight1.0\" -DSRC_DIR=\"/home/ehailii/insight-6.8-1/gdb\"
In file included from /home/ehailii/insight-6.8-1/tk/generic/tk.h:96,
from /home/ehailii/insight-6.8-1/itcl/itk/generic/itk.h:61,
from ../../insight-6.8-1/gdb/gdbtk/generic/gdbtk.c:46:
/usr/openwin/include/X11/Xlib.h:38: warning: ignoring #pragma ident
*** Error code 1
make: Fatal error: Command failed for target `gdbtk.o'
Current working directory /home/ehailii/insight-host-6.8.1/gdb
*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd ../insight-6.8-1; ${PWDCMD-pwd}`; export s; \ FLEX="/home/ehailii/insight-6.8-1/missing flex"; export FLEX; LEX="lex"; export LEX; BISON="/home/ehailii/insight-6.8-1/missing bison"; export BISON; YACC="yacc"; export YACC; M4="m4"; export M4; MAKEINFO="/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000"; export MAKEINFO; CC="gcc"; export CC; CFLAGS="-g -O2"; export CFLAGS; CONFIG_SHELL="/bin/bash"; export CONFIG_SHELL; CXX="g++"; export CXX; CXXFLAGS="-g -O2"; export CXXFLAGS; AR="ar"; export AR; AS="as"; export AS; CC_FOR_BUILD="gcc"; export CC_FOR_BUILD; DLLTOOL="dlltool"; export DLLTOOL; LD="/usr/ccs/bin/ld"; export LD; LDFLAGS=""; export LDFLAGS; NM="nm"; export NM; RANLIB="ranlib"; export RANLIB; WINDRES="windres"; export WINDRES; WINDMC="windmc"; export WINDMC; OBJCOPY=""; export OBJCOPY; OBJDUMP="objdump"; export OBJDUMP; AR_FOR_TARGET="ar"; export AR_FOR_TARGET; AS_FOR_TARGET="as"; export AS_FOR_TARGET; GCC_FOR_TARGET=" "; export GCC_FOR_TARGET; LD_FOR_TARGET="/usr/ccs/bin/ld"; export LD_FOR_TARGET; NM_FOR_TARGET="nm"; export NM_FOR_TARGET; OBJDUMP_FOR_TARGET="objdump"; export OBJDUMP_FOR_TARGET; RANLIB_FOR_TARGET="ranlib"; export RANLIB_FOR_TARGET; TOPLEVEL_CONFIGURE_ARGUMENTS="../insight-6.8-1/configure --prefix=/home/ehailii/insight-host-6.8.1/tool"; export TOPLEVEL_CONFIGURE_ARGUMENTS; GMPLIBS="-lmpfr -lgmp"; export GMPLIBS; GMPINC=""; export GMPINC; LD_LIBRARY_PATH=`echo "$r/./bfd/.libs:$r/./prev-bfd/.libs:$r/./opcodes/.libs:$r/./prev-opcodes/.libs:$LD_LIBRARY_PATH" | sed 's,::*,:,g;s,^:*,,;s,:*$,,'`; export LD_LIBRARY_PATH; \ (cd ./gdb && \
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=sparc-sun-solaris2.10" "bindir=/home/ehailii/insight-host-6.8.1/tool/bin" "datadir=/home/ehailii/insight-host-6.8.1/tool/share" "exec_prefix=/home/ehailii/insight-host-6.8.1/tool" "includedir=/home/ehailii/insight-host-6.8.1/tool/include" "datarootdir=/home/ehailii/insight-host-6.8.1/tool/share" "docdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "infodir=/home/ehailii/insight-host-6.8.1/tool/info" "pdfdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "htmldir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "libdir=/home/ehailii/insight-host-6.8.1/tool/lib" "libexecdir=/home/ehailii/insight-host-6.8.1/tool/libexec" "lispdir=" "localstatedir=/home/ehailii/insight-host-6.8.1/tool/var" "mandir=/home/ehailii/insight-host-6.8.1/tool/man" "oldincludedir=/usr/include" "prefix=/home/ehailii/insight-host-6.8.1/tool" "sbindir=/home/ehailii/insight-host-6.8.1/tool/sbin" "sharedstatedir=/home/ehailii/insight-host-6.8.1/tool/com" "sysconfdir=/home/ehailii/insight-host-6.8.1/tool/etc" "tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "build_tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "target_alias=sparc-sun-solaris2.10" "BISON=/home/ehailii/insight-6.8-1/missing bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=g++" "EXPECT=expect" "FLEX=/home/ehailii/insight-6.8-1/missing flex" "INSTALL=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_DATA=/home/ehailii/insight-6.8-1/install-sh -c -m 644" "INSTALL_PROGRAM=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_SCRIPT=/home/ehailii/insight-6.8-1/install-sh -c" "LEX=lex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SHELL=/bin/bash" "YACC=yacc" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=,c," "STAGE2_CFLAGS=-g -O2" "STAGE3_CFLAGS=-g -O2" "STAGE4_CFLAGS=-g -O2" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET=gcc" "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET=g++" "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=" "LD_FOR_TARGET=/usr/ccs/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "CONFIG_SHELL=/bin/bash" "MAKEINFO=/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000 --split-size=5000000" 'AR=ar' 'AS=as' 'CC=gcc' 'CXX=g++' 'DLLTOOL=dlltool' 'LD=/usr/ccs/bin/ld' 'LIPO=lipo' 'NM=nm' 'OBJDUMP=objdump' 'RANLIB=ranlib' 'STRIP=strip' 'WINDRES=windres' 'WINDMC=windmc' 'X11_EXTRA_CFLAGS=' 'X11_EXTRA_LIBS=-lnsl -lsocket' \
all)
make: Fatal error: Command failed for target `all-gdb'
Current working directory /home/ehailii/insight-host-6.8.1
*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd ../insight-6.8-1; ${PWDCMD-pwd}`; export s; \ if [ -f stage_last ]; then \
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=sparc-sun-solaris2.10" "bindir=/home/ehailii/insight-host-6.8.1/tool/bin" "datadir=/home/ehailii/insight-host-6.8.1/tool/share" "exec_prefix=/home/ehailii/insight-host-6.8.1/tool" "includedir=/home/ehailii/insight-host-6.8.1/tool/include" "datarootdir=/home/ehailii/insight-host-6.8.1/tool/share" "docdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "infodir=/home/ehailii/insight-host-6.8.1/tool/info" "pdfdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "htmldir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "libdir=/home/ehailii/insight-host-6.8.1/tool/lib" "libexecdir=/home/ehailii/insight-host-6.8.1/tool/libexec" "lispdir=" "localstatedir=/home/ehailii/insight-host-6.8.1/tool/var" "mandir=/home/ehailii/insight-host-6.8.1/tool/man" "oldincludedir=/usr/include" "prefix=/home/ehailii/insight-host-6.8.1/tool" "sbindir=/home/ehailii/insight-host-6.8.1/tool/sbin" "sharedstatedir=/home/ehailii/insight-host-6.8.1/tool/com" "sysconfdir=/home/ehailii/insight-host-6.8.1/tool/etc" "tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "build_tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "target_alias=sparc-sun-solaris2.10" "BISON=/home/ehailii/insight-6.8-1/missing bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=g++" "EXPECT=expect" "FLEX=/home/ehailii/insight-6.8-1/missing flex" "INSTALL=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_DATA=/home/ehailii/insight-6.8-1/install-sh -c -m 644" "INSTALL_PROGRAM=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_SCRIPT=/home/ehailii/insight-6.8-1/install-sh -c" "LEX=lex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SHELL=/bin/bash" "YACC=yacc" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=,c," "STAGE2_CFLAGS=-g -O2" "STAGE3_CFLAGS=-g -O2" "STAGE4_CFLAGS=-g -O2" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET= gcc " "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET= g++ " "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "GCJ_FOR_TARGET= " "GFORTRAN_FOR_TARGET= " "LD_FOR_TARGET=/usr/ccs/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "CONFIG_SHELL=/bin/bash" "MAKEINFO=/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000" 'AR=$(AR_FOR_TARGET)' 'AS=as' 'CC=$(CC_FOR_TARGET)' 'CFLAGS=$(CFLAGS_FOR_TARGET) ' 'CXX=$(CXX_FOR_TARGET)' 'CXXFLAGS=$(CXXFLAGS_FOR_TARGET) ' 'DLLTOOL=$(DLLTOOL_FOR_TARGET)' 'LD=/usr/ccs/bin/ld' 'LDFLAGS=$(LDFLAGS_FOR_TARGET)' 'LIBCFLAGS=$(LIBCFLAGS_FOR_TARGET) ' 'LIBCXXFLAGS=$(LIBCXXFLAGS_FOR_TARGET) ' 'NM=nm' 'OBJDUMP=$(OBJDUMP_FOR_TARGET)' 'RANLIB=$(RANLIB_FOR_TARGET)' 'WINDRES=$(WINDRES_FOR_TARGET)' 'WINDMC=$(WINDMC_FOR_TARGET)' all-host all-target; \ else \
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=sparc-sun-solaris2.10" "bindir=/home/ehailii/insight-host-6.8.1/tool/bin" "datadir=/home/ehailii/insight-host-6.8.1/tool/share" "exec_prefix=/home/ehailii/insight-host-6.8.1/tool" "includedir=/home/ehailii/insight-host-6.8.1/tool/include" "datarootdir=/home/ehailii/insight-host-6.8.1/tool/share" "docdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "infodir=/home/ehailii/insight-host-6.8.1/tool/info" "pdfdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "htmldir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "libdir=/home/ehailii/insight-host-6.8.1/tool/lib" "libexecdir=/home/ehailii/insight-host-6.8.1/tool/libexec" "lispdir=" "localstatedir=/home/ehailii/insight-host-6.8.1/tool/var" "mandir=/home/ehailii/insight-host-6.8.1/tool/man" "oldincludedir=/usr/include" "prefix=/home/ehailii/insight-host-6.8.1/tool" "sbindir=/home/ehailii/insight-host-6.8.1/tool/sbin" "sharedstatedir=/home/ehailii/insight-host-6.8.1/tool/com" "sysconfdir=/home/ehailii/insight-host-6.8.1/tool/etc" "tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "build_tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "target_alias=sparc-sun-solaris2.10" "BISON=/home/ehailii/insight-6.8-1/missing bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=g++" "EXPECT=expect" "FLEX=/home/ehailii/insight-6.8-1/missing flex" "INSTALL=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_DATA=/home/ehailii/insight-6.8-1/install-sh -c -m 644" "INSTALL_PROGRAM=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_SCRIPT=/home/ehailii/insight-6.8-1/install-sh -c" "LEX=lex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SHELL=/bin/bash" "YACC=yacc" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=,c," "STAGE2_CFLAGS=-g -O2" "STAGE3_CFLAGS=-g -O2" "STAGE4_CFLAGS=-g -O2" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET= gcc " "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET= g++ " "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "GCJ_FOR_TARGET= " "GFORTRAN_FOR_TARGET= " "LD_FOR_TARGET=/usr/ccs/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "CONFIG_SHELL=/bin/bash" "MAKEINFO=/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000" all-host all-target; \ fi
make: Fatal error: Command failed for target `all'
Best Wishes
LiHai
^ permalink raw reply [flat|nested] 3+ messages in thread
* Insight can not get compiled under Solaris/sparc
[not found] ` <9BFD7979339BD94FA52C1B94532C071C03E1D4BD72@ESGSCCMS0002.eapac.ericsson.se>
@ 2011-02-23 5:45 ` Kevin Li H
2011-02-23 6:23 ` Kevin Li H
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Li H @ 2011-02-23 5:45 UTC (permalink / raw)
To: insight; +Cc: Gene Guo J, Yingjie Guo, Kevin Li H
Hi all,
I am trying to build insight on Solaris 10 based on sparc, but I can not get it compiled successfully.
My enviroment is:
SunOS ecnshux2000 5.10 Generic_138888-03 sun4u sparc SUNW,SPARC-Enterprise
Gcc version:
gcc (GCC) 3.4.1
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Actually I met two problems:
1. I have to modify the source code of SourceCode/gdb/remote.c at line 2859. change "sprintf (rs->buf, "vAttach;%x", pid);" to "sprintf (rs->buf, "vAttach;%x",(unsigned int) pid);". Otherwise, it can not get compiled.
2. after fixing item 1 above, I still met the compiling error shown as following. I google it and I found some expert said "iirc wine doesn't work under solaris out of the box". Is it already a known issue? Refer http://www.winehq.org/pipermail/wine-users/2006-March/020686.html for details.
Great thanks!
BTW, I tried on linux/x86, it works.
gcc -c -g -O2 -I. -I../../insight-6.8-1/gdb -I../../insight-6.8-1/gdb/config -DLOCALEDIR="\"/home/ehailii/insight-host-6.8.1/tool/share/locale\"" -DHAVE_CONFIG_H -I../../insight-6.8-1/gdb/../include/opcode -I../../insight-6.8-1/gdb/../readline/.. -I../bfd -I../../insight-6.8-1/gdb/../bfd -I../../insight-6.8-1/gdb/../include -I../libdecnumber -I../../insight-6.8-1/gdb/../libdecnumber -I./../intl -DMI_OUT=1 -DGDBTK -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror -I../../insight-6.8-1/gdb/../libgui/src -I/home/ehailii/insight-6.8-1/itcl/itcl/generic \
-I/home/ehailii/insight-6.8-1/itcl/itk/generic \
-I/home/ehailii/insight-6.8-1/tcl/generic -I/home/ehailii/insight-6.8-1/tk/generic -I/usr/openwin/include \
../../insight-6.8-1/gdb/gdbtk/generic/gdbtk.c \
-DGDBTK_LIBRARY=\"/home/ehailii/insight-host-6.8.1/tool/share/insight1.0\" -DSRC_DIR=\"/home/ehailii/insight-6.8-1/gdb\"
In file included from /home/ehailii/insight-6.8-1/tk/generic/tk.h:96,
from /home/ehailii/insight-6.8-1/itcl/itk/generic/itk.h:61,
from ../../insight-6.8-1/gdb/gdbtk/generic/gdbtk.c:46:
/usr/openwin/include/X11/Xlib.h:38: warning: ignoring #pragma ident
*** Error code 1
make: Fatal error: Command failed for target `gdbtk.o'
Current working directory /home/ehailii/insight-host-6.8.1/gdb
*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd ../insight-6.8-1; ${PWDCMD-pwd}`; export s; \
FLEX="/home/ehailii/insight-6.8-1/missing flex"; export FLEX; LEX="lex"; export LEX; BISON="/home/ehailii/insight-6.8-1/missing bison"; export BISON; YACC="yacc"; export YACC; M4="m4"; export M4; MAKEINFO="/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000"; export MAKEINFO; CC="gcc"; export CC; CFLAGS="-g -O2"; export CFLAGS; CONFIG_SHELL="/bin/bash"; export CONFIG_SHELL; CXX="g++"; export CXX; CXXFLAGS="-g -O2"; export CXXFLAGS; AR="ar"; export AR; AS="as"; export AS; CC_FOR_BUILD="gcc"; export CC_FOR_BUILD; DLLTOOL="dlltool"; export DLLTOOL; LD="/usr/ccs/bin/ld"; export LD; LDFLAGS=""; export LDFLAGS; NM="nm"; export NM; RANLIB="ranlib"; export RANLIB; WINDRES="windres"; export WINDRES; WINDMC="windmc"; export WINDMC; OBJCOPY=""; export OBJCOPY; OBJDUMP="objdump"; export OBJDUMP; AR_FOR_TARGET="ar"; export AR_FOR_TARGET; AS_FOR_TARGET="as"; export AS_FOR_TARGET; GCC_FOR_TARGET=" "; export GCC_FOR_TARGET; LD_FOR_TARGET="/usr/ccs/bin/ld"; export LD_FOR_TARGET; NM_FOR_TARGET="nm"; export NM_FOR_TARGET; OBJDUMP_FOR_TARGET="objdump"; export OBJDUMP_FOR_TARGET; RANLIB_FOR_TARGET="ranlib"; export RANLIB_FOR_TARGET; TOPLEVEL_CONFIGURE_ARGUMENTS="../insight-6.8-1/configure --prefix=/home/ehailii/insight-host-6.8.1/tool"; export TOPLEVEL_CONFIGURE_ARGUMENTS; GMPLIBS="-lmpfr -lgmp"; export GMPLIBS; GMPINC=""; export GMPINC; LD_LIBRARY_PATH=`echo "$r/./bfd/.libs:$r/./prev-bfd/.libs:$r/./opcodes/.libs:$r/./prev-opcodes/.libs:$LD_LIBRARY_PATH" | sed 's,::*,:,g;s,^:*,,;s,:*$,,'`; export LD_LIBRARY_PATH; \
(cd ./gdb && \
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=sparc-sun-solaris2.10" "bindir=/home/ehailii/insight-host-6.8.1/tool/bin" "datadir=/home/ehailii/insight-host-6.8.1/tool/share" "exec_prefix=/home/ehailii/insight-host-6.8.1/tool" "includedir=/home/ehailii/insight-host-6.8.1/tool/include" "datarootdir=/home/ehailii/insight-host-6.8.1/tool/share" "docdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "infodir=/home/ehailii/insight-host-6.8.1/tool/info" "pdfdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "htmldir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "libdir=/home/ehailii/insight-host-6.8.1/tool/lib" "libexecdir=/home/ehailii/insight-host-6.8.1/tool/libexec" "lispdir=" "localstatedir=/home/ehailii/insight-host-6.8.1/tool/var" "mandir=/home/ehailii/insight-host-6.8.1/tool/man" "oldincludedir=/usr/include" "prefix=/home/ehailii/insight-host-6.8.1/tool" "sbindir=/home/ehailii/insight-host-6.8.1/tool/sbin" "sharedstatedir=/home/ehailii/insight-host-6.8.1/tool/com" "sysconfdir=/home/ehailii/insight-host-6.8.1/tool/etc" "tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "build_tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "target_alias=sparc-sun-solaris2.10" "BISON=/home/ehailii/insight-6.8-1/missing bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=g++" "EXPECT=expect" "FLEX=/home/ehailii/insight-6.8-1/missing flex" "INSTALL=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_DATA=/home/ehailii/insight-6.8-1/install-sh -c -m 644" "INSTALL_PROGRAM=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_SCRIPT=/home/ehailii/insight-6.8-1/install-sh -c" "LEX=lex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SHELL=/bin/bash" "YACC=yacc" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=,c," "STAGE2_CFLAGS=-g -O2" "STAGE3_CFLAGS=-g -O2" "STAGE4_CFLAGS=-g -O2" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET=gcc" "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET=g++" "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "GCJ_FOR_TARGET=" "GFORTRAN_FOR_TARGET=" "LD_FOR_TARGET=/usr/ccs/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "CONFIG_SHELL=/bin/bash" "MAKEINFO=/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000 --split-size=5000000" 'AR=ar' 'AS=as' 'CC=gcc' 'CXX=g++' 'DLLTOOL=dlltool' 'LD=/usr/ccs/bin/ld' 'LIPO=lipo' 'NM=nm' 'OBJDUMP=objdump' 'RANLIB=ranlib' 'STRIP=strip' 'WINDRES=windres' 'WINDMC=windmc' 'X11_EXTRA_CFLAGS=' 'X11_EXTRA_LIBS=-lnsl -lsocket' \
all)
make: Fatal error: Command failed for target `all-gdb'
Current working directory /home/ehailii/insight-host-6.8.1
*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd ../insight-6.8-1; ${PWDCMD-pwd}`; export s; \
if [ -f stage_last ]; then \
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=sparc-sun-solaris2.10" "bindir=/home/ehailii/insight-host-6.8.1/tool/bin" "datadir=/home/ehailii/insight-host-6.8.1/tool/share" "exec_prefix=/home/ehailii/insight-host-6.8.1/tool" "includedir=/home/ehailii/insight-host-6.8.1/tool/include" "datarootdir=/home/ehailii/insight-host-6.8.1/tool/share" "docdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "infodir=/home/ehailii/insight-host-6.8.1/tool/info" "pdfdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "htmldir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "libdir=/home/ehailii/insight-host-6.8.1/tool/lib" "libexecdir=/home/ehailii/insight-host-6.8.1/tool/libexec" "lispdir=" "localstatedir=/home/ehailii/insight-host-6.8.1/tool/var" "mandir=/home/ehailii/insight-host-6.8.1/tool/man" "oldincludedir=/usr/include" "prefix=/home/ehailii/insight-host-6.8.1/tool" "sbindir=/home/ehailii/insight-host-6.8.1/tool/sbin" "sharedstatedir=/home/ehailii/insight-host-6.8.1/tool/com" "sysconfdir=/home/ehailii/insight-host-6.8.1/tool/etc" "tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "build_tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "target_alias=sparc-sun-solaris2.10" "BISON=/home/ehailii/insight-6.8-1/missing bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=g++" "EXPECT=expect" "FLEX=/home/ehailii/insight-6.8-1/missing flex" "INSTALL=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_DATA=/home/ehailii/insight-6.8-1/install-sh -c -m 644" "INSTALL_PROGRAM=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_SCRIPT=/home/ehailii/insight-6.8-1/install-sh -c" "LEX=lex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SHELL=/bin/bash" "YACC=yacc" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=,c," "STAGE2_CFLAGS=-g -O2" "STAGE3_CFLAGS=-g -O2" "STAGE4_CFLAGS=-g -O2" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET= gcc " "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET= g++ " "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "GCJ_FOR_TARGET= " "GFORTRAN_FOR_TARGET= " "LD_FOR_TARGET=/usr/ccs/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "CONFIG_SHELL=/bin/bash" "MAKEINFO=/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000" 'AR=$(AR_FOR_TARGET)' 'AS=as' 'CC=$(CC_FOR_TARGET)' 'CFLAGS=$(CFLAGS_FOR_TARGET) ' 'CXX=$(CXX_FOR_TARGET)' 'CXXFLAGS=$(CXXFLAGS_FOR_TARGET) ' 'DLLTOOL=$(DLLTOOL_FOR_TARGET)' 'LD=/usr/ccs/bin/ld' 'LDFLAGS=$(LDFLAGS_FOR_TARGET)' 'LIBCFLAGS=$(LIBCFLAGS_FOR_TARGET) ' 'LIBCXXFLAGS=$(LIBCXXFLAGS_FOR_TARGET) ' 'NM=nm' 'OBJDUMP=$(OBJDUMP_FOR_TARGET)' 'RANLIB=$(RANLIB_FOR_TARGET)' 'WINDRES=$(WINDRES_FOR_TARGET)' 'WINDMC=$(WINDMC_FOR_TARGET)' all-host all-target; \
else \
make "DESTDIR=" "RPATH_ENVVAR=LD_LIBRARY_PATH" "TARGET_SUBDIR=sparc-sun-solaris2.10" "bindir=/home/ehailii/insight-host-6.8.1/tool/bin" "datadir=/home/ehailii/insight-host-6.8.1/tool/share" "exec_prefix=/home/ehailii/insight-host-6.8.1/tool" "includedir=/home/ehailii/insight-host-6.8.1/tool/include" "datarootdir=/home/ehailii/insight-host-6.8.1/tool/share" "docdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "infodir=/home/ehailii/insight-host-6.8.1/tool/info" "pdfdir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "htmldir=/home/ehailii/insight-host-6.8.1/tool/share/doc" "libdir=/home/ehailii/insight-host-6.8.1/tool/lib" "libexecdir=/home/ehailii/insight-host-6.8.1/tool/libexec" "lispdir=" "localstatedir=/home/ehailii/insight-host-6.8.1/tool/var" "mandir=/home/ehailii/insight-host-6.8.1/tool/man" "oldincludedir=/usr/include" "prefix=/home/ehailii/insight-host-6.8.1/tool" "sbindir=/home/ehailii/insight-host-6.8.1/tool/sbin" "sharedstatedir=/home/ehailii/insight-host-6.8.1/tool/com" "sysconfdir=/home/ehailii/insight-host-6.8.1/tool/etc" "tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "build_tooldir=/home/ehailii/insight-host-6.8.1/tool/sparc-sun-solaris2.10" "target_alias=sparc-sun-solaris2.10" "BISON=/home/ehailii/insight-6.8-1/missing bison" "CC_FOR_BUILD=gcc" "CFLAGS_FOR_BUILD=-g -O2" "CXX_FOR_BUILD=g++" "EXPECT=expect" "FLEX=/home/ehailii/insight-6.8-1/missing flex" "INSTALL=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_DATA=/home/ehailii/insight-6.8-1/install-sh -c -m 644" "INSTALL_PROGRAM=/home/ehailii/insight-6.8-1/install-sh -c" "INSTALL_SCRIPT=/home/ehailii/insight-6.8-1/install-sh -c" "LEX=lex" "M4=m4" "MAKE=make" "RUNTEST=runtest" "RUNTESTFLAGS=" "SHELL=/bin/bash" "YACC=yacc" "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "AR_FLAGS=rc" "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "BOOT_CFLAGS=-g -O2" "BOOT_LDFLAGS=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCXXFLAGS=-g -O2 -fno-implicit-templates" "STAGE1_CFLAGS=-g -fkeep-inline-functions" "STAGE1_CHECKING=--enable-checking=yes,types" "STAGE1_LANGUAGES=,c," "STAGE2_CFLAGS=-g -O2" "STAGE3_CFLAGS=-g -O2" "STAGE4_CFLAGS=-g -O2" "GNATBIND=no" "GNATMAKE=no" "AR_FOR_TARGET=ar" "AS_FOR_TARGET=as" "CC_FOR_TARGET= gcc " "CFLAGS_FOR_TARGET=-g -O2" "CPPFLAGS_FOR_TARGET=" "CXX_FOR_TARGET= g++ " "CXXFLAGS_FOR_TARGET=-g -O2" "DLLTOOL_FOR_TARGET=dlltool" "GCJ_FOR_TARGET= " "GFORTRAN_FOR_TARGET= " "LD_FOR_TARGET=/usr/ccs/bin/ld" "LIPO_FOR_TARGET=lipo" "LDFLAGS_FOR_TARGET=" "LIBCFLAGS_FOR_TARGET=-g -O2" "LIBCXXFLAGS_FOR_TARGET=-g -O2 -fno-implicit-templates" "NM_FOR_TARGET=nm" "OBJDUMP_FOR_TARGET=objdump" "RANLIB_FOR_TARGET=ranlib" "STRIP_FOR_TARGET=strip" "WINDRES_FOR_TARGET=windres" "WINDMC_FOR_TARGET=windmc" "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`" "LEAN=false" "CONFIG_SHELL=/bin/bash" "MAKEINFO=/home/ehailii/insight-6.8-1/missing makeinfo --split-size=5000000" all-host all-target; \
fi
make: Fatal error: Command failed for target `all'
Best Wishes
LiHai
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-23 8:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 8:39 Insight can not get compiled under Solaris/sparc Ruppert
[not found] <9BFD7979339BD94FA52C1B94532C071C03E1D4BD6A@ESGSCCMS0002.eapac.ericsson.se>
[not found] ` <9BFD7979339BD94FA52C1B94532C071C03E1D4BD72@ESGSCCMS0002.eapac.ericsson.se>
2011-02-23 5:45 ` Kevin Li H
2011-02-23 6:23 ` Kevin Li H
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).