Opened 9 years ago

Closed 8 years ago

#35470 closed defect (worksforme)

aspell fails to compile

Reported by: csjonline@… Owned by: jochen@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: aspell

Description (last modified by ryandesign (Ryan Schmidt))

$ sudo port -v upgrade outdated
--->  Computing dependencies for aspell.
--->  Building aspell
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_aspell/aspell/work/aspell-0.60.6'
Making all in .
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_aspell/aspell/work/aspell-0.60.6'
depbase=`echo common/cache.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool --tag=CXX   --mode=compile /usr/bin/c++ -DHAVE_CONFIG_H -I. -I./gen  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALEDIR="/opt/local/share/locale" -I/opt/local/include  -pipe -O2 -m64 -fno-exceptions -MT common/cache.lo -MD -MP -MF $depbase.Tpo -c -o common/cache.lo common/cache.cpp &&\
	mv -f $depbase.Tpo $depbase.Plo
depbase=`echo common/getdata.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/sh ./libtool --tag=CXX   --mode=compile /usr/bin/c++ -DHAVE_CONFIG_H -I. -I./gen  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALEDIR="/opt/local/share/locale" -I/opt/local/include  -pipe -O2 -m64 -fno-exceptions -MT common/getdata.lo -MD -MP -MF $depbase.Tpo -c -o common/getdata.lo common/getdata.cpp &&\
	mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  /usr/bin/c++ -DHAVE_CONFIG_H -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALEDIR=/opt/local/share/locale -I/opt/local/include -pipe -O2 -m64 -fno-exceptions -MT common/cache.lo -MD -MP -MF common/.deps/cache.Tpo -c common/cache.cpp  -fno-common -DPIC -o common/.libs/cache.o
libtool: compile:  /usr/bin/c++ -DHAVE_CONFIG_H -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALEDIR=/opt/local/share/locale -I/opt/local/include -pipe -O2 -m64 -fno-exceptions -MT common/getdata.lo -MD -MP -MF common/.deps/getdata.Tpo -c common/getdata.cpp  -fno-common -DPIC -o common/.libs/getdata.o
In file included from common/cache.cpp:4:
In file included from ./common/cache-t.hpp:5:
In file included from ./common/cache.hpp:4:
./common/posib_err.hpp:183:24: error: cannot form a reference to 'void'
    PosibErr(const Ret & d) : data(d) {}
                       ^
./common/posib_err.hpp:175:22: note: in instantiation of template class 'acommon::PosibErr<void>' requested here
      : PosibErrBase(other) {}
                     ^
./common/posib_err.hpp:184:24: error: cannot form a reference to 'void'
    operator const Ret & () const {posib_handle_err(); return data;}
                       ^
./common/posib_err.hpp:186:9: error: field has incomplete type 'void'
In file included from common/getdata.cpp:13:
In file included from ./common/iostream.hpp:10:
In file included from ./common/fstream.hpp:15:
./common/posib_err.hpp:183:24: error: cannot form a reference to 'void'
    PosibErr(const Ret & d) : data(d) {}
                       ^
./common/posib_err.hpp:175:22: note: in instantiation of template class 'acommon::PosibErr<void>' requested here
      : PosibErrBase(other) {}
                     ^
./common/posib_err.hpp:184:24: error: cannot form a reference to 'void'
    operator const Ret & () const {posib_handle_err(); return data;}
                       ^
./common/posib_err.hpp:186:9:     Ret data;
        ^
./common/posib_err.hpp:175:22: error: no viable conversion from 'const PosibErr<void>' to 'const acommon::PosibErrBase'
      : PosibErrBase(other) {}
                     ^~~~~
./common/posib_err.hpp:81:5: note: candidate constructor not viable: cannot convert argument of incomplete type 'const PosibErr<void>' to 'const acommon::PosibErrBase &'
    PosibErrBase(const PosibErrBase & other) 
    ^
./common/posib_err.hpp:81:39: note: passing argument to parameter 'other' here
    PosibErrBase(const PosibErrBase & other) 
                                      ^
./common/posib_err.hpp:190:9: error: explicit specialization of 'acommon::PosibErr<void>' after instantiation
  class PosibErr<void> : public PosibErrBase
error: field has incomplete type 'void'
        ^~~~~~~~~~~~~~
    Ret data;
        ^
./common/posib_err.hpp:175:22: note: implicit instantiation first required here
      : PosibErrBase(other) {}
                     ^
./common/posib_err.hpp:175:22: error: no viable conversion from 'const PosibErr<void>' to 'const acommon::PosibErrBase'
      : PosibErrBase(other) {}
                     ^~~~~
./common/posib_err.hpp:81:5: note: candidate constructor not viable: cannot convert argument of incomplete type 'const PosibErr<void>' to 'const acommon::PosibErrBase &'
    PosibErrBase(const PosibErrBase & other) 
    ^
./common/posib_err.hpp:81:39: note: passing argument to parameter 'other' here
    PosibErrBase(const PosibErrBase & other) 
                                      ^
./common/posib_err.hpp:190:9: error: explicit specialization of 'acommon::PosibErr<void>' after instantiation
  class PosibErr<void> : public PosibErrBase
        ^~~~~~~~~~~~~~
./common/posib_err.hpp:175:22: note: implicit instantiation first required here
      : PosibErrBase(other) {}
                     ^
5 errors generated.
5 errors generated.
make[1]: *** [common/getdata.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [common/cache.lo] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_aspell/aspell/work/aspell-0.60.6'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_aspell/aspell/work/aspell-0.60.6'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_aspell/aspell/work/aspell-0.60.6" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port aspell returned: command execution failed
Warning: targets not executed for aspell: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port aspell for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_aspell/aspell/main.log
Error: Problem while installing aspell
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Change History (3)

comment:1 Changed 9 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to jochen@…
Port: aspell added

Please remember to use WikiFormatting, to fill in the Port field, and to Cc the maintainer of that port.

This was not a clean build attempt, so please "sudo port clean aspell", then try again. If it fails again, please attach the new main.log to this ticket. FWIW it builds fine for me.

comment:2 Changed 8 years ago by jmroot (Joshua Root)

It may be unrelated to this problem, but the use of /usr/bin/c++ indicates that it's not UsingTheRightCompiler.

comment:3 Changed 8 years ago by jochen@…

Resolution: worksforme
Status: newclosed

If this still does not work for you please do a clean build and send the logs along with details on your system

Note: See TracTickets for help on using tickets.