Difference between revisions of "Build GDB and GDBServer for SPARC64"

From Aram's Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Solaris]]
 
[[Category:Solaris]]
  
# on development (e.g. amd64) machine  
+
On development (e.g. amd64) machine:
 
  cd $HOME  
 
  cd $HOME  
 
  curl http://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz | tar xf -  
 
  curl http://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz | tar xf -  
Line 11: Line 11:
 
  make -j5 && make install  
 
  make -j5 && make install  
 
   
 
   
# on target (e.g. sparc) machine  
+
On target (e.g. sparc) machine:
 
  cd $HOME/src  
 
  cd $HOME/src  
 
  curl http://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz | gtar xzf -  
 
  curl http://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz | gtar xzf -  

Latest revision as of 16:40, 7 June 2018


On development (e.g. amd64) machine:

cd $HOME 
curl http://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz | tar xf - 

mkdir -p $HOME/gdb-build 
cd $HOME/gdb-build 

../gdb-7.11.1/configure --prefix $HOME/xgcc --bindir $HOME/bin --target sparc64-sun-solaris2.11 
make -j5 && make install 

On target (e.g. sparc) machine:

cd $HOME/src 
curl http://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz | gtar xzf - 

zfs create -p rpool/export/home/aram/builds/gdb 
zfs create -p rpool/export/home/aram/builds/gdbserver 

cd $HOME/builds/gdb 
CFLAGS='-m64' ../../src/gdb-7.11.1/configure --disable-tui --host sparc64-sun-solaris2.11 --build sparc64-sun-solaris2.11 --target sparc64-sun-solaris2.11 --prefix $HOME/tools --bindir $HOME/bin 
make -j80 && make install 

cd $HOME/builds/gdbserver 
../../src/gdb-7.11.1/gdb/gdbserver/configure --host sparc64-sun-solaris2.11 --build sparc64-sun-solaris2.11 --target sparc64-sun-solaris2.11 --prefix $HOME/tools --bindir $HOME/bin 
make -j80 && make install