Re: git clone compile errors on isnan

2016-08-06 Thread Larry Evans

On 08/04/2016 03:35 PM, Larry Evans wrote:

   Following directions here:
https://www.libreoffice.org/about-us/source-code/
   cloned libreoffice source:
Welcome to the Emacs shell


OOPS.  Sorry for double post.
Please ignore this one.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread Larry Evans

On 08/05/2016 08:24 AM, Michael Stahl wrote:
[snip]

did you do a "make clean" after your previous build attempt?  if there
are still object files around built by the compiler in /usr/local then
problems like that are expected.

in case "make clean" doesn't fix it try "make verbose=t
LDFLAGS="-Wl,--trace"" to see what libraries are being linked.



YEAH MICHAEL!

The following:
--{--cut here--
make clean
export CC=/usr/bin/gcc ; export CXX=/usr/bin/g++ ; ./configure
make
--}--cut here--
worked.  Last 2 lines of output:

[BIN] top level modules: libreoffice
[ALL] top level modules: build-non-l10n-only build-l10n-only

Thanks Mike!

BTW, the --with-gcc-home= apparently didn't
set CC to /usr/bin/gcc.  It only set CXX to /usr/bin/g++.

Also, what produces the [BIN] and [ALL] output on output.
I've never seen that before in a make.  Just curious.

-regards,
Larry



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread Michael Stahl
On 05.08.2016 14:48, Larry Evans wrote:
> On 08/05/2016 05:21 AM, Michael Stahl wrote:
>> On 04.08.2016 22:24, Larry Evans wrote:
> [snip]
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:137:75:
>>> error: ‘::isnan’ has not been declared
>>>   inline bool is_nan_helper(__float128 f, const boost::true_type&) {
>>> return ::isnan(static_cast(f)); }
>>>
>>> ^
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:137:75:
>>> note: suggested alternatives:
>>> In file included from /usr/local/include/c++/4.9.0/random:38:0,
>>>   from /usr/local/include/c++/4.9.0/bits/stl_algo.h:66,
>>>   from /usr/local/include/c++/4.9.0/algorithm:62,
>>>   from
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/smart_ptr/shared_ptr.hpp:38,
>>>   from
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/shared_ptr.hpp:17,
>>>   from
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/external/boost/include/boost/shared_ptr.hpp:22,
>>>   from
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/date_time/gregorian/greg_month.hpp:14,
>>>   from
>>> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/libs/date_time/src/gregorian/greg_month.cpp:14:
>>> /usr/local/include/c++/4.9.0/cmath:632:5: note:   ‘std::isnan’
>>>   isnan(_Tp __x)
>>>   ^
>>
>> you are using a custom toolchain installed in /usr/local that is not set
>> up correctly.
>>
> [snip]
>>  you could just use the GCC shipped
>> in your distribution which presumably works.
> 
> Tried that by running ./configure as follows:
> 
> evansl@lje-OptiPlex-9020:~/dwnlds/LibreOffice/git-clone/libreoffice$ 
> ./configure --with-gcc-home=/usr

i have never heard of --with-gcc-home, but according to configure.ac it
should set the variables CC=/usr/bin/gcc and CXX=/usr/bin/g++ which is
what i would set manually anyway, so looks like it does the right thing
(you can double-check the values in config_host.mk)

> after that, ran make; however, now getting undefined reference error 
> during collect2:
> 
> [DEP] LNK:Executable/regview
> [LNK] Executable/regview
> /home/evansl/dwnlds/LibreOffice/git-clone/libreoffice/workdir/CxxObject/registry/tools/regmerge.o:
>  
> In function `main':
> regmerge.cxx:(.text.startup+0xaf): undefined reference to 
> `registry::tools::Options::checkArgument(std::vector  
> std::char_traits, std::allocator >, 
> std::allocator std::allocator > > >&, char const*, unsigned long)'
> regmerge.cxx:(.text.startup+0x11c): undefined reference to 
> `registry::tools::Options::initOptions(std::vector  
> std::char_traits, std::allocator >, 
> std::allocator std::allocator > > >&)'
> collect2: error: ld returned 1 exit status

very odd... i bet there is some inconsistency somewhere wrt. setting of
the macro _GLIBCXX_USE_CXX11_ABI and the libstdc++ being linked.

did you do a "make clean" after your previous build attempt?  if there
are still object files around built by the compiler in /usr/local then
problems like that are expected.

in case "make clean" doesn't fix it try "make verbose=t
LDFLAGS="-Wl,--trace"" to see what libraries are being linked.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread Eike Rathke
Hi Larry,

On Friday, 2016-08-05 06:31:37 -0500, Larry Evans wrote:

> https://wiki.documentfoundation.org/Development/gerrit/setup#Detailed_and_nitty-gritty_setup_topics
> 
> However, step 6:
> 
>  6. Setup your git repo so that it pushes to gerrit using the SSH key:
> 
> git config remote.origin.pushurl ssh://logerrit/core
> 
> failed because I didn't alread have a .git directory.

Then your git clone previously failed.

> I tried to edit the wiki page to suggest adding another step,
> such as:
> 
>   git clone ssh://logerrit/core

That doesn't belong there because
a) the entire gerrit setup presupposes that you *already* cloned the git repo
b) cloning via the ssh-url puts unnecessary load on the server, only the
   pushurl needs to be ssh
b.2) the better command would be
 git clone git://gerrit.libreoffice.org/core

> but it wouldn't let me (it said I had to supply an email,
> which I already had done).

Where you should have received a confirmation mail you need to act on.

> I did try the above `git clone` but it took sooo long,
> I aborted it.

The LibreOffice repository is huge, you'll have to be patient.

You will need a completely cloned repository to proceed with any gerrit
setup and development.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack


signature.asc
Description: PGP signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread Larry Evans

On 08/05/2016 05:21 AM, Michael Stahl wrote:

On 04.08.2016 22:24, Larry Evans wrote:

[snip]

/home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:137:75:
error: ‘::isnan’ has not been declared
  inline bool is_nan_helper(__float128 f, const boost::true_type&) {
return ::isnan(static_cast(f)); }

^
/home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:137:75:
note: suggested alternatives:
In file included from /usr/local/include/c++/4.9.0/random:38:0,
  from /usr/local/include/c++/4.9.0/bits/stl_algo.h:66,
  from /usr/local/include/c++/4.9.0/algorithm:62,
  from
/home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/smart_ptr/shared_ptr.hpp:38,
  from
/home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/shared_ptr.hpp:17,
  from
/home/evansl/dwnlds/LibreOffice/libreoffice/external/boost/include/boost/shared_ptr.hpp:22,
  from
/home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/date_time/gregorian/greg_month.hpp:14,
  from
/home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/libs/date_time/src/gregorian/greg_month.cpp:14:
/usr/local/include/c++/4.9.0/cmath:632:5: note:   ‘std::isnan’
  isnan(_Tp __x)
  ^


you are using a custom toolchain installed in /usr/local that is not set
up correctly.


[snip]

 you could just use the GCC shipped
in your distribution which presumably works.


Tried that by running ./configure as follows:

evansl@lje-OptiPlex-9020:~/dwnlds/LibreOffice/git-clone/libreoffice$ 
./configure --with-gcc-home=/usr


after that, ran make; however, now getting undefined reference error 
during collect2:


[DEP] LNK:Executable/regview
[LNK] Executable/regview
/home/evansl/dwnlds/LibreOffice/git-clone/libreoffice/workdir/CxxObject/registry/tools/regmerge.o: 
In function `main':
regmerge.cxx:(.text.startup+0xaf): undefined reference to 
`registry::tools::Options::checkArgument(std::vector, 
std::allocator > >&, char const*, unsigned long)'
regmerge.cxx:(.text.startup+0x11c): undefined reference to 
`registry::tools::Options::initOptions(std::vector, 
std::allocator > >&)'

collect2: error: ld returned 1 exit status
/home/evansl/dwnlds/LibreOffice/git-clone/libreoffice/registry/Executable_regmerge.mk:10: 
recipe for target 
'/home/evansl/dwnlds/LibreOffice/git-clone/libreoffice/instdir/program/regmerge' 
failed


The code was downloaded with:

git clone git://anongit.freedesktop.org/libreoffice/core libreoffice

As noted in my reply to Jan, I did try the gerrit download; however,
I had the noted problems.

Any suggestions about how to avoid this undefined reference?

-regards,
Larry



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread Larry Evans

On 08/05/2016 02:50 AM, jan iversen wrote:

Hi

It looks like you did the right things, however we have made a guide for
starting a new contributor:

https://wiki.documentfoundation.org/Development/GetInvolved

Which at least is more recent.

rgds
jan I.



Thanks Jan.

I followed (carefully) instructions here:

https://wiki.documentfoundation.org/Development/gerrit/setup#Detailed_and_nitty-gritty_setup_topics

However, step 6:

 6. Setup your git repo so that it pushes to gerrit using the SSH key:

git config remote.origin.pushurl ssh://logerrit/core

failed because I didn't alread have a .git directory.
I tried to edit the wiki page to suggest adding another step,
such as:

  git clone ssh://logerrit/core

but it wouldn't let me (it said I had to supply an email,
which I already had done).

I did try the above `git clone` but it took sooo long,
I aborted it.

I'll try Michael's suggestion and try to specify the compiler
command to use, somehow.

Thanks for you help Jan and Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread Michael Stahl
On 04.08.2016 22:24, Larry Evans wrote:
> In file included from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/lexical_cast/detail/inf_nan.hpp:35:0,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/lexical_cast/detail/converter_lexical_streams.hpp:63,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/lexical_cast/detail/converter_lexical.hpp:54,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/lexical_cast/try_lexical_convert.hpp:42,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/lexical_cast.hpp:32,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/external/boost/include/boost/lexical_cast.hpp:22,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/date_time/date_names_put.hpp:20,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/date_time/date_formatting_locales.hpp:18,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/date_time/gregorian/greg_facet.hpp:13,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/libs/date_time/src/gregorian/greg_month.cpp:15:
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:
>  
> In function ‘bool boost::math_detail::is_nan_helper(__float128, const 
> true_type&)’:
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:137:75:
>  
> error: ‘::isnan’ has not been declared
>   inline bool is_nan_helper(__float128 f, const boost::true_type&) { 
> return ::isnan(static_cast(f)); }
>  
> ^
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/math/special_functions/fpclassify.hpp:137:75:
>  
> note: suggested alternatives:
> In file included from /usr/local/include/c++/4.9.0/random:38:0,
>   from /usr/local/include/c++/4.9.0/bits/stl_algo.h:66,
>   from /usr/local/include/c++/4.9.0/algorithm:62,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/smart_ptr/shared_ptr.hpp:38,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/shared_ptr.hpp:17,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/external/boost/include/boost/shared_ptr.hpp:22,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/boost/date_time/gregorian/greg_month.hpp:14,
>   from 
> /home/evansl/dwnlds/LibreOffice/libreoffice/workdir/UnpackedTarball/boost/libs/date_time/src/gregorian/greg_month.cpp:14:
> /usr/local/include/c++/4.9.0/cmath:632:5: note:   ‘std::isnan’
>   isnan(_Tp __x)
>   ^

you are using a custom toolchain installed in /usr/local that is not set
up correctly.

various GCC headers and glibc headers with the same name include each
other via #include_next, and that doesn't work in your case for whatever
reason, the file /usr/include/math.h that defines a ::isnan (or isnan as
a macro, in case of Fedora 24) isn't included.

you could spend some hours looking at preprocessor output and tweak
include paths to get that to work, or you could just use the GCC shipped
in your distribution which presumably works.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-05 Thread jan iversen
Hi

It looks like you did the right things, however we have made a guide for 
starting a new contributor:

https://wiki.documentfoundation.org/Development/GetInvolved

Which at least is more recent.

rgds
jan I.


> On 05 Aug 2016, at 03:45, Larry Evans  wrote:
> 
>> On 08/04/2016 03:24 PM, Larry Evans wrote:
>>  Following directions here:
>> https://www.libreoffice.org/about-us/source-code/
> [snip]
> 
>>  Then, did the ./autogen.sh followed by make; however, the make
>>  resulted in several errors.
> [snip]
> My OS is:
> 
> Linux lje-OptiPlex-9020 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 
> UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
> 
> 
> 
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libreoffice
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: git clone compile errors on isnan

2016-08-04 Thread Larry Evans

On 08/04/2016 03:24 PM, Larry Evans wrote:

  Following directions here:
https://www.libreoffice.org/about-us/source-code/

[snip]


  Then, did the ./autogen.sh followed by make; however, the make
  resulted in several errors.

[snip]
My OS is:

Linux lje-OptiPlex-9020 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 
00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice