octave-maintainers
[Top][All Lists]
Advanced

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

Re: build failure on OSX 10.9


From: John W. Eaton
Subject: Re: build failure on OSX 10.9
Date: Thu, 14 Nov 2013 11:28:52 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9

On 11/14/2013 10:29 AM, Ben Abbott wrote:
On Nov 14, 2013, at 3:50 AM, c. wrote:

On 14 Nov 2013, at 03:53, Ben Abbott <address@hidden> wrote:

On Nov 13, 2013, at 11:42 AM, Benjamin Abbott wrote:

On Nov 13, 2013, at 8:18 AM, "c." <address@hidden> wrote:

On 13 Nov 2013, at 14:15, Ben Abbott <address@hidden> wrote:

Carlo,

You might try looking at Fink's info file for 3.6.4 to see if there are any 
patches related to this.  Maybe the same for MacPorts?  Are you able to install 
3.6.4 via MacPorts?

Actually I was able to build without any changes until yesterday
so I suspect this might be due to some of the latest changesets

Ok.  I've pulled and now see the problem as well.  Maybe one of jwe's latest 
changesets?  I've cc'd him.

Ben

May be unrelated, but my build still fails with ....

/bin/sh ../libtool  --tag=CXX   --mode=compile /opt/local/bin/g++-mp-4.7 
-DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -I/opt/local/include/QtGui 
-I/opt/local/include -I/opt/local/include/QtNetwork -I/opt/local/include 
-I/opt/local/include/QtCore -I./qterminal/libqterminal -Isrc -I./src 
-I./src/m-editor -I./src/qtinfo -I../liboctave/cruft/misc -I../liboctave/array 
-I../liboctave/numeric -I../liboctave/numeric -I../liboctave/operators 
-I../liboctave/operators -I../liboctave/system -I../liboctave/util 
-I../libinterp -I../libinterp -I../libinterp/parse-tree 
-I../libinterp/parse-tree -I../libinterp/corefcn -I../libinterp/corefcn 
-I../libinterp/octave-value -I../libgnu -D_THREAD_SAFE -I/opt/local/include  
-Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings 
-Wcast-align -Wcast-qual -pipe -O2 -m64 -D_THREAD_SAFE -pthread -MT 
src/m-editor/src_libgui_src_la-file-editor-tab.lo -MD -MP -MF 
src/m-editor/.deps/src_libgui_src_la-file-editor-tab.Tpo -c -o src/m
-editor/s
rc_libgui_src_la-file-editor-tab.lo `test -f 'src/m-editor/file-editor-tab.cc' 
|| echo './'`src/m-editor/file-editor-tab.cc
libtool: compile:  /opt/local/bin/g++-mp-4.7 -DHAVE_CONFIG_H -I. -I.. 
-I/opt/local/include -I/opt/local/include/QtGui -I/opt/local/include 
-I/opt/local/include/QtNetwork -I/opt/local/include -I/opt/local/include/QtCore 
-I./qterminal/libqterminal -Isrc -I./src -I./src/m-editor -I./src/qtinfo 
-I../liboctave/cruft/misc -I../liboctave/array -I../liboctave/numeric 
-I../liboctave/numeric -I../liboctave/operators -I../liboctave/operators 
-I../liboctave/system -I../liboctave/util -I../libinterp -I../libinterp 
-I../libinterp/parse-tree -I../libinterp/parse-tree -I../libinterp/corefcn 
-I../libinterp/corefcn -I../libinterp/octave-value -I../libgnu -D_THREAD_SAFE 
-I/opt/local/include -Wall -W -Wshadow -Wold-style-cast -Wformat 
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -pipe -O2 -m64 
-D_THREAD_SAFE -pthread -MT src/m-editor/src_libgui_src_la-file-editor-tab.lo 
-MD -MP -MF src/m-editor/.deps/src_libgui_src_la-file-editor-tab.Tpo -c 
src/m-editor/file-editor-tab.cc  -fno-c
ommon -DP
IC -o src/m-editor/.libs/src_libgui_src_la-file-editor-tab.o
In file included from ../libgnu/stdio.h:43:0,
                from ../libgnu/wchar.h:71,
                from /opt/local/include/gcc47/c++/cwchar:46,
                from /opt/local/include/gcc47/c++/bits/postypes.h:42,
                from /opt/local/include/gcc47/c++/bits/char_traits.h:42,
                from /opt/local/include/gcc47/c++/string:42,
                from /opt/local/include/QtCore/qstring.h:54,
                from /opt/local/include/QtCore/qobject.h:48,
                from /opt/local/include/Qsci/qscilexercpp.h:38,
                from src/m-editor/file-editor-tab.cc:36:
/usr/include/stdio.h:265:7: error: previous declaration of 'char* gets(char*)' 
with 'C' linkage
In file included from ../libgnu/wchar.h:71:0,
                from /opt/local/include/gcc47/c++/cwchar:46,
                from /opt/local/include/gcc47/c++/bits/postypes.h:42,
                from /opt/local/include/gcc47/c++/bits/char_traits.h:42,
                from /opt/local/include/gcc47/c++/string:42,
                from /opt/local/include/QtCore/qstring.h:54,
                from /opt/local/include/QtCore/qobject.h:48,
                from /opt/local/include/Qsci/qscilexercpp.h:38,
                from src/m-editor/file-editor-tab.cc:36:
../libgnu/stdio.h:1034:1: error: conflicts with new declaration with 'C++' 
linkage

Ben

That is exactly the same error as I get.
hg bisect says the first offending changeset is:

changeset:   17954:2a4acd6548c6
user:        John W. Eaton <address@hidden>
date:        Wed Nov 13 02:28:34 2013 -0500
summary:     include config.h in more files in libgui

c.

Ok.  I isolated the change that results in the error.  I'm able to build with 
the change below.

diff --git a/libgui/src/module.mk b/libgui/src/module.mk
--- a/libgui/src/module.mk
+++ b/libgui/src/module.mk
@@ -190,8 +190,7 @@
    -I$(top_builddir)/libinterp -I$(top_srcdir)/libinterp \
    -I$(top_builddir)/libinterp/parse-tree -I$(top_srcdir)/libinterp/parse-tree 
\
    -I$(top_builddir)/libinterp/corefcn -I$(top_srcdir)/libinterp/corefcn \
-  -I$(top_srcdir)/libinterp/octave-value \
-  -I$(top_builddir)/libgnu
+  -I$(top_srcdir)/libinterp/octave-value

  src_libgui_src_la_CFLAGS = $(AM_CFLAGS) $(WARN_CFLAGS)

How is /usr/include/stdio.h being included before libgnu/stdio.h? I would expect the directories specified by -I on the command line to all be searched before standard header file directories like /usr/include.

Could you send the output of running

touch empty-file.cc
/opt/local/bin/g++-mp-4.7 -DHAVE_CONFIG_H -v -E -I. -I.. -I/opt/local/include -I/opt/local/include/QtGui -I/opt/local/include -I/opt/local/include/QtNetwork -I/opt/local/include -I/opt/local/include/QtCore -I./qterminal/libqterminal -Isrc -I./src -I./src/m-editor -I./src/qtinfo -I../liboctave/cruft/misc -I../liboctave/array -I../liboctave/numeric -I../liboctave/numeric -I../liboctave/operators -I../liboctave/operators -I../liboctave/system -I../liboctave/util -I../libinterp -I../libinterp -I../libinterp/parse-tree -I../libinterp/parse-tree -I../libinterp/corefcn -I../libinterp/corefcn -I../libinterp/octave-value -I../libgnu empty-file.cc

on your system?

Is /opt/local/include a link to /usr/include?

jwe




reply via email to

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