6 Replies Latest reply on Apr 22, 2010 4:07 AM by santosh.zanjurne

    Error using AMD open64 Compiler

    usha.regadi
      gcc: error trying to ecec 'cc1': execvp: No such file directory

      I have installed open64 AMD copiler on RHEL 5.4 machine

      while compiling a .c file it is prompting this error

       

      gcc: error trying to ecec 'cc1': execvp: No such file directory

       

      regards

      usha

        • Error using AMD open64 Compiler
          dgilmore

          Could you append the -v option to the command line and post the output?

          Thanks,

          Doug

            • Error using AMD open64 Compiler
              usha.regadi

              ouput with -v option

               

              open64 compiler suite: 4.2.3.1

              built on 2010-01-28

              Thread modelosix

              GNU gcc version 4.2.0 (open64 4.2.3.1 driver )

               

              Regards

               usha

                • Error using AMD open64 Compiler
                  dgilmore

                  That's is strange, I attached a typescript of a simple test, could you also try a similar test and post the output. -- Thanks, Doug

                   

                  $ cat h.c
                  #include <stdio.h>

                  int main()
                  {
                     printf("hello world\n");
                      return 0;
                  }
                  $ opencc -v h.c -c
                  Open64 Compiler Suite: Version 4.2.3.1
                  Built on: 2010-01-28 17:54:35 -0800
                  Thread model: posix
                  GNU gcc version 4.2.0 (Open64 4.2.3.1 driver)
                  /home/qa/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/gcc -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -O2 -D__OPTIMIZE__ -v -xc -isystem /home/qa/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /home/qa/x86_open64-4.2.3.1/include -E -msse2 h.c -o /tmp/cci#.IYO5c0
                  Using built-in specs.
                  Target: x86_64-redhat-linux
                  Configured with: ../configure --prefix=/open64-gcc-4.2.0 --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-bootstrap --disable-libmudflap --disable-libssp --enable-threads=posix --disable-checking --enable-tls --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
                  Thread model: posix
                  gcc version 4.2.0
                   /home/qa/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../libexec/gcc/x86_64-redhat-linux/4.2.0/cc1 -E -quiet -v -iprefix /home/qa/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/ -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -D__OPTIMIZE__ -isystem /home/qa/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /home/qa/x86_open64-4.2.3.1/include h.c -o /tmp/cci#.IYO5c0 -msse2 -mtune=generic -O2
                  ignoring nonexistent directory "/home/qa/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/../../../../x86_64-redhat-linux/include"
                  ignoring nonexistent directory "/open64-gcc-4.2.0/include"
                  ignoring nonexistent directory "/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/include"
                  ignoring nonexistent directory "/open64-gcc-4.2.0/x86_64-redhat-linux/include"
                  #include "..." search starts here:
                  #include <...> search starts here:
                   /home/qa/x86_open64-4.2.3.1/include/4.2.3.1
                   /home/qa/x86_open64-4.2.3.1/include
                   /home/qa/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/include
                   /usr/local/include
                   /usr/include
                  End of search list.
                  /home/qa/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/cc142 -O2 -fcxx-openmp -msse2 -dx -version -quiet -fpreprocessed -fbuiltin -dumpbase h.c /tmp/cci#.IYO5c0 -spinfile /tmp/ccspin#.tZtYjn
                  GNU C version 4.2.0 (x86_64-redhat-linux)
                   compiled by GNU C version 4.1.2 20070115 (SUSE Linux).
                  GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
                  Compiler executable checksum: dcded2de4e6de561880e0bddd3221280
                  /home/qa/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/wgen42 -fS,/tmp/ccspin#.tZtYjn -fB,/tmp/ccB#.BLqSxK
                  Compiling vprintf(0)
                  Compiling getchar(1)
                  Compiling fgetc_unlocked(2)
                  Compiling getc_unlocked(3)
                  Compiling getchar_unlocked(4)
                  Compiling putchar(5)
                  Compiling fputc_unlocked(6)
                  Compiling putc_unlocked(7)
                  Compiling putchar_unlocked(8)
                  Compiling feof_unlocked(9)
                  Compiling ferror_unlocked(10)
                  Compiling main(11)
                  /home/qa/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/inline -LIST:source=off:notes=off -PHASE:w:c -O2 -show -TARG:abi=n64 -LANG:cxx_openmp=on -fB,/tmp/ccB#.BLqSxK -fI,/tmp/ccI#.mkCtP7 h.c

                  /home/qa/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/be -LIST:source=off:notes=off -PHASE:w:c -G8 -O2 -show -TARG:abi=n64 -LANG:cxx_openmp=on -LANG:=ansi_c -TARGrocessor=athlon64 -TARG:sse2=on -TARG:mmx=on -TARG:sse=on -TARG:sse3=off -TARG:3dnow=off -TARG:sse4a=off -TARG:ssse3=off -TARG:sse41=off -TARG:sse42=off -TARG:aes=off -TARGclmul=off -TARG:avx=off -TARG:xop=off -TARG:fma4=off -fB,/tmp/ccI#.mkCtP7 -s -fs,/tmp/ccspin#.tZtYjn.s h.c
                  Compiling h.c (/tmp/ccI#.mkCtP7) -- Back End
                  Compiling vprintf(0)
                  Compiling getchar(1)
                  Compiling fgetc_unlocked(2)
                  Compiling getc_unlocked(3)
                  Compiling getchar_unlocked(4)
                  Compiling putchar(5)
                  Compiling fputc_unlocked(6)
                  Compiling putc_unlocked(7)
                  Compiling putchar_unlocked(8)
                  Compiling feof_unlocked(9)
                  Compiling ferror_unlocked(10)
                  Compiling main(11)

                  /home/qa/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/gcc -v /tmp/ccspin#.tZtYjn.s -c -o h.o
                  Using built-in specs.
                  Target: x86_64-redhat-linux
                  Configured with: ../configure --prefix=/open64-gcc-4.2.0 --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-bootstrap --disable-libmudflap --disable-libssp --enable-threads=posix --disable-checking --enable-tls --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
                  Thread model: posix
                  gcc version 4.2.0
                   /usr/bin/as -V -Qy -o h.o /tmp/ccspin#.tZtYjn.s
                  GNU assembler version 2.17.50.0.6-9.el5 (x86_64-redhat-linux) using BFD version 2.17.50.0.6-9.el5 20061020
                  $

                    • Error using AMD open64 Compiler
                      usha.regadi

                      Open64 Compiler Suite: Version 4.2.3.1
                      Built on: 2010-01-28 17:54:35 -0800
                      Thread model: posix
                      GNU gcc version 4.2.0 (Open64 4.2.3.1 driver)
                      /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/gcc -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -O2 -D__OPTIMIZE__ -v -xc -isystem /opt/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /opt/x86_open64-4.2.3.1/include -E -msse2 test_open64.c -o /tmp/cci#.voRYaf
                      Using built-in specs.
                      Target: x86_64-redhat-linux
                      Configured with: ../configure --prefix=/open64-gcc-4.2.0 --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-bootstrap --disable-libmudflap --disable-libssp --enable-threads=posix --disable-checking --enable-tls --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
                      Thread model: posix
                      gcc version 4.2.0
                       /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../libexec/gcc/x86_64-redhat-linux/4.2.0/cc1 -E -quiet -v -iprefix /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/ -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -D__OPTIMIZE__ -isystem /opt/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /opt/x86_open64-4.2.3.1/include test_open64.c -o /tmp/cci#.voRYaf -msse2 -mtune=generic -O2
                      ignoring nonexistent directory "/opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/../../../../x86_64-redhat-linux/include"
                      ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../x86_64-redhat-linux/include"
                      #include "..." search starts here:
                      #include <...> search starts here:
                       /opt/x86_open64-4.2.3.1/include/4.2.3.1
                       /opt/x86_open64-4.2.3.1/include
                       /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/include
                       /usr/local/include
                       /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include
                       /usr/include
                      End of search list.
                      /opt/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/cc142 -O2 -fcxx-openmp -msse2 -dx -version -quiet -fpreprocessed -fbuiltin -dumpbase test_open64.c /tmp/cci#.voRYaf -spinfile /tmp/ccspin#.uHJ4oz
                      cc142: error: unrecognized command line option "-fcxx-openmp"
                      cc142: error: unrecognized command line option "-spinfile"
                      GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46) (x86_64-redhat-linux)
                              compiled by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46).
                      GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
                      [root@localhost ~]# opencc -v -o test_open64 test_open64.c > tmp
                      Open64 Compiler Suite: Version 4.2.3.1
                      Built on: 2010-01-28 17:54:35 -0800
                      Thread model: posix
                      GNU gcc version 4.2.0 (Open64 4.2.3.1 driver)
                      /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/gcc -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -O2 -D__OPTIMIZE__ -v -xc -isystem /opt/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /opt/x86_open64-4.2.3.1/include -E -msse2 test_open64.c -o /tmp/cci#.mLOG03
                      Using built-in specs.
                      Target: x86_64-redhat-linux
                      Configured with: ../configure --prefix=/open64-gcc-4.2.0 --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-bootstrap --disable-libmudflap --disable-libssp --enable-threads=posix --disable-checking --enable-tls --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
                      Thread model: posixgcc version 4.2.0
                       /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../libexec/gcc/x86_64-redhat-linux/4.2.0/cc1 -E -quiet -v -iprefix /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/ -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -D__OPTIMIZE__ -isystem /opt/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /opt/x86_open64-4.2.3.1/include test_open64.c -o /tmp/cci#.mLOG03 -msse2 -mtune=generic -O2
                      ignoring nonexistent directory "/opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/../../../../x86_64-redhat-linux/include"
                      ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../x86_64-redhat-linux/include"
                      #include "..." search starts here:
                      #include <...> search starts here:
                       /opt/x86_open64-4.2.3.1/include/4.2.3.1
                       /opt/x86_open64-4.2.3.1/include
                       /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/include
                       /usr/local/include
                       /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include
                       /usr/include
                      End of search list.
                      /opt/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/cc142 -O2 -fcxx-openmp -msse2 -dx -version -quiet -fpreprocessed -fbuiltin -dumpbase test_open64.c /tmp/cci#.voRYaf -spinfile /tmp/ccspin#.uHJ4oz
                      cc142: error: unrecognized command line option "-fcxx-openmp"
                      cc142: error: unrecognized command line option "-spinfile"
                      GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46) (x86_64-redhat-linux)
                              compiled by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46).
                      GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
                      [root@localhost ~]# opencc -v -o test_open64 test_open64.c > tmp
                      Open64 Compiler Suite: Version 4.2.3.1
                      Built on: 2010-01-28 17:54:35 -0800
                      Thread model: posix
                      GNU gcc version 4.2.0 (Open64 4.2.3.1 driver)
                      /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/gcc -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -O2 -D__OPTIMIZE__ -v -xc -isystem /opt/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /opt/x86_open64-4.2.3.1/include -E -msse2 test_open64.c -o /tmp/cci#.mLOG03
                      Using built-in specs.
                      Target: x86_64-redhat-linux
                      Configured with: ../configure --prefix=/open64-gcc-4.2.0 --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-bootstrap --disable-libmudflap --disable-libssp --enable-threads=posix --disable-checking --enable-tls --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
                      Thread model: posix
                      gcc version 4.2.0 /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../libexec/gcc/x86_64-redhat-linux/4.2.0/cc1 -E -quiet -v -iprefix /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/ -D__OPEN64__="4.2.3.1" -D__OPENCC__=4 -D__OPENCC_MINOR__=2 -D__OPENCC_PATCHLEVEL__=3.1 -D__OPTIMIZE__ -isystem /opt/x86_open64-4.2.3.1/include/4.2.3.1 -isystem /opt/x86_open64-4.2.3.1/include test_open64.c -o /tmp/cci#.mLOG03 -msse2 -mtune=generic -O2
                      ignoring nonexistent directory "/opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/../../../../x86_64-redhat-linux/include"
                      ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../x86_64-redhat-linux/include"
                      #include "..." search starts here:
                      #include <...> search starts here:
                       /opt/x86_open64-4.2.3.1/include/4.2.3.1
                       /opt/x86_open64-4.2.3.1/include
                       /opt/x86_open64-4.2.3.1/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/include
                       /usr/local/include
                       /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include
                       /usr/include
                      End of search list.
                      /opt/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/cc142 -O2 -fcxx-openmp -msse2 -dx -version -quiet -fpreprocessed -fbuiltin -dumpbase test_open64.c /tmp/cci#.mLOG03 -spinfile /tmp/ccspin#.89gT2B
                      cc142: error: unrecognized command line option "-fcxx-openmp"
                      cc142: error: unrecognized command line option "-spinfile"
                      GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46) (x86_64-redhat-linux)
                              compiled by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46).
                      GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

                       

                       

                      regards

                      usha

                        • Error using AMD open64 Compiler
                          dgilmore

                          Thanks for sending the output:

                          Here is something that seems odd.  In my test we have:

                          /home/qa/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/cc142 -O2 -fcxx-openmp -msse2 -dx -version -quiet -fpreprocessed -fbuiltin -dumpbase h.c /tmp/cci#.IYO5c0 -spinfile /tmp/ccspin#.tZtYjn
                          GNU C version 4.2.0 (x86_64-redhat-linux)
                           compiled by GNU C version 4.1.2 20070115 (SUSE Linux).
                          GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
                          Compiler executable checksum: dcded2de4e6de561880e0bddd3221280

                          But in your test we have:

                          /opt/x86_open64-4.2.3.1/lib/gcc-lib/x86_64-open64-linux/4.2.3.1/cc142 -O2 -fcxx-openmp -msse2 -dx -version -quiet -fpreprocessed -fbuiltin -dumpbase test_open64.c /tmp/cci#.voRYaf -spinfile /tmp/ccspin#.uHJ4oz
                          cc142: error: unrecognized command line option "-fcxx-openmp"
                          cc142: error: unrecognized command line option "-spinfile"
                          GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46) (x86_64-redhat-linux)
                                  compiled by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-46).
                          GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

                          The ID tag generated by the front-end phase (cc142) is different.

                          Did a rebuilt version of cc142 get installed?

                          Doug