This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Patrick, Possibly you have not "sourced" the Gemenviron file after uncommenting the gcc flag. Your compile line below does not match the flags that will be set when $NA_OS is sol_gcc. The $CONFIGDIR/Makeinc.sol_gcc will use -fno-second-underscore, and the -I include directory must be SunOS.gcc. Also, the FOPT will not be using -O2 which you have below. After sourcing Gemenviron, verify that $NA_OS is sol_gcc and not sol. Steve Chiswell Unidata User Support >From: "Patrick O'Reilly" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200502161703.j1GH32v2016126 >Hey, > >I'm trying to build GEMPAK on a Sun Sparc Solaris 8 system with gcc/g77. I >have version 3.2.3 of the gcc compilers. I have uncommented the line in >Gemenviron to use the gcc compilers, and it's using them. A "make all" goes >for about 2 minutes, then I see: > >----------------------------------------------------- >g77 -I/export/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/gempak/include -I/e >xport/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/gempak/include/SunOS -O2 -c >ginitp.f >MCHPRM.PRM: In subroutine `ginitp': >MCHPRM.PRM:32: > PARAMETER ( CHNULL = CHAR (0) ) > ^ >Invalid declaration of or reference to symbol `char' at (^) [initially seen >at (^)] >MCHPRM.PRM:76: > PARAMETER ( IGBSIZ = (128*(1+INT((IGBSZM-1)/128)))) > ^ >Invalid declaration of or reference to symbol `int' at (^) [initially seen >at (^)] >MCHPRM.PRM:76: > PARAMETER ( IGBSIZ = (128*(1+INT((IGBSZM-1)/128)))) > ^ >Expression at (^) has incorrect data type or rank for its context >MCHPRM.PRM:83: > PARAMETER ( IGDSIZ = (128*(1+INT((IGDSZM-1)/128)))) > ^ >Expression at (^) has incorrect data type or rank for its context >*** Error code 1 >make: Fatal error: Command failed for target >`/export/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/lib/sol/appl.a(ginitp.o) >' >Current working directory >/export/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/gempak/source/appl/access >*** Error code 1 >make: Fatal error: Command failed for target `all' >Current working directory >/export/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/gempak/source/appl >*** Error code 1 >make: Fatal error: Command failed for target `all' >Current working directory >/export/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/gempak/source >*** Error code 1 >make: Fatal error: Command failed for target `all' >Current working directory >/export/home/gempak/GEMPAK5.7.4_source/GEMPAK5.7.4/gempak >*** Error code 1 >make: Fatal error: Command failed for target `all' >------------------------------------------------------ > >Any clues? I found a message in the archive with this exact error, but >there was no resolution given, just a suggestion to use the binary >distribution. I need to build this because I'm tweaking the SFL604 program. >Thanks for any help! > >Patrick > -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.