Kernel compile fail with CFLAGS

Well something really strange is happening when i try to complile my 2.6 kernel with these flags
make CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
In file included from include/linux/kernel_stat.h:5,
from init/main.c:33:
include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from init/main.c:33:
include/linux/kernel_stat.h:28: error: `NR_IRQS' undeclared here (not in a function)
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
i really dont understand why i am getting this error.I believe that i must include some features to my kernel config since i am trying to   get the best out of it.Any help?

Simply don't do hardcore optimalization for your kernel, it is already optimized by hand where needed, so it shouldn't make that much difference. Don't do much else than -march=cputype, and best you can do is compiling it with a newer GCC version. It's better to keep it small by choosing only the features you need than to make it unstable or break it with extreme optimalizations that only work counter-productive like -O3. If you want something big and important to attack, then take a look at glibc...

Similar Messages

  • Manual Kernel Compilation fails with "Error: not a valid kernel..."

    I wanted to try out the Zen kernel to compile my own custom kernel. The basic steps that I did were:
    1. $ make localmodconfig
    2. $ make -j3
    3. # make modules_install
    4. # cp -v ~/<build directory>/arch/x86_64/boot/bzImage /boot/vmlinuz-linux-zen-3.1.4.img
    5. # mkinitcpio -k vmlinuz-linux-zen-3.1.4 -g /boot/initramfs-linux-zen-3.1.4
    and I get the error:
    ==> ERROR: '/lib/modules/vmlinuz-linux-zen-3.1.4' is not a valid kernel module directory
    Inside of /lib/modules I have a new files called "3.1.4-zen-ARCH-g30db333 (and the original files that were there from the stock kernel).
    Inside of /boot/ I have the stock image and the stock initram as well as "vmlinuz-linux-zen-3.1.4.img"
    Which step am I missing? Also, I was thinking it was possible to NOT use an initram if I just compiled the ext2 and ext4 (root is ext4) into the kernel instead of building them as modules. Is my thinking correct? Also, if anyone needs a reason why I'm using the zen sources instead of the nice Liquorix binary, the answer is simply that I wanted to mess around with it to satisfy my curiosity. Thanks.

    As per the man page:
    -k kernelversion
    Use kernelversion, instead of the current running kernel. This may be a path to a kernel image or a
    specific kernel version. If specified as a path to an image, this will always be prefixed by the basedir.
    You've picked... neither? I guess you want "/boot/vmlinuz-linux-zen-3.1.4.img" or "3.1.4-zen-ARCH-g30db333".
    Compiling the filesystem module into the kernel alone is not sufficient to avoid using an initramfs. You also need, at a minimum, drivers for the disk controller and a block device driver.
    Last edited by falconindy (2011-12-08 04:43:21)

  • [Solved] kernel 2.6.28.1 compilation fails with reiser4 patch

    Hi,
    has anyone had problems compiling the latest kernel with the reiser4 patch?
    The patching process itself completes successfully apart from this part:
    patching file include/linux/fs.h
    Hunk #1 succeeded at 1372 (offset 3 lines).
    Hunk #2 succeeded at 1811 (offset 3 lines).
    patching file mm/filemap.c
    While the compilation fails here
    CC fs/reiser4/plugin/file/file_conversion.o
    fs/reiser4/plugin/file/file_conversion.c: In function 'reiser4_write_begin_careful':
    fs/reiser4/plugin/file/file_conversion.c:689: error: implicit declaration of function '__grab_cache_page'
    fs/reiser4/plugin/file/file_conversion.c:689: warning: assignment makes pointer from integer without a cast
    make[2]: *** [fs/reiser4/plugin/file/file_conversion.o] Error 1
    make[1]: *** [fs/reiser4] Error 2
    make: *** [fs] Error 2
    Or is it just me doing something wrong?
    Last edited by moz (2009-01-23 13:08:27)

    moz wrote:
    Hi,
    has anyone had problems compiling the latest kernel with the reiser4 patch?
    The patching process itself completes successfully apart from this part:
    patching file include/linux/fs.h
    Hunk #1 succeeded at 1372 (offset 3 lines).
    Hunk #2 succeeded at 1811 (offset 3 lines).
    patching file mm/filemap.c
    While the compilation fails here
    CC fs/reiser4/plugin/file/file_conversion.o
    fs/reiser4/plugin/file/file_conversion.c: In function 'reiser4_write_begin_careful':
    fs/reiser4/plugin/file/file_conversion.c:689: error: implicit declaration of function '__grab_cache_page'
    fs/reiser4/plugin/file/file_conversion.c:689: warning: assignment makes pointer from integer without a cast
    make[2]: *** [fs/reiser4/plugin/file/file_conversion.o] Error 1
    make[1]: *** [fs/reiser4] Error 2
    make: *** [fs] Error 2
    Or is it just me doing something wrong?
    It is a well known issue

  • SWF Compilation Failed with "Submit All" Option

    Hi,
    I am using Captivate 6.1 and created a quiz with single choice questions. When I turn on the "Submit All" option, I can not preview/publish the file anymore. It says "SWF Compilation Failed." and I am advised to check if any user variables contain AS keywords. I am not using any user variables in this project. Whenever I turn the "Submit All" option off, preview/publish are possible again.
    When publishing to HTML5, the error does not occur.
    Can you please help me with this issue, since I would appreciate using the "Submit All" option.

    Hi
    Check this forum : http://forums.adobe.com/thread/1111120?tstart=0
         SWF compilation can come for following reasons:
    1) If you use action script keywords in Captibvate project variables.
    Resolution: Make sure you don't use action script keywords.
    2) If you have invisible characters present in text fields.
    Resolution: Don't Copy/Paste text from some other application to Captivate text fields like Project information etc. Type with key board. Create a blank project and publish, if you still get SWF compilation issue then your 64 bit JVM might be corrupted.
    3) if your installation is 64 bit Captivate, 64 bit JVM might be corrupted.
    Add  Use32BitJVMForPublish = 1  in AdobeCaptivate.ini  file
    Close and Re-launch Captivate.
    Re-publish the project
    Captivate ini file is present at “C:\Program Files\Adobe\Adobe Captivate 6 x64” location
    Thanks,
    Vj

  • Package compile faile with error ORA-03113: end-of-file on communication..

    Hi There,
    We're trying to compile a package and we're getting this error that we're not sure how to debug and/or tackle. Your assistance is highly appreciated.
    create or replace
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 4252
    Session ID: 1149 Serial number: 5910
    The package use to compile without any issues; also we have it working in other environments. We can't see any differences at this stage.
    Oracle Version:11.2.0.1 x64
    OS: Windows 2008 Server R2
    Thanks in advance for your help.
    Thanks

    I have tried dropping the package and re-compiling it but to no avail. I can compile other packages/procedures/functions without any issues.
    Also, trying to run either EXEC UTL_RECOMP.recomp_parallel(4, 'SCHEMA_NAME'); or @?/rdbms/admin/UTLRP.SQL gives the following erros:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7040
    Session ID: 388 Serial number: 9039
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of errors caught during
    DOC> recompilation. If this number is non-zero, please query the error
    DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
    DOC> are due to misconfiguration or resource constraints that must be
    DOC> fixed before objects can compile successfully.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE

  • Perl 5.10 64bit compile fails with gccfss 4.2 on Solaris 10 (5/08) SPARC

    Hi ,
    I am having problems building my own perl 5.10 using the new GCCFSS 4.2 compiler running Soalris 10(5/08) on SUN T5120 server. I get pass configure but fails at make, below are my configure options and the make error msg. Any help would be appreciated and I have been working on this problem for hours.
    Thanks,
    Kaprino
    sh Configure -Dcc="gcc -m64 -B/usr/ccs/bin/" -Dmake=/usr/css/bin/make -Dusethreads -Uuselargefiles -Duse64bitall -Dusesocks \
    -Dprefix=/opt/perl-5.10.0 \
    -Aldflags="-mcpu=v9 -m64" \
    -Alddlflags="-mcpu=v9 -m64 -G" -des
    #### Make Error message #####
    SOCKSinit perl.o
    ld: fatal: Symbol referencing errors. No output written to miniperl
    collect2: ld returned 1 exit status
    *** Error code 1
    make: Fatal error: Command failed for target `miniperl'
    Latest Compiler version
    gcc -vUsing built-in specs.
    Target: sparc-sun-solaris2.10
    Configured with: /net/clpt-v490-1/export/data/bldmstr/20080102_phobos_gcc42/src/configure prefix=/usr/sfw enable-shared with-system-zlib enable-checking=release disable-libmudflap enable-languages=c,c++ enable-version-specific-runtime-libs with-cpu=v9 with-ld=/usr/ccs/bin/ld without-gnu-ld disable-gnattools with-mpfr=/ws/gccfss/tools --with-gmp=/ws/gccfss/tools
    Thread model: posix
    gcc version 4.2.0 (gccfss)

    Hi All,
    Thanks for ur reply, but still im getting the below error
    *** Error code 1
    The following command caused the error:
    test ! -f gcc/Makefile || exit 0; \
    [ -d gcc ] || mkdir gcc; \
    r=`${PWDCMD-pwd}`; export r; \
    s=`cd .; ${PWDCMD-pwd}`; export s; \
    CC="gcc"; export CC; \
    CFLAGS="-g -O2"; export CFLAGS; \
    CONFIG_SHELL="/bin/sh"; export CONFIG_SHELL; \
    CXX="c++"; export CXX; \
    CXXFLAGS="-g -O2"; export CXXFLAGS; \
    TOPLEVEL_CONFIGURE_ARGUMENTS="configure --prefix=/usr/sfw --enable-shared --with-system-zlib --enable-checking=LIST --disable-libmudflap -enable-language=c,c++--enable-version-specific-runtime-libs --with-cpu=v9-m64-Aldflags=-mcpu=v9-m64-Alddlflags=-mcpu=v9-m64-G --with-ld=/usr/ccs/bin/ld --without-gnu-ld --disable-gnattools --with-mpfr=/ws/gccfss/tools --with-gmp=/ws/gccfss/tools"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
    AR="ar"; export AR; \
    AS="as"; export AS; \
    CC_FOR_BUILD="gcc"; export CC_FOR_BUILD; \
    DLLTOOL="dlltool"; export DLLTOOL; \
    LD="/usr/ccs/bin/ld"; export LD; \
    NM="nm"; export NM; \
    RANLIB="ranlib"; export RANLIB; \
    WINDRES="windres"; export WINDRES; \
    OBJCOPY=""; export OBJCOPY; \
    OBJDUMP=""; export OBJDUMP; \
    SET_GCC_LIB_PATH_CMD="LD_LIBRARY_PATH=/dumps/gcc/gcc-3.4.6/gcc; export LD_LIBRARY_PATH;"; export SET_GCC_LIB_PATH_CMD; \
    LD_LIBRARY_PATH=/dumps/gcc/gcc-3.4.6/gcc; export LD_LIBRARY_PATH; \
    echo Configuring in gcc; \
    cd gcc || exit 1; \
    case . in \
    srcdiroption="--srcdir=."; \
    libsrcdir=".";; \
    /* | [A-Za-z]:[\\/]*) \
    srcdiroption="--srcdir=./gcc"; \
    libsrcdir="$s/gcc";; \
    srcdiroption="--srcdir=.././gcc"; \
    libsrcdir="$s/gcc";; \
    esac; \
    /bin/sh ${libsrcdir}/configure \
    cache-file=./config.cache build=sparc-sun-solaris2.10 host=sparc-sun-solaris2.10 target=sparc-sun-solaris2.10 prefix=/usr/sfw enable-shared with-system-zlib enable-checking=LIST disable-libmudflap -enable-language=c,c++enable-version-specific-runtime-libs with-cpu=v9-m64-Aldflags=-mcpu=v9-m64-Alddlflags=-mcpu=v9-m64-G with-ld=/usr/ccs/bin/ld without-gnu-ld disable-gnattools with-mpfr=/ws/gccfss/tools with-gmp=/ws/gccfss/tools with-gcc-version-trigger=/dumps/gcc/gcc-3.4.6/gcc/version.c program-transform-name='s,y,y,' ${srcdiroption} \
    || exit 1
    make: Fatal error: Command failed for target `configure-gcc'
    pls help me.
    Regards,
    Suresh.
    Edited by: ssubrama on Mar 4, 2009 1:18 AM

  • Applescript compile fails with "Expected end of line, etc. but found identifier"

    Hi,
    I've written my first applescript to move messages in Micorosoft Outlook to a specific folder.  It is based on existing scripts I found on the internet.  However my version keeps failing to compile with the error "Expected end of line, etc. but found identifier".  I tried the exact same script on another Mac and it works.  I created a very simple version of the script to show the error.  All I am trying to do is get the current selected messages so I can move them:
    on run {}
        tell application "Microsoft Outlook"       
            set selectedMessages to current messages
        end tell
    end run
    and I still get the same errors on the word "messages" above.
    MAC is running OSX 10.9.4
    Microsoft Outlook for Mac 2011 - version 14.4.3 (140616)
    Since the script works on other computers the only thing I can assume is something wrong with the setup.
    Any help is greatly appreciated.
    - Ben

    Frank Caggiano wrote:
    twtwtw
    Any reason that the parens would be needed on some cases and not in others? As you can see the code the OP posted compiled fine on my system with no need of the parens. Also the OP mentioned that the code did work on one machine but not another so I would assume again the parens were not needed in that case.
    JUst curious
    regards
    Parentheses have the same function here as they do in mathematical equations. They are cues to the compiler about the order in which different parts of the statement should be processed. The problem here, I think, is that the word current is part of a lot of applescript nouns: current date, current application, current messages, current user, current track, current location, etc. That's exacerbated by the fact that message is also a noun in its own right in Outlook, creating an ambiguous bit of grammar. Applescript has to interpret the presence of that word in context, and several factors - different versions of the OS or of the relevant applications, the presence of different osaxen, runtime issues that alter how the Applescript system reads in the scriptability information - could affect how that interpretation plays out.
    Context is (apparently) everything, sometimes.

  • JSP compilation failed with java.lang.IllegalStateException: zip file close

    Hi,
    I have a web app successfully deployed on Weblogic7.0 and HP UX 11.0, which uses jdk 1.3.1_02
    In this application, when i invoke a jsp (this exception occurs on any jsp not to any specific jsp), i found the following exception trace on wl-domain.log file and server crashes: -
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(Unknown Source)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java, Compiled Code)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.upToDate(ChangeAwareClassLoader.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java, Compiled Code)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java, Compiled Code)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java, Compiled Code)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Code)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Can anyone help me in figuring out this problem urgently?
    thanks in advance
    manoj

    Hi Manoj.I am also getting the same problem in the weblogicserver version-6.1 SP2.It is also using the jdk 1.31.
    here is my stack trace.Help i smuch appreciated.!!
    java.lang.IllegalStateException: zip file closed
         at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:197)
         at weblogic.servlet.internal.WarClassFinder.getSource(WarClassFinder.java:106)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:53)
         at weblogic.utils.classloaders.MultiClassFinder.getClassSource(MultiClassFinder.java:45)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:265)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:65)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
         at com.slfc.framework.service.ServiceMessageFactory.createServiceResult(ServiceMessageFactory.java:58)
         at sunlife.nexus.admin.SecPro.establishSupportSession(Unknown Source)
         at sunlife.nexus.admin.Page_secPro_extAppLoader.processPageRequest(Unknown Source)
         at sunlife.wis.servlets.WISServlet.redirect(WISServlet.java:63)
         at sunlife.wis.servlets.WISServlet.doExec(WISServlet.java:107)
         at sunlife.wis.servlets.WISServlet.doGet(WISServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • Compiling failed with "unrecognized command line option '-Wl'" error

    Helllo,
    I have here a fresh installation of Archlinux and I fall into troubles with compiling a few of applications from AUR.
    The problem is this:
    gcc: error: unrecognized command line option ‘-Wl’
    It happens for example with bubblefishymod package from AUR. I've never seen this error.
    Any suggestion, what is wrong, please?
    I have 64bit Archlinux installation, intel core i5, base-devel package group is installed.

    Seems like a straightforward error message. Read about -Wl in "man gcc" if you want to know more.
    In the meantime, removing "-Wl" from the LDFLAGS in the Makefile (I used a sed line in the PKGBUILD) should allow you to compile it successfully. Whether or not it works as expected though, is another matter entirely. Contact the author and get him to fix his Makefile.

  • FPGA Compilation fails with Xilinx "Block Memory Generator 8.1" configured with a Coefficient File

    Hello All,
    I have a SubVI that uses block memory, which has been created using Xilinx "Block Memory Generator 8.1". I have configured this block memory to be a "Single Port ROM", and I use a coefficient file to initialize the memory contents. In simulation mode, everything works as it should.
    Next, when I try to compile the top-level VI, I get the following error:
    http://www.cs.nyu.edu/~aditya/Compilation_Log_100.txt
    http://www.cs.nyu.edu/~aditya/Dividing (This is the coefficient file)
    Essentially, the compiler is looking at an ill-formed path to find the coefficient file.
    My environment:
    -- LabView 2014 f1 (32 Bit)
    -- FPGA module 2014
    -- RT Module 2014
    -- Xilinx Vivado 2013.4
    -- NI RIO Drivers 14
    -- Development Machine and Conpile Server: Windows 7 Professional, 32GB RAM
    -- Compile Worker running Linux, with Xilinx Compile tools installed
    Is this a bug, or am I doing something wrong? Thanks!
    Best,
    Aditya

    Next, I tried compiling on the windows machine itself. And here is the error that I get. (See attached image).
    Thanks!
    best,
    aditya
    Attachments:
    Capture.PNG ‏18 KB

  • RMI Compiling fails with

    Hi,
    I wrote an very small RMI program. It only demonstrate the function of rmi. But if I want to compile the necessery sources with the rmic-compiler, I get the follow output:
    <cmd>
    D:\Projekte\Eclipse\Arbeit\RmiTest>rmic de.lindcom.rmivoodoo.server.VoodooImpl
    error: Class de.lindcom.rmivoodoo.server.VoodooImpl not found.
    1 error
    </cmd>
    The class VoodooImpl:
    package de.lindcom.rmivoodoo.server;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    import de.lindcom.rmivoodoo.rmi.Voodoo;
    import de.lindcom.rmivoodoo.rmi.VoodooResponse;
    public class VoodooImpl
        extends UnicastRemoteObject
        implements Voodoo {
        private String spell;
        protected VoodooImpl()
            throws RemoteException { 
        public void setSpell(String spell)
            throws RemoteException {
            this.spell = spell;
        public String getSpell()
            throws RemoteException {
            return spell;       
        public VoodooResponse doVoodoo()
            throws RemoteException {
            VoodooResponseImpl vri = new VoodooResponseImpl();
            vri.setSpell(spell);
            vri.setSuccess(true);
            return vri;      
    }The project itself works on an other pc. Maybe some PATH-variables are wrong:
    JAVA_HOME=C:\Programme\Java\jdk1.5.0_06
    Path=C:\WINNT\system32;C:\WINNT;C:\Programme\Java\jdk1.5.0_06\bin
    But these paths are correct. Where is the problem?!
    Thanks for help
    Michael

    Hi,
    thanks. You're right. I added a dot to the classpath and it worked!
    Gr��e
    Michael

  • Procedure compilation failed with SQL command not properly ended error

    Hi All,
    Kindly help me to fix this.
    I am compiling a procedure and getting an error. Procedure and error details are as follows:
    Procedure:
    CREATE or REPLACE PROCEDURE jiostore_new.auditReportCount (u_name IN VARCHAR2,stdate IN DATE,eddate IN DATE)
    IS
    BEGIN
    DECLARE Total Number;
    BEGIN
    SELECT COUNT(am.id) into Total FROM auditMaster_ AS am  INNER JOIN jioworld.deviceos_ dvos ON dvos.id=am.deviceOs WHERE am.updatedBy=u_name or am.updatedBy=ALL AND DATE(am.updatedDate)>=stdate OR DATE(am.updatedDate)='0000-00-00' AND DATE(am.updatedDate)<=eddate or DATE(am.updatedDate)='0000-00-00';
    dbms_output.put_line('Total Count:' || Total);
    END;
    END;
    Error:
    Error(6,1): PL/SQL: SQL Statement ignored
    Error(6,50): PL/SQL: ORA-00933: SQL command not properly ended
    Regards,
    Vishal G

    2922723 wrote:
    Hi All,
    Kindly help me to fix this.
    I am compiling a procedure and getting an error. Procedure and error details are as follows:
    Procedure:
    CREATE or REPLACE PROCEDURE jiostore_new.auditReportCount (u_name IN VARCHAR2,stdate IN DATE,eddate IN DATE)
    IS
    BEGIN
    DECLARE Total Number;
    BEGIN
    SELECT COUNT(am.id) into Total FROM auditMaster_ AS am  INNER JOIN jioworld.deviceos_ dvos ON dvos.id=am.deviceOs WHERE am.updatedBy=u_name or am.updatedBy=ALL AND DATE(am.updatedDate)>=stdate OR DATE(am.updatedDate)='0000-00-00' AND DATE(am.updatedDate)<=eddate or DATE(am.updatedDate)='0000-00-00';
    dbms_output.put_line('Total Count:' || Total);
    END;
    END;
    Error:
    Error(6,1): PL/SQL: SQL Statement ignored
    Error(6,50): PL/SQL: ORA-00933: SQL command not properly ended
    Regards,
    Vishal G
    The first thing, is that for your own sanity you should learn to format your code for readability.  And for the sanity of those from whom you seek help, you should learn to preserve that formatting when you post to a forum:
    CREATE OR REPLACE PROCEDURE jiostore_new.auditReportCount(
        u_name IN VARCHAR2,
        stdate IN DATE,
        eddate IN DATE)
    IS
    BEGIN
      DECLARE
        Total NUMBER;
      BEGIN
        SELECT COUNT(am.id)
        INTO Total
        FROM auditMaster_ AS am
        INNER JOIN jioworld.deviceos_ dvos
        ON dvos.id              =am.deviceOs
        WHERE am.updatedBy      =u_name
        OR am.updatedBy          =ALL
        AND DATE(am.updatedDate)>=stdate
        OR  DATE(am.updatedDate) ='0000-00-00'
        AND DATE(am.updatedDate)<=eddate
        OR  DATE(am.updatedDate) ='0000-00-00';
        dbms_output.put_line('Total Count:' || Total);
      END;
    END;
    What is the data type of am.updateDate?  It appears to be a varchar being passed to a function named DATE to convert it to a DATEfor comparison to your input parameters,  But you also compare it to strings. 
    Where are the variables 'u_name' and 'ALL'?  (and what kind of a name is that for a variable -- 'ALL'?)

  • CC 5.2 fails with "cannot open file /tmp/*ir*"

    Hi,
    compilation fails with an error message like
    "Could not open file "/tmp/06710.TEMPLATE_FILE.ir"". The problem seems to be that the compiler once in a while is "leaking" these temp files (they seem to accumulate in /tmp over time) and the compiler cannot overwrite a different user's temp files. I am not sure if it matters, but all this is in a dmake context.
    Why is CC generating these files in /tmp and not locally? Why doesn't it make them more unique e.g. 06710.user.TEMPLATE_FILE.ir? Is there a way to work around this problem?
    Thanks.
    philipp

    extract the bundle and import the zip file enic-2.1.2.62-esx55-offline_bundle-2340678.zip to VUM
    same for the fnic package

  • [SOLVED]Compiling kernel fails with segfault

    Hi guys,
    I'm out of answers.
    The situation :
    Compiling kernel randomly stops with : "segmentation fault" and never runs through.
    Reissuing make will make it continue until it will fail at some other point.
    Background:
    The system feels completely unstable to say the least, but nothing 100 % reproduceable ( vuze(java) crash, firefox/chromuim flash sites crash every 120 seconds, X crashes once a day , for instance when moving tvtime around, kernel oops daily, sometimes hard lockups, logs of yesterdays oops : http://pastie.org/private/imrqdzdbejdb3jxn4czuw )
    But only the kernel compile is 100 % reproduceable so this must be fixed asap.
    Specs:
    intel e8400,nvidia gtx260, 2 G ddr2,Gigabyte EP45-UD3R, "gigs of space", off. arch kernel 2.6.33-ARCH , x86_64,  "bigtime" cooling :
    cpu temps 50 C° max  during compiling
    What configs/packages are important ? I got paranoid and ditched my old makgepkg.conf and used a newer *.pacnew file , I used to have  :MAKEFLAGS="-j3" but not in this config :
    http://pastie.org/private/4ryshivi2hgyqenjlkicg
    local packages:
    local/gcc 4.5.0-1 (base-devel)
        The GNU Compiler Collection
    local/gcc-libs 4.5.0-1 (base)
        Runtime libraries shipped by GCC for C and C++ languages
    Anything else updated daily.
    The blowup:
    http://pastie.org/private/hoamev0sli7zapbr0xvpbq
    What I tried:
    fsck -f: it fixed two inodes, but still the same behavior
    badblocks -nvs : three hours of badblock testing, 0 hits
    memtest : two passed runs, no errors
    stress from AUR, 15 minutes :
    stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 15m
    stress: info: [26841] dispatching hogs: 8 cpu, 4 io, 2 vm, 0 hdd
    stress: info: [26841] successful run completed in 900s
    Max coretemp was 52 C° during stress.
    The usual footnote statement ^_^ :
    On w7 _everything_ runs stable.
    And not only stable , I'm able to OC this box to 4.5 GHz and game under w7 without a prop for hours, well this is what it was build for at some point.
    Conclusion:
    So I'd say hardware wise this box kicks ass and now software wise my Arch kicks me in the a**.
    I doubt there is a faulty hardware part, but what else could it be ?
    Last edited by tuxfusion (2010-05-17 22:48:06)

    Update:
    Trying to compile another big package just to have another result, gcc itself now :
    - segfault after 4 m18 s
    - segfault after 5 m50 s
    Update²:
    I think I found a faulty BIOS setting in my non-OC profile concerning DRAM termination, which said "normal" where "auto" would be correct.
    My OC-profile has this setting correct and since I run this profile in Arch only it might explain that w7 did not fail.
    Still have to verify this but i makes perfect sense, only gcc seems to trigger this. Compiling gcc still running with over 10 minutes in the game now.
    After hitting 4.5 GHz with OC I must have reset the non OC-profile wrong.
    *slams head on desk*
    Last edited by tuxfusion (2010-05-17 13:10:04)

  • Kernel compiling - mount failed: No such device?

    Hello everyone!
    I'm having an issue with mounting the linux kernel I've just compiled.  What I've done:
    -  I've patched linux-2.6.33.3 with patch-2.6.33.3-rt19 by issuing bzcat ../patch-2.6.33.3-rt19.bz2 | patch -p1
    -  sudo make -j4 all
    -  sudo make modules_install
    -  sudo mkinitcpio -g /boot/kernel26rt.img -k 2.6.33.3-rt19
    -  sudo cp ./arch/x86/boot/bzImage /boot/vmlinuz2.6.33.3x86-rt
    -  sudo cp ./System.map /boot/System.map2.6.33.3x86-rt
    -  sudo rm /boot/System.map
    -  sudo ln -s /boot/System.map2.6.33.3x86-rt /boot/System.map
    -  Edit grub/menu.lst:
    # (0) Arch Linux
    title Arch Linux2
    root (hd0,2)
    kernel /vmlinuz26 root=/dev/disk/by-label/root ro
    initrd /kernel26.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,2)
    kernel /vmlinuz26 root=/dev/disk/by-label/root ro
    initrd /kernel26-fallback.img
    # (2) Windows
    title Windows
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    # (3) RT Kernel
    title RT Linux
    root (hd0,2)
    kernel /vmlinuz2.6.33.3x86-rt root=/dev/disk/by-label/root ro
    initrd /kernel26rt.img
    Now when I select the rt kernel from grub, it fails with:
    mount: mounting /dev/disk/by-label/root on /new_root failed: No such device
    Can anyone help me figure out what went wrong?
    -nonpoly

    http://www.cs.bgu.ac.il/~arik/usail/net … /tips.html
    Look under "Common NFS Errors"
    I'm guessing you haven't installed nfs-utils and portmap on the client. Or you haven't started them. In the right order (portmap, then nfslock - you don't need to start nfsd on the client)

Maybe you are looking for

  • Changes done for sap user details

    Hi All, I need to know a standard transaction code or FM; which can give the information on the modifications/changes done for the sap user's first name; last name and e-mail id. Any help will be appreciated. Thanking you all in advance.

  • Firefox opening up AVG tabs on its own

    Hi guys I just got my pc back after it had a new power pack put in it I updated my avg since then firefox has been opening tabs on its own they all say avg secure search I know its not mailware or anything like that can anyone help me stop these tabs

  • Show Currency Symbol on Mac

    hii I have created a java application using swing. It takes the regional setting of system and based on it, it sets the currency symbol with price value. It works fine on Windows and Linux but When I try to run it on Mac, and I changed the regional s

  • View Usage Reports on search site

    Hi, In Sharepoint 2013, I have a Staff Directory based on a Entreprise Search. I found Popularity and Search Reports but I would like to  know the requests with : who do to request and what kind of request is done. Thank you in advance

  • Change Wildcard inclusion to Explicit inclusion SharePoint 2013

    I have a site collection on a wildcard managed path, as www.contoso.com/Commercial/Home, and the problem when anyone Open www.contoso.com/Commercial it says page cannot be found. How can I change the Wildcard type to Explicit type with the same site