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 />

|<br />

|<br />

|<br />

|<br />

|<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 built successfully and the directories that are shown in<br />

the examples were used, the following information is displayed if you are<br />

using the GCC 4.1.2 compiler:<br />

Using built-in specs.<br />

Target: s390x-ibm-tpf<br />

Configured with: /ztpf/tpfcross/src-cross/configure<br />

--target=s390x-ibm-tpf --with-sysroot=/ztpf/tpfcross/sys-root<br />

--prefix=/ztpf/tpfcross/install --program-prefix=tpf-<br />

--enable-languages=c,c++<br />

Thread model: tpf<br />

TARGET_SYSTEM_ROOT: /ztpf/tpfcross/sys-root<br />

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

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

output from the tpf-gcc -v command:<br />

Using built-in specs.<br />

COLLECT_GCC=tpf-gcc<br />

COLLECT_LTO_WRAPPER=/opt/tpf-11r1-8/H-s390x-linux-gnu/bin/../libexec/gcc/s390x-ibm-tpf/4.6.3/lto-wrapper<br />

Target: s390x-ibm-tpf<br />

Configured with: /opt/redhat/tpf-11r1-8/sources/tools/cross/configure<br />

--disable-bootstrap --host=s390x-linux-gnu --target=s390x-ibm-tpf<br />

--build=s390x-linux-gnu --prefix=/opt/redhat/tpf-11r1-8<br />

--exec-prefix=/opt/redhat/tpf-11r1-8/H-s390x-linux-gnu<br />

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

Thread model: tpf<br />

gcc version 4.6.3 20111128 (tpf-11r1-8) for z/<strong>TPF</strong> PUT09 or later<br />

(s390x-ibm-tpf) (GCC)<br />

6. Set up access to the <strong>IBM</strong>2047 code page. For more information, see “Set up<br />

access to the <strong>IBM</strong>2047 code page” on page 53.<br />

Build the GNU compiler collection for the z/<strong>TPF</strong> system 47

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

Saved successfully!

Ooh no, something went wrong!