octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43250] Octave fails to build with Intel Compi


From: Petr Belyaev
Subject: [Octave-bug-tracker] [bug #43250] Octave fails to build with Intel Compiler
Date: Thu, 18 Sep 2014 16:16:36 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0

URL:
  <http://savannah.gnu.org/bugs/?43250>

                 Summary: Octave fails to build with Intel Compiler
                 Project: GNU Octave
            Submitted by: upcfrost
            Submitted on: Thu 18 Sep 2014 04:16:35 PM GMT
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Octave fails to build with Intel Compiler.
I'm using 3.8.2 release + patch from
https://savannah.gnu.org/bugs/index.php?43171

It crashes like this

icpc ... -c numeric/SparseCmplxCHOL.cc -o
numeric/.libs/numeric_libnumeric_la-SparseCmplxCHOL.o
In file included from /usr/include/cholmod_check.h(70),
                 from /usr/include/cholmod.h(95),
                 from ./util/oct-sparse.h(73),
                 from numeric/sparse-base-chol.h(27),
                 from numeric/SparseCmplxCHOL.h(27),
                 from numeric/SparseCmplxCHOL.cc(28):
../libgnu/stdio.h(948): error: declaration is incompatible with previous
"getchar" (declared at line 538 of "/usr/include/stdio.h")
  _GL_CXXALIAS_SYS (getchar, int, (void));


And the same thing for putchar and vprintf functions.
Such error pops up for any file that uses ./liboctave/util/oct-sparse.h

The problem is somehow similar to the
https://savannah.gnu.org/bugs/index.php?43171 and
https://savannah.gnu.org/bugs/?43063, it occurs (imho) because of the
following include chain

oct-sparse.h -> cholmod.h -> extern "C" { ... cholmod_check.h ... } ->
stdio.h



As a temporal fix i've modified line 23 in stdio.in.h adding "defined
CHOLMOD_H"

#if defined __need_FILE || defined __need___FILE || defined
_GL_ALREADY_INCLUDING_STDIO_H || defined CHOLMOD_H






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43250>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]