You will find the required files in sources/osprey/libfi/mathlb compiler sources path. I build this with :
opencc gen_ieee_cpp_macros.c -I/home/santosh/Compiler/open64/sources/osprey/clibinc
./a.out > ieee_cpp_macros.h
openf90 -I. ieee_arithmetic.F90 ../../../t.f90
However please note that I havent tested this throughly.
[nickhatz-dev@master-0 ~/progs/x86_open64-4.5.2/osprey/libfi/mathlb]$ opencc gen_ieee_cpp_macros.c -I/home/nickhatz-dev/progs/x86_open64-4.5.2/osprey/clibinc
gen_ieee_cpp_macros.c: In function 'main':
gen_ieee_cpp_macros.c:51: error: 'FP_NAN' undeclared (first use in this function)
gen_ieee_cpp_macros.c:51: error: (Each undeclared identifier is reported only once
gen_ieee_cpp_macros.c:51: error: for each function it appears in.)
gen_ieee_cpp_macros.c:52: error: 'FP_INFINITE' undeclared (first use in this function)
gen_ieee_cpp_macros.c:53: error: 'FP_ZERO' undeclared (first use in this function)
gen_ieee_cpp_macros.c:54: error: 'FP_SUBNORMAL' undeclared (first use in this function)
gen_ieee_cpp_macros.c:55: error: 'FP_NORMAL' undeclared (first use in this function)
I have not compiled the compiler from source
I have a centos 5.3
Linux master-0.local 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
my bashrc is:
I download the compiler from amd site x86_open64-4.5.2-1.rhel5_sles10.x86_64.tar.bz2
Am I doing something wrong, I might have not setup the environment correct
on the other hand there are not instructions how they came up with these executables for rhel5
nor how you setup the bashrc environment
I would suggest to use 'configure' method in building compiler sources. You can use compiler binaries since you can use compiler binaries and build only required module from sources. Try doing this with gcc compiler also. Let me know if this helps.
the binaries are compiled using a spec file which is not released on the source code from amd.. is it possible to get the spec file or the rpm.src that amd is using to make the build instead of reinvent the wheel using the configure method?
Unfortunately, we will not be able to share the spec file .
As Santosh mentioned, could you please use the configure method to build the compiler sources.
The 'INSTALL' file in the source tarball explains how to configure, build and and install x86 Open64 compiler from
source on an x86-64 based system
Hope this helps.