22.12.2012 Views

z/TPF Program Management - IBM

z/TPF Program Management - IBM

z/TPF Program Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

export <strong>TPF</strong>_X_LIBS=/ztpf/tpfcross/build/tpf-06r1-13/H-s390x-linux-gnu/lib/gcc/s390x-ibm-tpf/4.1.2<br />

export <strong>TPF</strong>_INFO=/ztpf/tpfcross/build/tpf-06r1-13/share/info<br />

export INFOPATH=$<strong>TPF</strong>_INFO:$INFOPATH<br />

For example, enter the following commands if you are using the GCC 4.6.3<br />

ELF-compatible compiler:<br />

export PATH=/ztpf/tpfcross/build/tpf-11r1-8/H-s390x-linux-gnu/bin:${PATH}<br />

export <strong>TPF</strong>_X_GCC=/ztpf/tpfcross/build/tpf-11r1-8/include/c++/4.6.3<br />

export <strong>TPF</strong>_X_LIBS=/ztpf/tpfcross/build/tpf-11r1-8/H-s390x-linux-gnu/lib/gcc/s390x-ibm-tpf/4.6.3<br />

export <strong>TPF</strong>_INFO=/ztpf/tpfcross/build/tpf-11r1-8/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 each of the supported levels of the compiler:<br />

1) Uncomment the export directives by removing the leading number sign<br />

(#).<br />

2) Change the <strong>TPF</strong>_* variables to identify the directories where the versions<br />

are installed. For example, change<br />

#export <strong>TPF</strong>_X_LIBS:=<br />

to<br />

export <strong>TPF</strong>_X_LIBS:=/opt/gcc/current/libs<br />

3) Prefix the PATH setting with the directory where the version is installed.<br />

For example:<br />

export PATH:=/opt/gcc/current/bin:$(PATH)<br />

A set of environment variables for GCC V4.1 and GCC V4.6 might look<br />

like this example:<br />

ifeq ($(<strong>TPF</strong>GCC_VERSION),41)<br />

export <strong>TPF</strong>_X_GCC:=/opt/gcc/current/tpf_x_gcc<br />

export <strong>TPF</strong>_X_LIBS:=/opt/gcc/current/libs<br />

export <strong>TPF</strong>_INFO:=/opt/gcc/current/info<br />

export PATH:=/opt/gcc/current/bin:$(PATH)<br />

endif<br />

ifeq ($(<strong>TPF</strong>GCC_VERSION),46)<br />

export <strong>TPF</strong>_X_GCC:=/cteam/jones/tpf-gcc-4.6.3-8/s390x-ibm-tpf/include/c++/4.6.3<br />

export <strong>TPF</strong>_X_LIBS:=/cteam/jones/tpf-gcc-4.6.3-8/lib/gcc/s390x-ibm-tpf/4.6.3<br />

export <strong>TPF</strong>_INFO:=/cteam/jones/tpf-gcc-4.6.3-8/share/info<br />

export PATH:=/cteam/jones/tpf-gcc-4.6.3-8/bin:$(PATH)<br />

endif<br />

c. Verify that the compiler was built successfully. Start a new Linux session and<br />

enter the following command:<br />

tpf-gcc -v<br />

If the compiler was unpacked successfully and the directories that are<br />

shown in the examples were used, the following information is displayed if<br />

you are using the GCC 4.1.2 compiler:<br />

Using built-in specs.<br />

Target: s390x-ibm-tpf<br />

Configured with: /ztpf/tpfcross/build/tpf-06r1-13/sources/tools/cross/configure --host=s390x-linux-gnu --target=s390x-ibm-tpf<br />

--build=s390x-linux-gnu --prefix=/ztpf/tpfcross/build/tpf-06r1-13 --exec-prefix=/ztpf/tpfcross/build/tpf-06r1-13/H-s390x-linux-gnu<br />

--enable-languages=c,c++ --program-prefix=tpf- --without-newlib --with-sysroot<br />

Thread model: tpf<br />

TARGET_SYSTEM_ROOT:<br />

/ztpf/tpfcross/build/tpf-cross-tools-4.1-tpf-06r1-13/H-s390x-linux-gnu/bin/../s390x-ibm-tpf/sys-root<br />

gcc version 4.1.2 20060724 (GNUPro 06r1-13) for z/<strong>TPF</strong> PUT05<br />

50 z/<strong>TPF</strong> <strong>Program</strong> <strong>Management</strong><br />

If you are using the GCC 4.6 compiler, the following example shows the<br />

output from the tpf-gcc -v command:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!