octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compile the parallel package using clang


From: Olaf Till
Subject: Re: Compile the parallel package using clang
Date: Tue, 9 Aug 2016 18:57:30 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Aug 09, 2016 at 06:24:03PM +0200, Sebastian wrote:
> On 2016-08-09, Sebastian <address@hidden> wrote:
> > 
> > On 2016-08-09, Olaf Till <address@hidden> wrote:
> >> 
> >> On Mon, Aug 08, 2016 at 07:33:32AM -0700, Sebastian Schöps wrote:
> >>> Schöps, Sebastian wrote
> >>>> On 2016-08-05, Olaf Till &lt;
> >>> 
> >>>> i7tiol@
> >>> 
> >>>> &gt; wrote:
> >>>>> The problem is supposed to be fixed in the latest (un-released)
> >>>>> revision. If there is really a need, I could make a new release ready
> >>>>> soon.
> >>>> Thanks, a current development snapshots works perfectly!
> >>> 
> >>> It works fine on my Octave 4.1 but it fails on an older 4.0.3 with 
> >>> 
> >>> pserver.cc:36:10: fatal error: 'octave/interpreter.h' file not found
> >>> #include <octave/interpreter.h>
> >> 
> >> It compiles for me with Octave 4.0.. . Line 36 in pserver.cc is within
> >> an #ifdef block. It looks like you configured using octave-config of a
> >> recent Octave 4.1.0+, but compiled using mkoctfile of Octave 4.0.3.
> >> 
> >> Olaf
> > 
> > I checked carefully again. It seems that my development (4.1.0+)
> > and stable (4.0.3) installations are well separated. Maybe the
> > test for "interpreter.h" is bad and gives a false positive on my
> > system? Maybe it's due to clang?
> > 
> > Sebastian
> 
> Testing for call-stack.h is probably a better idea: it fails as
> expected on 4.0.3 but succeeds on 4.1.0+.

Configure sees interpreter.h, but mkoctfile doesn't; and the issue
doesn't occur with call-stack.h? I see no obvious logic in
this. Better we try to track down the reason for the issue.

What in detail are your steps in building the development package
(bootstrap, configure, make, what environment variables are set, or do
you use 'pkg', ...?)?

Can you insert these 2 lines into this position in configure.ac:

@@ -160,6 +160,8 @@
 # Start of checks for Octave features, preparations for checks.
 OCTLIBDIR=${OCTLIBDIR:-`$OCTAVE_CONFIG -p OCTLIBDIR`}
 OCTINCLUDEDIR=${OCTINCLUDEDIR:-`$OCTAVE_CONFIG -p OCTINCLUDEDIR`}
+echo "OCTAVE_CONFIG: ${OCTAVE_CONFIG}"
+echo "OCTINCLUDEDIR: ${OCTINCLUDEDIR}"
 AC_LANG_PUSH([C++])
 TCXXFLAGS=$CXXFLAGS
 TLDFLAGS=$LDFLAGS

bootstrap again and post the output, and insert this 1 line into this
position in Makefile.in

@@ -39,6 +39,7 @@
 CXXCPP = @CXXCPP@
 
 MKOCTFILE ?= @MKOCTFILE@
+$(info MKOCTFILE: $(MKOCTFILE))
 PKG_CONFIG ?= @PKG_CONFIG@
 ifndef CXXFLAGS
 CXXFLAGS := $(shell $(MKOCTFILE) -p CXXFLAGS)

configure and make again and post the output?

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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