8 Replies Latest reply on Jun 5, 2007 4:04 PM by ViragSharma

    Unrecognized option (gcc) -no_cpprt

    14728
      I am doing a fresh installation of 10gR2 (X86) on Oracle Enterprise Linux 4. I have installed all the packages required, and the pre-reqs test passes.

      However during installation I hit an error on gcc with "unrecognized option" -no_cpprt.

      Has anyone come across this? Do I need an older version of gcc package?

      rpm -q gcc gives gcc-3.4.6-8.0.1

      Thanks in advance.
        • 1. Re: Unrecognized option (gcc) -no_cpprt
          ViragSharma
          Can you share more info on error , post error from log file. Also let us know what value you have set for LD_ASSUME_KERNEL .

          Virag
          • 2. Re: Unrecognized option (gcc) -no_cpprt
            14728
            LD_ASSUME_KERNEL is unset in my environment.

            Its difficult for me to post the log as its inside a virtual machine, and I don't have network access to it.

            Basically get:
            INFO: gcc:
            INFO: unrecognized option '-no_cpprt'
            • 3. Re: Unrecognized option (gcc) -no_cpprt
              Ivan Kartik
              1. Can you post last 15 lines from $ORACLE_HOME/install/make.log file?
              2. Can you post output from command as following?:
              rpm -qa|egrep 'gcc|cpp|compat|glibc|libstdc'|sort
              • 4. Re: Unrecognized option (gcc) -no_cpprt
                14728
                Last 15 lines:
                /app/oracle/product/10.2.0/beyond/lib//libclntsh.so: undefined reference to `nnfyboot'
                /app/oracle/product/10.2.0/beyond/lib//libclntsh.so: undefined reference to `nnfoboot'
                collect2: ld returned 1 exit status
                make: *** [app/oracle/product/10.2.0/beyond/rdbms/lib/dbv] Error 1
                /usr/bin/make -f ins_rdbms.mk ipc_udp/rm -f /app/oracle/product/10.2.0/beyond/lib/libskgxp10.so
                cp /app/oracle/product/10.2.0/beyond/lib//libskgxpu.so /app/oracle/product/10.2.0/beyond/lib/libskgxp10.so
                /usr/bin/make -f ins_emdb.mk collector ORACLE_HOME=/app/oracle/product/10.2.0/beyond/make -f /app/oracle/product/10.2.0/beyond/sysman/lib/ins_emdb.mk relink_exe EXENAME=nmccollector
                make[1]: Entering directory `/app/oracle/product/10.2.0/beyond/sysman/lib'
                gcc -o /app/oracle/product/10.2.0/beyond/sysman/lib/nmccollector -L/app/oracle/product/10.2.0/beyond/lib/ -L/app/oracle/product/10.2.0/beyond/sysman/lib/     `cat /app/oracle/product/10.2.0/beyond/lib/sysliblist` -Wl,-rpath,/app/oracle/product/10.2.0/beyond/lib -lm    `cat /app/oracle/product/10.2.0/beyond/lib/sysliblist` -ldl -lm   -L/app/oracle/product/10.2.0/beyond/lib -Wl,-export-dynamic /app/oracle/product/10.2.0/beyond/sysman/lib/snmccolm.o /app/oracle/product/10.2.0/beyond/sysman/lib/libnmccol.a /app/oracle/product/10.2.0/beyond/sysman/lib/libnmcbuf.a /app/oracle/product/10.2.0/beyond/sysman/lib//libnmadbg.a /app/oracle/product/10.2.0/beyond/rdbms/lib/libdsga10.a /app/oracle/product/10.2.0/beyond/lib/libserver10.a /app/oracle/product/10.2.0/beyond/lib/libclntsh.so    `cat /app/oracle/product/10.2.0/beyond/lib/sysliblist` -ldl -lm
                /app/oracle/product/10.2.0/beyond/lib/libclntsh.so: undefined reference to `nnfyboot'
                /app/oracle/product/10.2.0/beyond/lib/libclntsh.so: undefined reference to `nnfoboot'
                collect2: ld returned 1 exit status
                make[1]: *** [app/oracle/product/10.2.0/beyond/sysman/lib/nmccollector] Error 1
                make[1]: Leaving directory `/app/oracle/product/10.2.0/beyond/sysman/lib'
                make: *** [nmccollector] Error 2
                Output from rpm -qa :
                compat-db-4.1.25-9
                cpp-3.4.6-8.0.1
                gcc-3.4.6-8.0.1
                gcc-c++-3.4.6-8.0.1
                gcc-g77-3.4.6-8.0.1
                gcc-java-3.4.6-8.0.1
                glibc-2.3.4-2.36
                glibc-common-2.3.4-2.36
                glibc-devel-2.3.4-2.36
                java-1.4.2-gcj-compat-1.4.2.0-27jpp
                libgcc-3.4.6-8.0.1
                libstdc++-3.4.6-8.0.1
                • 5. Re: Unrecognized option (gcc) -no_cpprt
                  Ivan Kartik
                  Install libstdc++-devel package.

                  Can you post output from following command?
                  uname -mpi
                  Can you post exact archive name (or URL) if DB installation SW that you downloaded?
                  • 6. Re: Unrecognized option (gcc) -no_cpprt
                    14728
                    Package Installed.

                    uname -mpi
                    i686 i686 i386
                    Downloaded

                    Oracle Database 10g Release 2 (10.2.0.1.0)
                    Enterprise/Standard Edition for Linux x86

                    From:
                    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html
                    • 7. Re: Unrecognized option (gcc) -no_cpprt
                      14728
                      Thanks for your help chaps - with a bit of further digging was missing:

                      compat-libstdc++-33-3.2.3-47.3.i386.rpm
                      • 8. Re: Unrecognized option (gcc) -no_cpprt
                        ViragSharma
                        Login as oracle user and set following parameter

                        ORACLE_HOME
                        PATH=$ORACLE_HOME/bin:$PATH
                        LD_ASSUME_KERNEL=2.4.19

                        after that run

                        relink all

                        You will not get error/warining "Unrecognized option (gcc) -no_cpprt"

                        Virag