Re: building with Clang 3.2 fails

2013-12-10 Thread Kornel Benko
Am Montag, 9. Dezember 2013 um 03:12:31, schrieb Scott Kostyshak 
skost...@lyx.org
 On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak skost...@lyx.org wrote:
  The above two commands were from the following command (except that
  the second command switches -DLYX_EXTERNAL_BOOST to ON):
 
  cmake ../repo \
  -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
  -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
  -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
  -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
  -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
  -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
  -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
  -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
  -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
  -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
  -DLYX_ENABLE_CXX11=ON \
  -DLYX_ENABLE_URLTESTS=ON
 
  But doing
  cmake .
  with no flags and in the repository directory, I get no error. I will
  do a bisect of CMake flags unless anyone happens to know what's going
  on.
 
 It seems to be the interaction of using Clang and
 -DLYX_ENABLE_CXX11=ON that causes the failure.

I don't have clang, but...

The option for c++11 may be -std=c++11 or -std=gnu++11.

Could you try?

(Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216
of the clang compiler?)

We could also use try_compile() to determine what clang (or g++) accepts.

Like in project enblend, module FindCXX11Compiler.cmake

 Scott

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: building with Clang 3.2 fails

2013-12-10 Thread Scott Kostyshak
On Tue, Dec 10, 2013 at 12:39 PM, Kornel Benko kor...@lyx.org wrote:
 Am Montag, 9. Dezember 2013 um 03:12:31, schrieb Scott Kostyshak
 skost...@lyx.org

 On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak skost...@lyx.org wrote:

  The above two commands were from the following command (except that

  the second command switches -DLYX_EXTERNAL_BOOST to ON):

 

  cmake ../repo \

  -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \

  -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \

  -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \

  -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \

  -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \

  -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \

  -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \

  -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \

  -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \

  -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \

  -DLYX_ENABLE_CXX11=ON \

  -DLYX_ENABLE_URLTESTS=ON

 

  But doing

  cmake .

  with no flags and in the repository directory, I get no error. I will

  do a bisect of CMake flags unless anyone happens to know what's going

  on.



 It seems to be the interaction of using Clang and

 -DLYX_ENABLE_CXX11=ON that causes the failure.



 I don't have clang, but...



 The option for c++11 may be -std=c++11 or -std=gnu++11.



 Could you try?

It was being run with -std=gnu++0x. Running manually and substituting
for it with -std=c++11 FileMonitor.cpp compiled without error.

 (Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216

 of the clang compiler?)

GCC version 4.2.1




 We could also use try_compile() to determine what clang (or g++) accepts.



 Like in project enblend, module FindCXX11Compiler.cmake

Scott


Re: building with Clang 3.2 fails

2013-12-10 Thread Kornel Benko
Am Dienstag, 10. Dezember 2013 um 16:53:40, schrieb Scott Kostyshak 
skost...@lyx.org
  I don't have clang, but...
 
 
 
  The option for c++11 may be -std=c++11 or -std=gnu++11.
 
 
 
  Could you try?
 
 It was being run with -std=gnu++0x. Running manually and substituting
 for it with -std=c++11 FileMonitor.cpp compiled without error.

OK, I will prepare a module for this.

  (Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216
 
  of the clang compiler?)
 
 GCC version 4.2.1

That explains it for me. Thanks.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: building with Clang 3.2 fails

2013-12-10 Thread Kornel Benko
Am Montag, 9. Dezember 2013 um 03:12:31, schrieb Scott Kostyshak 

> On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak  wrote:
> > The above two commands were from the following command (except that
> > the second command switches -DLYX_EXTERNAL_BOOST to "ON"):
> >
> > cmake ../repo \
> > -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
> > -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
> > -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
> > -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
> > -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
> > -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
> > -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
> > -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
> > -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
> > -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
> > -DLYX_ENABLE_CXX11=ON \
> > -DLYX_ENABLE_URLTESTS=ON
> >
> > But doing
> > cmake .
> > with no flags and in the repository directory, I get no error. I will
> > do a bisect of CMake flags unless anyone happens to know what's going
> > on.
> 
> It seems to be the interaction of using Clang and
> -DLYX_ENABLE_CXX11=ON that causes the failure.

I don't have clang, but...

The option for c++11 may be -std=c++11 or -std=gnu++11.

Could you try?

(Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216
of the clang compiler?)

We could also use try_compile() to determine what clang (or g++) accepts.

Like in project enblend, module FindCXX11Compiler.cmake

> Scott

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: building with Clang 3.2 fails

2013-12-10 Thread Scott Kostyshak
On Tue, Dec 10, 2013 at 12:39 PM, Kornel Benko  wrote:
> Am Montag, 9. Dezember 2013 um 03:12:31, schrieb Scott Kostyshak
> 
>
>> On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak  wrote:
>
>> > The above two commands were from the following command (except that
>
>> > the second command switches -DLYX_EXTERNAL_BOOST to "ON"):
>
>> >
>
>> > cmake ../repo \
>
>> > -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
>
>> > -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
>
>> > -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
>
>> > -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
>
>> > -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
>
>> > -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
>
>> > -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
>
>> > -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
>
>> > -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
>
>> > -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
>
>> > -DLYX_ENABLE_CXX11=ON \
>
>> > -DLYX_ENABLE_URLTESTS=ON
>
>> >
>
>> > But doing
>
>> > cmake .
>
>> > with no flags and in the repository directory, I get no error. I will
>
>> > do a bisect of CMake flags unless anyone happens to know what's going
>
>> > on.
>
>>
>
>> It seems to be the interaction of using Clang and
>
>> -DLYX_ENABLE_CXX11=ON that causes the failure.
>
>
>
> I don't have clang, but...
>
>
>
> The option for c++11 may be -std=c++11 or -std=gnu++11.
>
>
>
> Could you try?

It was being run with -std=gnu++0x. Running manually and substituting
for it with -std=c++11 FileMonitor.cpp compiled without error.

> (Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216
>
> of the clang compiler?)

GCC version 4.2.1

>
>
>
> We could also use try_compile() to determine what clang (or g++) accepts.
>
>
>
> Like in project enblend, module FindCXX11Compiler.cmake

Scott


Re: building with Clang 3.2 fails

2013-12-10 Thread Kornel Benko
Am Dienstag, 10. Dezember 2013 um 16:53:40, schrieb Scott Kostyshak 

> > I don't have clang, but...
> >
> >
> >
> > The option for c++11 may be -std=c++11 or -std=gnu++11.
> >
> >
> >
> > Could you try?
> 
> It was being run with -std=gnu++0x. Running manually and substituting
> for it with -std=c++11 FileMonitor.cpp compiled without error.

OK, I will prepare a module for this.

> > (Can you also check, what is the 'GCC_VERSION' at CMakeLists.txt:216
> >
> > of the clang compiler?)
> 
> GCC version 4.2.1

That explains it for me. Thanks.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: building with Clang 3.2 fails

2013-12-09 Thread Scott Kostyshak
On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak skost...@lyx.org wrote:
 The above two commands were from the following command (except that
 the second command switches -DLYX_EXTERNAL_BOOST to ON):

 cmake ../repo \
 -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
 -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
 -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
 -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
 -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
 -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
 -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
 -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
 -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
 -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
 -DLYX_ENABLE_CXX11=ON \
 -DLYX_ENABLE_URLTESTS=ON

 But doing
 cmake .
 with no flags and in the repository directory, I get no error. I will
 do a bisect of CMake flags unless anyone happens to know what's going
 on.

It seems to be the interaction of using Clang and
-DLYX_ENABLE_CXX11=ON that causes the failure.

Scott


Re: building with Clang 3.2 fails

2013-12-09 Thread Scott Kostyshak
On Sat, Dec 7, 2013 at 12:08 PM, Scott Kostyshak  wrote:
> The above two commands were from the following command (except that
> the second command switches -DLYX_EXTERNAL_BOOST to "ON"):
>
> cmake ../repo \
> -DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
> -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
> -DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
> -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
> -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
> -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
> -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
> -DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
> -DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
> -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
> -DLYX_ENABLE_CXX11=ON \
> -DLYX_ENABLE_URLTESTS=ON
>
> But doing
> cmake .
> with no flags and in the repository directory, I get no error. I will
> do a bisect of CMake flags unless anyone happens to know what's going
> on.

It seems to be the interaction of using Clang and
-DLYX_ENABLE_CXX11=ON that causes the failure.

Scott


Re: building with Clang 3.2 fails

2013-12-07 Thread Scott Kostyshak
The above two commands were from the following command (except that
the second command switches -DLYX_EXTERNAL_BOOST to ON):

cmake ../repo \
-DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
-DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
-DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
-DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
-DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
-DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
-DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
-DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
-DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
-DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
-DLYX_ENABLE_CXX11=ON \
-DLYX_ENABLE_URLTESTS=ON

But doing
cmake .
with no flags and in the repository directory, I get no error. I will
do a bisect of CMake flags unless anyone happens to know what's going
on.

Also with autotools a simple
./autogen.sh  ./configure  make
does not give any error

Note that for all of the above commands I set

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

Scott

On Sat, Dec 7, 2013 at 2:10 AM, Scott Kostyshak skost...@lyx.org wrote:
 On Fri, Dec 6, 2013 at 4:45 PM, Jean-Marc Lasgouttes lasgout...@lyx.org 
 wrote:
 Le 06/12/2013 19:52, Scott Kostyshak a écrit :

 At some point not too long ago I was able to build with Clang. It was
 an older version though. Now I get an error when building boost
 error: use of undeclared identifier (see more output at the bottom).
 Is this something that should be fixed?


 I guess that upgrading to boost 1.55 before release would not hurt.

 Did you try to build --without-included-boost ?

 I did not. I just tried with -DLYX_EXTERNAL_BOOST=ON
 and got the error below.

 [ 10%] Building CXX object 
 src/support/CMakeFiles/support.dir/FileMonitor.cpp.o
 cd /home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support 
 /usr/bin/clang++-Wall -Wunused-parameter -std=gnu++0x
 -fno-strict-aliasing  -Wall -Wunused-parameter -std=gnu++0x
 -fno-strict-aliasing -O0 -g3 -D_DEBUG
 -I/home/vbox/lyxbuilds/master-clang/CMakeBuild
 -I/home/vbox/lyxbuilds/master-clang/repo/src -I/usr/include/enchant
 -I/home/vbox/lyxbuilds/master-clang/repo/src/support
 -I/home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support
 -I/home/vbox/lyxbuilds/master-clang/repo/src/support/mythes
 -I/usr/include/qt4 -I/usr/include/qt4/Qt
 -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
 -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support
 -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtNetwork
 -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml
 -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtUiTools
 -I/usr/include/qt4/QtTest-o
 CMakeFiles/support.dir/FileMonitor.cpp.o -c
 /home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp
 In file included from
 /home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp:13:
 In file included from
 /home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.h:18:
 In file included from /usr/include/boost/signal.hpp:17:
 In file included from /usr/include/boost/config.hpp:40:
 In file included from /usr/include/boost/config/select_stdlib_config.hpp:37:
 In file included from /usr/include/boost/config/no_tr1/utility.hpp:21:
 In file included from
 /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/utility:69:
 In file included from
 /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_pair.h:59:
 In file included from
 /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/move.h:57:
 /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:268:39:
 error: use of undeclared identifier '__float128'
 struct __is_floating_point_helper__float128
   ^
 1 error generated.

 Scott


Re: building with Clang 3.2 fails

2013-12-07 Thread Scott Kostyshak
The above two commands were from the following command (except that
the second command switches -DLYX_EXTERNAL_BOOST to "ON"):

cmake ../repo \
-DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 \
-DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON \
-DLYX_PROGRAM_SUFFIX=ON -DLYX_LOCALVERSIONING=ON \
-DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_DEB:BOOL=ON \
-DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF \
-DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF \
-DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \
-DCPACK_SOURCE_TGZ:BOOL=ON -DCPACK_SOURCE_TZ:BOOL=OFF \
-DCPACK_SOURCE_ZIP:BOOL=OFF -DLYX_EXTERNAL_BOOST=OFF \
-DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON -DLYX_NLS=ON \
-DLYX_ENABLE_CXX11=ON \
-DLYX_ENABLE_URLTESTS=ON

But doing
cmake .
with no flags and in the repository directory, I get no error. I will
do a bisect of CMake flags unless anyone happens to know what's going
on.

Also with autotools a simple
./autogen.sh && ./configure && make
does not give any error

Note that for all of the above commands I set

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

Scott

On Sat, Dec 7, 2013 at 2:10 AM, Scott Kostyshak  wrote:
> On Fri, Dec 6, 2013 at 4:45 PM, Jean-Marc Lasgouttes  
> wrote:
>> Le 06/12/2013 19:52, Scott Kostyshak a écrit :
>>
>>> At some point not too long ago I was able to build with Clang. It was
>>> an older version though. Now I get an error when building boost
>>> "error: use of undeclared identifier" (see more output at the bottom).
>>> Is this something that should be fixed?
>>
>>
>> I guess that upgrading to boost 1.55 before release would not hurt.
>>
>> Did you try to build --without-included-boost ?
>
> I did not. I just tried with -DLYX_EXTERNAL_BOOST=ON
> and got the error below.
>
> [ 10%] Building CXX object 
> src/support/CMakeFiles/support.dir/FileMonitor.cpp.o
> cd /home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support &&
> /usr/bin/clang++-Wall -Wunused-parameter -std=gnu++0x
> -fno-strict-aliasing  -Wall -Wunused-parameter -std=gnu++0x
> -fno-strict-aliasing -O0 -g3 -D_DEBUG
> -I/home/vbox/lyxbuilds/master-clang/CMakeBuild
> -I/home/vbox/lyxbuilds/master-clang/repo/src -I/usr/include/enchant
> -I/home/vbox/lyxbuilds/master-clang/repo/src/support
> -I/home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support
> -I/home/vbox/lyxbuilds/master-clang/repo/src/support/mythes
> -I/usr/include/qt4 -I/usr/include/qt4/Qt
> -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support
> -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtNetwork
> -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml
> -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtUiTools
> -I/usr/include/qt4/QtTest-o
> CMakeFiles/support.dir/FileMonitor.cpp.o -c
> /home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp
> In file included from
> /home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp:13:
> In file included from
> /home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.h:18:
> In file included from /usr/include/boost/signal.hpp:17:
> In file included from /usr/include/boost/config.hpp:40:
> In file included from /usr/include/boost/config/select_stdlib_config.hpp:37:
> In file included from /usr/include/boost/config/no_tr1/utility.hpp:21:
> In file included from
> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/utility:69:
> In file included from
> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_pair.h:59:
> In file included from
> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/move.h:57:
> /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:268:39:
> error: use of undeclared identifier '__float128'
> struct __is_floating_point_helper<__float128>
>   ^
> 1 error generated.
>
> Scott


Re: building with Clang 3.2 fails

2013-12-06 Thread Jean-Marc Lasgouttes

Le 06/12/2013 19:52, Scott Kostyshak a écrit :

At some point not too long ago I was able to build with Clang. It was
an older version though. Now I get an error when building boost
error: use of undeclared identifier (see more output at the bottom).
Is this something that should be fixed?


I guess that upgrading to boost 1.55 before release would not hurt.

Did you try to build --without-included-boost ?

JMarc



Re: building with Clang 3.2 fails

2013-12-06 Thread Scott Kostyshak
On Fri, Dec 6, 2013 at 4:45 PM, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:
 Le 06/12/2013 19:52, Scott Kostyshak a écrit :

 At some point not too long ago I was able to build with Clang. It was
 an older version though. Now I get an error when building boost
 error: use of undeclared identifier (see more output at the bottom).
 Is this something that should be fixed?


 I guess that upgrading to boost 1.55 before release would not hurt.

 Did you try to build --without-included-boost ?

I did not. I just tried with -DLYX_EXTERNAL_BOOST=ON
and got the error below.

[ 10%] Building CXX object src/support/CMakeFiles/support.dir/FileMonitor.cpp.o
cd /home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support 
/usr/bin/clang++-Wall -Wunused-parameter -std=gnu++0x
-fno-strict-aliasing  -Wall -Wunused-parameter -std=gnu++0x
-fno-strict-aliasing -O0 -g3 -D_DEBUG
-I/home/vbox/lyxbuilds/master-clang/CMakeBuild
-I/home/vbox/lyxbuilds/master-clang/repo/src -I/usr/include/enchant
-I/home/vbox/lyxbuilds/master-clang/repo/src/support
-I/home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support
-I/home/vbox/lyxbuilds/master-clang/repo/src/support/mythes
-I/usr/include/qt4 -I/usr/include/qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support
-I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest-o
CMakeFiles/support.dir/FileMonitor.cpp.o -c
/home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp
In file included from
/home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp:13:
In file included from
/home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.h:18:
In file included from /usr/include/boost/signal.hpp:17:
In file included from /usr/include/boost/config.hpp:40:
In file included from /usr/include/boost/config/select_stdlib_config.hpp:37:
In file included from /usr/include/boost/config/no_tr1/utility.hpp:21:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/utility:69:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_pair.h:59:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/move.h:57:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:268:39:
error: use of undeclared identifier '__float128'
struct __is_floating_point_helper__float128
  ^
1 error generated.

Scott


Re: building with Clang 3.2 fails

2013-12-06 Thread Jean-Marc Lasgouttes

Le 06/12/2013 19:52, Scott Kostyshak a écrit :

At some point not too long ago I was able to build with Clang. It was
an older version though. Now I get an error when building boost
"error: use of undeclared identifier" (see more output at the bottom).
Is this something that should be fixed?


I guess that upgrading to boost 1.55 before release would not hurt.

Did you try to build --without-included-boost ?

JMarc



Re: building with Clang 3.2 fails

2013-12-06 Thread Scott Kostyshak
On Fri, Dec 6, 2013 at 4:45 PM, Jean-Marc Lasgouttes  wrote:
> Le 06/12/2013 19:52, Scott Kostyshak a écrit :
>
>> At some point not too long ago I was able to build with Clang. It was
>> an older version though. Now I get an error when building boost
>> "error: use of undeclared identifier" (see more output at the bottom).
>> Is this something that should be fixed?
>
>
> I guess that upgrading to boost 1.55 before release would not hurt.
>
> Did you try to build --without-included-boost ?

I did not. I just tried with -DLYX_EXTERNAL_BOOST=ON
and got the error below.

[ 10%] Building CXX object src/support/CMakeFiles/support.dir/FileMonitor.cpp.o
cd /home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support &&
/usr/bin/clang++-Wall -Wunused-parameter -std=gnu++0x
-fno-strict-aliasing  -Wall -Wunused-parameter -std=gnu++0x
-fno-strict-aliasing -O0 -g3 -D_DEBUG
-I/home/vbox/lyxbuilds/master-clang/CMakeBuild
-I/home/vbox/lyxbuilds/master-clang/repo/src -I/usr/include/enchant
-I/home/vbox/lyxbuilds/master-clang/repo/src/support
-I/home/vbox/lyxbuilds/master-clang/CMakeBuild/src/support
-I/home/vbox/lyxbuilds/master-clang/repo/src/support/mythes
-I/usr/include/qt4 -I/usr/include/qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/Qt3Support
-I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest-o
CMakeFiles/support.dir/FileMonitor.cpp.o -c
/home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp
In file included from
/home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.cpp:13:
In file included from
/home/vbox/lyxbuilds/master-clang/repo/src/support/FileMonitor.h:18:
In file included from /usr/include/boost/signal.hpp:17:
In file included from /usr/include/boost/config.hpp:40:
In file included from /usr/include/boost/config/select_stdlib_config.hpp:37:
In file included from /usr/include/boost/config/no_tr1/utility.hpp:21:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/utility:69:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_pair.h:59:
In file included from
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/move.h:57:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/type_traits:268:39:
error: use of undeclared identifier '__float128'
struct __is_floating_point_helper<__float128>
  ^
1 error generated.

Scott