[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build failure on OSX 10.9
From: |
Ben Abbott |
Subject: |
Re: build failure on OSX 10.9 |
Date: |
Thu, 14 Nov 2013 12:38:53 -0500 |
On Nov 14, 2013, at 11:28 AM, John W. Eaton wrote:
> 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?
Result is below.
> Is /opt/local/include a link to /usr/include?
No. /opt/local/iinclude is from MacPorts.
Ben
$ mkdir foo
Bens-MacBook-Pro:~ bpabbott$ cd foo
Bens-MacBook-Pro:foo bpabbott$ touch empty-file.cc
Bens-MacBook-Pro:foo bpabbott$ /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
Using built-in specs.
COLLECT_GCC=/opt/local/bin/g++-mp-4.7
Target: x86_64-apple-darwin11
Configured with:
/opt/local/var/macports/build/_opt_mports_dports_lang_gcc47/gcc47/work/gcc-4.7.3/configure
--prefix=/opt/local --build=x86_64-apple-darwin11
--enable-languages=c,c++,objc,obj-c++,lto,fortran,java
--libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local
--with-local-prefix=/opt/local --with-system-zlib --disable-nls
--program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/
--with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local
--with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl
--disable-cloog-version-check --enable-stage1-checking --disable-multilib
--enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as
--with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar
--with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check
--with-pkgversion='MacPorts gcc47 4.7.3_3'
Thread model: posix
gcc version 4.7.3 (MacPorts gcc47 4.7.3_3)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-D' 'HAVE_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' '-I' 'src' '-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'
'-shared-libgcc' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.3/cc1plus -E -quiet -v -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 -I src -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__DYNAMIC__ -D HAVE_CONFIG_H
empty-file.cc -fPIC -mmacosx-version-min=10.7.4 -mtune=core2
ignoring nonexistent directory
"/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/../../../../../x86_64-apple-darwin11/include"
ignoring duplicate directory "/opt/local/include"
as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/opt/local/include"
as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/opt/local/include"
as it is a non-system directory that duplicates a system directory
ignoring nonexistent directory "./qterminal/libqterminal"
ignoring nonexistent directory "src"
ignoring nonexistent directory "./src"
ignoring nonexistent directory "./src/m-editor"
ignoring nonexistent directory "./src/qtinfo"
ignoring nonexistent directory "../liboctave/cruft/misc"
ignoring nonexistent directory "../liboctave/array"
ignoring nonexistent directory "../liboctave/numeric"
ignoring nonexistent directory "../liboctave/numeric"
ignoring nonexistent directory "../liboctave/operators"
ignoring nonexistent directory "../liboctave/operators"
ignoring nonexistent directory "../liboctave/system"
ignoring nonexistent directory "../liboctave/util"
ignoring nonexistent directory "../libinterp"
ignoring nonexistent directory "../libinterp"
ignoring nonexistent directory "../libinterp/parse-tree"
ignoring nonexistent directory "../libinterp/parse-tree"
ignoring nonexistent directory "../libinterp/corefcn"
ignoring nonexistent directory "../libinterp/corefcn"
ignoring nonexistent directory "../libinterp/octave-value"
ignoring nonexistent directory "../libgnu"
#include "..." search starts here:
#include <...> search starts here:
.
..
/opt/local/include/QtGui
/opt/local/include/QtNetwork
/opt/local/include/QtCore
/opt/local/include/gcc47/c++/
/opt/local/include/gcc47/c++//x86_64-apple-darwin11
/opt/local/include/gcc47/c++//backward
/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/include
/opt/local/include
/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/include-fixed
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
# 1 "empty-file.cc"
# 1 "<command-line>"
# 1 "empty-file.cc"
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.3/:/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.3/:/opt/local/libexec/gcc/x86_64-apple-darwin11/:/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/:/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/
LIBRARY_PATH=/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/:/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-D' 'HAVE_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' '-I' 'src' '-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'
'-shared-libgcc' '-mtune=core2'
- build failure on OSX 10.9, c., 2013/11/13
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/13
- Re: build failure on OSX 10.9, c., 2013/11/13
- Re: build failure on OSX 10.9, Benjamin Abbott, 2013/11/13
- Re: build failure on OSX 10.9, Doug Stewart, 2013/11/13
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/13
- Re: build failure on OSX 10.9, c., 2013/11/14
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/14
- Re: build failure on OSX 10.9, John W. Eaton, 2013/11/14
- Re: build failure on OSX 10.9, c., 2013/11/14
- Re: build failure on OSX 10.9,
Ben Abbott <=
- Re: build failure on OSX 10.9, c., 2013/11/14
- Re: build failure on OSX 10.9, John W. Eaton, 2013/11/14
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/14
- Message not available
- Re: build failure on OSX 10.9, John W. Eaton, 2013/11/14
- Re: build failure on OSX 10.9, c., 2013/11/14
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/14
- Re: build failure on OSX 10.9, c., 2013/11/14
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/14
- Re: build failure on OSX 10.9, c., 2013/11/14
- Re: build failure on OSX 10.9, Ben Abbott, 2013/11/15