flexpart program

Has anyone managed to build flexpart on OSX?
I get an (incomprehensible, to me) link error.

I haven’t built FLEXPART but can you post some of the error you’re getting? I might be able to help you decipher it.

  • Mat

OK - here goes

OSX version 10.9.5
Xcode version 6.0.1
pgf90 version 13.10-0 64-bit target on Apple OS/X -tp sandybridge

Source code from

Modified makefile.mom to
Choose using PGI compiler
Set path for NetCDF include and lib
Set path to pgf90 compiler
Remove -mcmodel=medium option

Attempt to build with make -f makefile.mom serial

Output =

/opt/pgi/osx86-64/13.10/bin/pgf90 -c -I/sw/include -fastsse par_mod.f90
/opt/pgi/osx86-64/13.10/bin/pgf90 -c -I/sw/include -fastsse com_mod.f90
/opt/pgi/osx86-64/13.10/bin/pgf90 -c -I/sw/include -fastsse conv_mod.f90

/opt/pgi/osx86-64/13.10/bin/pgf90 -c -I/sw/include -fastsse write_ncheader.f90
/opt/pgi/osx86-64/13.10/bin/pgf90 -c -I/sw/include -fastsse write_ncinfo.f90
/opt/pgi/osx86-64/13.10/bin/pgf90 *.o -o flexwrf31_pgi_serial -L/sw/lib -fastsse -lnetcdff
final section layout:
__TEXT/__text addr=0x100000E60, size=0x001D3090, fileOffset=0x00000E60, type=1
__TEXT/__stubs addr=0x1001D3EF0, size=0x000002DC, fileOffset=0x001D3EF0, type=28
__TEXT/__stub_helper addr=0x1001D41CC, size=0x000004D4, fileOffset=0x001D41CC, type=32
__TEXT/__cstring addr=0x1001D46A0, size=0x000045B3, fileOffset=0x001D46A0, type=13
__TEXT/__const addr=0x1001D8C60, size=0x00002468, fileOffset=0x001D8C60, type=0
__TEXT/__unwind_info addr=0x1001DB0C8, size=0x000008A0, fileOffset=0x001DB0C8, type=22
__TEXT/__eh_frame addr=0x1001DB968, size=0x00013680, fileOffset=0x001DB968, type=19
__DATA/__dyld addr=0x1001EF000, size=0x00000010, fileOffset=0x001EF000, type=30
__DATA/__nl_symbol_ptr addr=0x1001EF010, size=0x00000010, fileOffset=0x001EF010, type=29
__DATA/__got addr=0x1001EF020, size=0x00000050, fileOffset=0x001EF020, type=29
__DATA/__la_symbol_ptr addr=0x1001EF070, size=0x000003D0, fileOffset=0x001EF070, type=27
__DATA/__mod_init_func addr=0x1001EF440, size=0x00000468, fileOffset=0x001EF440, type=33
__DATA/__const addr=0x1001EF8C0, size=0x00000800, fileOffset=0x001EF8C0, type=0
__DATA/__data addr=0x1001F00C0, size=0x00039664, fileOffset=0x001F00C0, type=0
__DATA/__common addr=0x100230000, size=0x00077AE0, fileOffset=0x00000000, type=25
__DATA/__bss addr=0x1002A7AE0, size=0x00184F30, fileOffset=0x00000000, type=25
__DATA/__huge addr=0x100430000, size=0x129362108, fileOffset=0x00000000, type=25
__PGIinfo/__IPDINFO addr=0x229793000, size=0x000570B1, fileOffset=0x00234000, type=0
__PGIinfo/__IPEINFO addr=0x2297EA0B1, size=0x00000179, fileOffset=0x0028B0B1, type=0
ld: unexpected bindingNone in ‘boundcond_domainfill’ from boundcond_domainfill.o for architecture x86_64
make: *** [serial] Error 2

Hi rfe,

I’m guessing what has happened is that you updated to 10.9.5 but the PGI install is still using an older version of xcode, hence getting some type of mismatch.

This might be a simple as rerunning the PGI install script “/opt/pgi/osx86-64/13.10/bin/makelocalrc -x /opt/pgi/osx86-64/13.10”.

  • Mat

I tried the makelocalrc suggestion.

sudo /opt/pgi/osx86-64/13.10/bin/makelocalrc -x /opt/pgi/osx86-64/13.10

and got

localrc has not changed

After make clean, I attempted to build flexpart again, with
the same failure as reported previously.