Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#935 closed defect (worksforme)

boost does not compile with Sun CC

Reported by: mccannwj@… Owned by: Lars Gullik Bjønnes
Priority: high Milestone:
Component: build Version: 1.3.0
Severity: major Keywords:
Cc:

Description

The boost sub-package does not compile with
cc: Sun WorkShop 6 update 1 C 5.2 2000/09/11

CC -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost
-I/usr/local/include -I/usr/openwin/include -I/usr/local/include -c cregex.cpp
"../../../../boost/boost/type_traits/add_const.hpp", line 34: Warning: Too few
arguments in macro BOOST_PP_CHECK_2.
"../../../../boost/boost/type_traits/add_const.hpp", line 34: Warning: Too few
arguments in macro BOOST_PP_CHECK_2.
"../../../../boost/boost/type_traits/add_const.hpp", line 34: Warning: Too few
arguments in macro BOOST_PP_CHECK_2.
"../../../../boost/boost/type_traits/add_const.hpp", line 34: Error:
BOOST_PP_LIST_FOR_EACH_I_M is not defined.
[...lots more]

This message on the boost mail list seems to indicate that some fixes may be
available <http://lists.boost.org/MailArchives/boost/msg41995.php>.

Change History (13)

comment:1 by Lars Gullik Bjønnes, 21 years ago

Status: newassigned

I just updated lyx boost from boost cvs.

Please test.

comment:2 by levon, 21 years ago

Owner: changed from Lars Gullik Bjønnes to nobody@…
Status: assignednew

Lars doesn't want any bugs.

comment:3 by mccannwj@…, 21 years ago

Sorry I haven't gotten a chance to test this until now. The following is the
compile error from a pull of lyx-devel today. The problem I initially reported
seems to be fixed. The regex component seems to compile fine.

gmake[4]: Entering directory
`/usr/local/src/lyx-CVS/lyx-20030501/boost/libs/signals/src'
source='connection.cpp' object='connection.lo' libtool=yes \
depfile='.deps/connection.Plo' tmpdepfile='.deps/connection.TPlo' \
depmode=none /bin/bash ../../../../config/depcomp \
/bin/bash ../../../../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I.
-I../../../../src -I../../../../boost -I/usr/local/include
-I/usr/openwin/include -I/usr/local/include -c -o connection.lo `test -f

'connection.cpp'
echo './'`connection.cpp

CC -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost
-I/usr/local/include -I/usr/openwin/include -I/usr/local/include -c
connection.cpp
"../../../../boost/boost/type_traits/is_array.hpp", line 18: Error: Could not
open include file "boost/type_traits/detail/wrap.hpp".
"../../../../boost/boost/type_traits/is_array.hpp", line 42: Error: wrap is not
a member of boost::type_traits.
"../../../../boost/boost/type_traits/is_array.hpp", line 44: Warning
(Anachronism): Using wrap as a template without a declaration.
"../../../../boost/boost/type_traits/is_array.hpp", line 44: Error: A class
template name was expected instead of wrap.
"../../../../boost/boost/type_traits/is_array.hpp", line 44: Error: A class
template name was expected instead of wrap.
"../../../../boost/boost/type_traits/is_array.hpp", line 47: Error: Templates
can only declare classes or functions.
"../../../../boost/boost/type_traits/is_reference.hpp", line 18: Error: Could
not open include file "boost/type_traits/detail/wrap.hpp".
"../../../../boost/boost/type_traits/is_reference.hpp", line 71: Error: wrap is
not a member of boost::type_traits.
"../../../../boost/boost/type_traits/is_reference.hpp", line 73: Warning
(Anachronism): Using wrap as a template without a declaration.
"../../../../boost/boost/type_traits/is_reference.hpp", line 73: Error: A class
template name was expected instead of wrap.
"../../../../boost/boost/type_traits/is_reference.hpp", line 73: Error: A class
template name was expected instead of wrap.
"../../../../boost/boost/type_traits/is_reference.hpp", line 76: Error:
Templates can only declare classes or functions.
10 Error(s) and 2 Warning(s) detected.

comment:4 by levon, 21 years ago

Owner: changed from nobody@… to Lars Gullik Bjønnes

But he does want this one.

comment:5 by Lars Gullik Bjønnes, 21 years ago

Status: newassigned

comment:6 by larsbj@…, 21 years ago

Subject: lyx-devel boost/: ChangeLog boost/boost/type_tra ...

CVSROOT: /usr/local/lyx/cvsroot
Module name: lyx-devel
Repository: lyx-devel/boost/boost/type_traits/detail/
Changes by: larsbj@… 03/05/01 19:45:20

Modified files:

lyx-devel/boost/: ChangeLog

Added files:

lyx-devel/boost/boost/type_traits/detail/: wrap.hpp

Log message:

Bug: 935
2003-05-01 Lars Gullik Bjønnes <larsbj@…>


  • boost/type_traits/detail/wrap.hpp: add file


Please test.

Bugs:
http://bugzilla.lyx.org/showbug.cgi?id=935

Patches:
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/boost/ChangeLog?r1=1.35&r2=1.36
http://www.lyx.org/cgi-bin/viewcvs.cgi/lyx-devel/boost/boost/type_traits/detail/wrap.hpp?rev=1.1&content-type=text/vnd.viewcvs-markup

Complete Diff:
/usr/bin/cvs -f diff -kk -u -r 1.35 -r 1.36 boost/ChangeLog

comment:7 by Lars Gullik Bjønnes, 21 years ago

Resolution: fixed
Status: assignedclosed

Since no feedback is provided, I expect this case to be resolved.

comment:8 by mccannwj@…, 21 years ago

Sorry, it seems that bugzilla didn't send out the email for comment #5 until
comment #6 was entered.

I did a "cvs update -A; gmake clean; gmake" which then gives this:

gmake[4]: Entering directory
`/usr/local/src/lyx-CVS/lyx-20030501/boost/libs/signals/src'
source='connection.cpp' object='connection.lo' libtool=yes \
depfile='.deps/connection.Plo' tmpdepfile='.deps/connection.TPlo' \
depmode=none /bin/bash ../../../../config/depcomp \
/bin/bash ../../../../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I.
-I../../../../src -I../../../../boost -I/usr/local/include -I/usr/openwin/include

-I/usr/local/include -c -o connection.lo `test -f 'connection.cpp'
echo

'./'`connection.cpp
CC -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost
-I/usr/local/include -I/usr/openwin/include -I/usr/local/include -c connection.cpp
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 315: Error: x is not defined.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 315: Error: Badly formed
expression.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 316: Error: x is not defined.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 316: Error: Badly formed
expression.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 322: Error: x is not defined.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 322: Error: Formal
argument x of type std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>& in call to
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::transfer(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::iterator,
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::iterator,
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::iterator,
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&) requires an lvalue.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 329: Error: x is not defined.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
"/opt/SUNWspro/WS6U1/include/CC/Cstd/./list.cc", line 329: Error: Formal
argument x of type std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>& in call to
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::
transfer(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::iterator,
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::iterator,
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::iterator,
std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&) requires an lvalue.
"connection.cpp", line 54: Where: While instantiating
"std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>::merge(std::list<boost::signals::detail::bound_object,
std::allocator<boost::signals::detail::bound_object>>&, bool(*)(const
boost::signals::detail::bound_object&,const
boost::signals::detail::bound_object&))".
"connection.cpp", line 54: Where: Instantiated from non-template code.
8 Error(s) detected.
gmake[4]: * [connection.lo] Error 1
gmake[4]: Leaving directory
`/usr/local/src/lyx-CVS/lyx-20030501/boost/libs/signals/src'
gmake[3]:
* [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/local/src/lyx-CVS/lyx-20030501/boost/libs/signals'
gmake[2]: * [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/src/lyx-CVS/lyx-20030501/boost/libs'
gmake[1]:
* [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/lyx-CVS/lyx-20030501/boost'
gmake: * [all-recursive] Error 1

comment:9 by levon, 21 years ago

Resolution: fixed
Status: closedreopened

as said

comment:10 by larsbj@…, 21 years ago

Subject: Re: boost does not compile with Sun CC

bugzilla-daemon@… writes:

| Sorry, it seems that bugzilla didn't send out the email for comment #5 until
| comment #6 was entered.
|
| I did a "cvs update -A; gmake clean; gmake" which then gives this:

Ok, then I'd like you to check on the boost list if this compiler is
supported at all. Or if anyting can be done to support it.

You could also try to download boost and run the boost test suite.

www.boost.org.
boost@…

comment:11 by Lars Gullik Bjønnes, 21 years ago

Resolution: worksforme
Status: reopenedclosed

Since I get no response on this one, I am resolving it.

comment:12 by michael.gerz@…, 21 years ago

Bug report closed.

comment:13 by levon, 21 years ago

Never use "CLOSED" state please, only RESOLVED and VERIFIED

Note: See TracTickets for help on using tickets.