gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1565 Posts in 517 Topics by 752 Members - Latest Member: zaikunzhang September 25, 2021, 06:02:40 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  Macintosh  |  Mountain Lion and Xcode 4.4 with Absoft 11.05
gfx
gfxgfx
 

Author Topic: Mountain Lion and Xcode 4.4 with Absoft 11.05  (Read 4452 times)

galfenol

  • Newbie
  • *
  • Posts: 2
Mountain Lion and Xcode 4.4 with Absoft 11.05
« on: September 04, 2012, 10:38:32 AM »
A recent installation of Mountain Lion 10.8.1 and Xcode 4.4.1 seems to have broken the paths for Absoft 11.05 to find the unix command tools. A typical error log:

Begin scan
amakedepend "@/Users/galfenol/Documents/FortranSources/replicator/Release/mkdep_F95"
Scan completed
Begin build
f95 -c -nowdir -O2 -W80 -apo -apo -falt_fixed -m64 -march=host -mcmodel=medium -openmp -s -speed_math=2 -speed_math=2 -speed_openmp=2 -o "./Release/modules.o" "src/modules.f90"
amake2: **** Error code 1 (continuing)
f95 -c -nowdir -O2 -W80 -apo -ffixed -m64 -march=host -mcmodel=medium -openmp -s -speed_openmp=2 -o "./Release/ylm.o" "src/ylm.f90"
amake2: **** Error code 1 (continuing)
f95 -c -nowdir -O2 -W80 -apo -apo -falt_fixed -m64 -march=host -mcmodel=medium -openmp -s -speed_math=2 -speed_math=2 -speed_openmp=2 -o "./Release/delaunay.o" "src/delaunay.f90"
Unable to find /Developer/Tools/Rez.
One or more of the tools needed by this compiler are missing.
Make sure you have installed the Xcode Tools.  Xcode can be
obtained from the Apple web site <www.apple.com>.

If everything is installed, please check your path, it should include
/bin and /usr/bin.
amake2:  expands to empty string
Unable to find /Developer/Tools/Rez.
One or more of the tools needed by this compiler are missing.
Make sure you have installed the Xcode Tools.  Xcode can be
obtained from the Apple web site <www.apple.com>.

If everything is installed, please check your path, it should include
/bin and /usr/bin.
amake2:  expands to empty string
amake2:  expands to empty string
amake2: **** Error code 1 (continuing)
amake2: `all' not remade because of errors.
Unable to find /Developer/Tools/Rez.
One or more of the tools needed by this compiler are missing.
Make sure you have installed the Xcode Tools.  Xcode can be
obtained from the Apple web site <www.apple.com>.

If everything is installed, please check your path, it should include
/bin and /usr/bin.
Build interrupted

*********************************
The Unix developer tools are installed, in the default locations where Xcode 4.4 puts them.

bash-3.2$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/texbin:/usr/local/bin

bash-3.2$ which Rez
/usr/bin/Rez

In this version of Xcode there is no  /Developer/Tools/ folder.

This should be fixable, any hints on the best way?

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 320
Re: Mountain Lion and Xcode 4.4 with Absoft 11.05
« Reply #1 on: September 05, 2012, 10:34:46 AM »
This configuration with V11.0 on OSX 10.8 is not supported by Absoft. You will run into severe problems if you need to run ranlib on any libraries distributed with V11.0; the libraries will be rendered unusable. However, it looks you have managed to get most of it working. Below is a link to a patch we have developed for V11.1 on Mountain Lion. It creates a symbolic link so that Rez can be found where V11.0 is looking. Again, this is unsupported. Your best avenue is to upgrade to Pro Fortran 2012.

###############################################################
#
# Patch instructions for Absoft OS X Pro Fortran 11.1.4
#
###############################################################

The download link:

http://www.absoft.com/electronicdelivery/patches/absoft_profortran_xcode4.3_symlinks.tar.gz

Commands to install the patch:

$ cd /
$ sudo tar -xvzf <path_to_saved_copy_of>/absoft_profortran_xcode4.3_symlinks.tar.gz

where <path_to_saved_copy_of> is replaced with the full path to the absoft_profortran_xcode4.3_symlinks.tar.gz file on the user's system.

After the patch has been installed correctly, the user will have the following directories and symbolic links on their system:

/Developer/
/Developer/SDKs -> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
/Developer/Tools/
/Developer/Tools/Rez -> /usr/bin/Rez
/Developer/Tools/SetFile ->  /usr/bin/SetFile

galfenol

  • Newbie
  • *
  • Posts: 2
Re: Mountain Lion and Xcode 4.4 with Absoft 11.05
« Reply #2 on: September 05, 2012, 02:18:19 PM »
Thank you very much for the patch, which works perfectly. Absoft 11.05 now builds F95 code  just  fine on Mountain Lion (10.8.1). The only change needed to my Absoft project settings was to set Target OS to Current Host OS to avoid a linker error. The tar command that you gave is done by the Mac OS just by double clicking the patch file. Then dragging the Developer folder (containing the links) to the top directory / works for the Terminally challenged.

Absoft User Forum  |  Support  |  Macintosh  |  Mountain Lion and Xcode 4.4 with Absoft 11.05
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!