Build GDB and GDBServer for SPARC64

From Aram's Wiki
Revision as of 13:15, 7 June 2018 by Aram (talk | contribs) (Created page with " # 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
# 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