[MacPorts] #22766: octave-database-1.0.4 fails to compile because gcc43 doesn't understand command line option "-arch"
MacPorts
noreply at macports.org
Wed Jun 8 11:02:36 PDT 2011
#22766: octave-database-1.0.4 fails to compile because gcc43 doesn't understand
command line option "-arch"
------------------------------+---------------------------------------------
Reporter: earcar@… | Owner: and.damore@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: swig | Port: octave-database
------------------------------+---------------------------------------------
Comment(by and.damore@…):
As I already wrote I don't have the compiler issue that the port submitter
has.
I'm using
{{{
configure.compiler macports-gcc-4.4
use_parallel_build no
}}}
and I get
{{{
CXXFLAGS="-pipe -m64" mkoctfile -DHAVE_OCTAVE_32 -v -o sqlite3.oct
-lsqlite3 sqlite3_wrap.cpp
/opt/local/bin/g++-mp-4.4 -c -I/opt/local/include -I/opt/local/include
-fPIC -I/opt/local/include/octave-3.2.4
-I/opt/local/include/octave-3.2.4/octave -I/opt/local/include -mieee-fp
-I/opt/local/include/freetype2 -I/opt/local/include -pipe -m64
-DHAVE_OCTAVE_32 sqlite3_wrap.cpp -o sqlite3_wrap.o
sqlite3_wrap.cpp: In member function 'void
octave_swig_type::install_global()':
sqlite3_wrap.cpp:1197: error: 'curr_sym_tab' was not declared in this
scope
sqlite3_wrap.cpp:1197: error: 'link_to_global_variable' was not declared
in this scope
sqlite3_wrap.cpp:1204: error: 'symbol_record' was not declared in this
scope
sqlite3_wrap.cpp:1204: error: 'sr' was not declared in this scope
sqlite3_wrap.cpp:1204: error: 'global_sym_tab' was not declared in this
scope
sqlite3_wrap.cpp: In function 'void SWIG_Octave_SetModule(void*,
swig_module_info*)':
sqlite3_wrap.cpp:2110: error: 'curr_sym_tab' was not declared in this
scope
sqlite3_wrap.cpp:2110: error: 'link_to_global_variable' was not declared
in this scope
sqlite3_wrap.cpp: In function 'octave_value_list
_wrap_sqlite3_vmprintf(const octave_value_list&, int)':
sqlite3_wrap.cpp:3029: error: invalid array assignment
sqlite3_wrap.cpp: In function 'octave_value_list Fsqlite3(const
octave_value_list&, int)':
sqlite3_wrap.cpp:10430: error: 'curr_sym_tab' was not declared in this
scope
sqlite3_wrap.cpp:10430: error: 'link_to_global_variable' was not declared
in this scope
make[1]: *** [sqlite3.oct] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports
.org_trunk_dports_math_octave-database/octave-
database/work/database-1.0.4/src'
make: *** [build] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports
.org_trunk_dports_math_octave-database/octave-
database/work/database-1.0.4'
shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports
.org_trunk_dports_math_octave-database/octave-
database/work/database-1.0.4" && /usr/bin/make -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log
for details)
}}}
This seems to be related to
[http://permalink.gmane.org/gmane.comp.programming.swig.devel/19194 this
issue] that dates back to July '09.
Swig's [http://www.swig.org/Release/RELEASENOTES release notes] talks
about fix and enhancements for Octave in 2.0.4 version that is from May
'11 but even with latest swig and swig-octave I have the upward issue.
I've asked the package author for comments.
--
Ticket URL: <https://trac.macports.org/ticket/22766#comment:10>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list