z/TPF Program Management - IBM
z/TPF Program Management - IBM
z/TPF Program Management - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|<br />
46 z/<strong>TPF</strong> <strong>Program</strong> <strong>Management</strong><br />
src-cross.tar.bz2<br />
b. Unpack the source files to the root directory. Enter the following commands:<br />
cd /ztpf/tpfcross<br />
tar -xjf /home/downloads/src-cross.tar.bz2<br />
After you complete this step, the /ztpf/tpfcross directory contains a<br />
subdirectory named ./src-cross.<br />
4. Build the compiler:<br />
a. Enter the following command from the /ztpf/tpfcross/build directory to<br />
configure the compiler:<br />
/ztpf/tpfcross/src-cross/configure --target=s390x-ibm-tpf<br />
--with-sysroot=/ztpf/tpfcross/sys-root --prefix=/ztpf/tpfcross/install<br />
--program-prefix=tpf- --enable-languages=c,c++<br />
Note: After configure command processing is complete, if you determine<br />
that you made an error or want to change something (for example,<br />
the installation path), you can enter the rm -rf * command from your<br />
build directory (for example, /ztpf/tpfcross/build) and repeat step<br />
4a.<br />
b. Enter the following command from the /ztpf/tpfcross/build directory to<br />
build the compiler:<br />
make<br />
c. Enter the following command from the /ztpf/tpfcross/build directory to<br />
install the compiler:<br />
make install<br />
5. Complete post-build setup and verification:<br />
a. Update (or create) the path variable and environment variables <strong>TPF</strong>_X_GCC<br />
and <strong>TPF</strong>_X_LIBS by using an editor to update a profile file (such as<br />
.bash_profile or /etc/profile.local) or by using the command prompt.<br />
For example, enter the following commands if you are using the GCC 4.1.2<br />
compiler:<br />
export PATH=/ztpf/tpfcross/install/bin:${PATH}<br />
export <strong>TPF</strong>_X_GCC=/ztpf/tpfcross/install/lib/gcc/s390x-ibm-tpf/4.1.2/include<br />
export <strong>TPF</strong>_X_LIBS=/ztpf/tpfcross/install/lib/gcc/s390x-ibm-tpf/4.1.2<br />
export <strong>TPF</strong>_INFO=/ztpf/tpfcross/install/share/info<br />
export INFOPATH=$<strong>TPF</strong>_INFO:$INFOPATH<br />
If you are using the GCC 4.6.3 compiler, enter the following lines into your<br />
.bash_profile file:<br />
export PATH=/ztpf/tpfcross/install/bin:${PATH}<br />
export <strong>TPF</strong>_X_GCC=/ztpf/tpfcross/install/lib/gcc/s390x-ibm-tpf/4.6.3/include<br />
export <strong>TPF</strong>_X_LIBS=/ztpf/tpfcross/install/lib/gcc/s390x-ibm-tpf/4.6.3<br />
export <strong>TPF</strong>_INFO=/ztpf/tpfcross/install/share/info<br />
export INFOPATH=$<strong>TPF</strong>_INFO:$INFOPATH<br />
b. Optional: To offer a choice of GCC compiler versions to application<br />
programmers, customize the tpftools/include_ztpf/<br />
maketpf_rules_cfg_REDHAT file to set four environment variables to define<br />
the installation location for the supported levels of the compiler: