[MacPorts] #38694: octave @3.2.4 -- failure during build compiling oct-alloc.cc

MacPorts noreply at macports.org
Sat Apr 6 11:16:07 PDT 2013


#38694: octave @3.2.4 -- failure during build compiling oct-alloc.cc
---------------------+--------------------------------
  Reporter:  cwr@…   |      Owner:  macports-tickets@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.1.3
Resolution:          |   Keywords:
      Port:  octave  |
---------------------+--------------------------------
Changes (by ryandesign@…):

 * port:   => octave


Old description:

> {{{
> (Note that I am a complete newbie to MacPorts, I have installed Mountain
> Lion, Xcode, MacPorts, etc., all in the last day or two so this is as
> likely to be due to any number of missteps in my set-up as opposed to a
> problem with the port or build. I could not find an obvious duplicate
> report, but then I wasn't sure what I should be looking for...)
>

> On a new install (of Mountain Lion, Xcode, MacPorts) I tried to '''sudo
> port install octave'''. It went smoothly until it got to '''Building
> octave'''. Looking at the log (excerpted below) the problem seems to have
> been with files '''oct-alloc.cc/.h'''
>
> Looking for advice about how to proceed.
>

> :info:build /opt/local/bin/g++-mp-4.7 -c -I/opt/local/include
> -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc
> -DHAVE_CONFIG_H -mieee-fp -I/opt/local/include/freetype2
> -I/opt/local/include -Wall -W -Wshadow -Wold-style-cast -Wformat -pipe
> -O2 -m64 -D_THREAD_SAFE  oct-alloc.cc -o oct-alloc.o
> :info:build In file included from oct-alloc.cc:30:0:
> :info:build oct-alloc.h:33:28: error: expected ')' before 'item_sz'
> :info:build oct-alloc.h:40:9: error: expected ';' at end of member
> declaration
> :info:build oct-alloc.h:40:23: error: expected ')' before 'size'
> :info:build oct-alloc.h:43:23: error: 'size_t' has not been declared
> :info:build oct-alloc.h:58:3: error: 'size_t' does not name a type
> :info:build oct-alloc.cc:33:26: error: 'void* octave_allocator::alloc' is
> not a static member of 'class octave_allocator'
> :info:build oct-alloc.cc:33:26: error: 'size_t' was not declared in this
> scope
> :info:build oct-alloc.cc:33:26: note: suggested alternative:
> :info:build In file included from /opt/local/include/gcc47/c++/new:41:0,
> :info:build                  from oct-alloc.cc:28:
> :info:build /opt/local/include/gcc47/c++//x86_64-apple-
> darwin12/bits/c++config.h:173:26: note:   'std::size_t'
> :info:build oct-alloc.cc:34:1: error: expected ',' or ';' before '{'
> token
> :info:build make[2]: *** [oct-alloc.o] Error 1
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4/liboctave'
> :info:build make[1]: *** [liboctave] Error 2
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4'
> :info:build make: *** [all] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4"
> && /usr/bin/make -w all
> :info:build Exit code: 2
> :error:build org.macports.build for port octave returned: command
> execution failed
> :debug:build Error code: CHILDSTATUS 49260 2
> :debug:build Backtrace: command execution failed
>     while executing
> "system -nice 0 $fullcmdstring"
>     ("eval" body line 1)
>     invoked from within
> "eval system $notty $nice \$fullcmdstring"
>     invoked from within
> "command_exec build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> :info:build Warning: targets not executed for octave:
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Please see the log file for port octave for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/main.log
>
> }}}

New description:

 (Note that I am a complete newbie to MacPorts, I have installed Mountain
 Lion, Xcode, MacPorts, etc., all in the last day or two so this is as
 likely to be due to any number of missteps in my set-up as opposed to a
 problem with the port or build. I could not find an obvious duplicate
 report, but then I wasn't sure what I should be looking for...)


 On a new install (of Mountain Lion, Xcode, MacPorts) I tried to '''sudo
 port install octave'''. It went smoothly until it got to '''Building
 octave'''. Looking at the log (excerpted below) the problem seems to have
 been with files '''oct-alloc.cc/.h'''

 Looking for advice about how to proceed.

 {{{
 :info:build /opt/local/bin/g++-mp-4.7 -c -I/opt/local/include
 -I/opt/local/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc
 -DHAVE_CONFIG_H -mieee-fp -I/opt/local/include/freetype2
 -I/opt/local/include -Wall -W -Wshadow -Wold-style-cast -Wformat -pipe -O2
 -m64 -D_THREAD_SAFE  oct-alloc.cc -o oct-alloc.o
 :info:build In file included from oct-alloc.cc:30:0:
 :info:build oct-alloc.h:33:28: error: expected ')' before 'item_sz'
 :info:build oct-alloc.h:40:9: error: expected ';' at end of member
 declaration
 :info:build oct-alloc.h:40:23: error: expected ')' before 'size'
 :info:build oct-alloc.h:43:23: error: 'size_t' has not been declared
 :info:build oct-alloc.h:58:3: error: 'size_t' does not name a type
 :info:build oct-alloc.cc:33:26: error: 'void* octave_allocator::alloc' is
 not a static member of 'class octave_allocator'
 :info:build oct-alloc.cc:33:26: error: 'size_t' was not declared in this
 scope
 :info:build oct-alloc.cc:33:26: note: suggested alternative:
 :info:build In file included from /opt/local/include/gcc47/c++/new:41:0,
 :info:build                  from oct-alloc.cc:28:
 :info:build /opt/local/include/gcc47/c++//x86_64-apple-
 darwin12/bits/c++config.h:173:26: note:   'std::size_t'
 :info:build oct-alloc.cc:34:1: error: expected ',' or ';' before '{' token
 :info:build make[2]: *** [oct-alloc.o] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4/liboctave'
 :info:build make[1]: *** [liboctave] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/work/octave-3.2.4"
 && /usr/bin/make -w all
 :info:build Exit code: 2
 :error:build org.macports.build for port octave returned: command
 execution failed
 :debug:build Error code: CHILDSTATUS 49260 2
 :debug:build Backtrace: command execution failed
     while executing
 "system -nice 0 $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: targets not executed for octave:
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Please see the log file for port octave for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_octave/octave/main.log

 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/38694#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list