precompile

2008-09-29
2013-04-25
  • Nobody/Anonymous

    Hi,

    I am trying to precompile part of my code which uses stxxl. I am getting this error, when doing experiments with compiling:

    g++ -pthread  -DSORT_OPTIMAL_PREFETCHING -DUSE_MALLOC_LOCK -DCOUNT_WAIT_TIME -I/software/stxxl-1.2.1/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE    -Wall -g -DFOO=BAR  library.h -pthread -L/software/stxxl-1.2.1/lib -lstxxl
    /software/stxxl-1.2.1/include/stxxl/bits/containers/stack.h:494: internal compiler error: Bus error

    g++ --version
    i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

    it is a very simple test code for illustration purposes:
    ------- library.h ------------

    #include "stxxl.h"
    //#include <iostream>
    //#include <vector>

    void test_library(){

        typedef stxxl::VECTOR_GENERATOR<int, 2, 2, 2*1024>::result intVector;   

    //    typedef std::vector<int> intVector;   
        intVector v(10);
       
    };

    -----------------------------

    I'd appreciate some input, I don't know if I am doing something wrong in my makefile or form of defining the header file, or has something to do with the library.

    thanks

    -- Adan

     
    • Nobody/Anonymous

      Hi,

      this is a compiler bug, there could be nothing wrong in your makefile/headers. The solution is to use a newer g++ version.

      Roman

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks