2 Replies Latest reply: Nov 20, 2012 5:21 PM by 975318 RSS

    How do I get cc (Sun C) 5.8 on my Solaris 10 SPARC machine

    975318
      Hi,
      I am trying to compile something on Solaris 10 SPARC.
      I get an error (see below) and am told by the software provider I need
      "cc (Sun C) 5.8
      or
      cc (Sun C) 5.12"

      I do
      gcc -v and get
      $ gcc -v
      Reading specs from /export/local/bin/../lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
      Configured with: ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld enable-shared enable-languages=c,c++,f77
      Thread model: posix
      gcc version 3.4.6

      Also,
      $ whereis gcc
      gcc: /usr/local/bin/gcc

      My question is how do I get and install cc (Sun C) 5.8?


      Below is the error I get. Does it look like I need cc (Sun C) 5.8?
      Thanks,
      David
      ----------------------------------
      $ make -f makefile

      ./lmrand1 -i ../machind/lsvendor.c

      cc -c -g -I../machind -I. -DRELEASE_VERSION -g -xO3 -xarch=generic -xldscope=hidden -DARCH_SPARC -DOS_SOLARIS -DLM_INTERNAL -DFLEXLM_KITBUILD -DFLEX_STATIC -DRELEASE_VERSION -DGPLATFORM=\\"sun4_u9\\" -DSUNOS5 -DFD_SETSIZE=65535 -DNO_ACTIVATION_SUPPORT lmcode.c
      cc: language ldscope=hidden not recognized
      cc: lmcode.c: linker input file unused because linking not done
      cc -g -I../machind -I. -DRELEASE_VERSION -g -xO3 -xarch=generic -xldscope=hidden -DARCH_SPARC -DOS_SOLARIS -DLM_INTERNAL -DFLEXLM_KITBUILD -DFLEX_STATIC -DRELEASE_VERSION -DGPLATFORM=\\"sun4_u9\\" -DSUNOS5 -DFD_SETSIZE=65535 -DNO_ACTIVATION_SUPPORT -xarch=generic -B eliminate -z text -z defs -z verbose lmnewgen.o lmcode.o liblmgr.a libcrvs.a libsb.a -lsocket -lnsl -ldl -lpthread ./activation/lib/libnoact.a \
      -o lmnewgen
      cc: lmcode.o: No such file or directory
      cc: language arch=generic not recognized
      cc: language arch=generic not recognized
      cc: language arch=generic not recognized
      cc: language arch=generic not recognized
      cc: language arch=generic not recognized
      *** Error code 1
      make: Fatal error: Command failed for target `lm_new.o'

      Edited by: 972315 on Nov 20, 2012 11:16 AM