You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Arrigo Marchiori <ar...@yahoo.it.INVALID> on 2020/11/19 17:40:09 UTC

Problem with Boost headers under openSUSE Leap 15.2

Dear List,

I am trying to build AOO418 on my up-to-date openSUSE Leap 15.2
x86_64.

Compilation fails on module xml2cmp, file
ain/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp with
the message "no such file or directory" when looking for header
"../7.5.0/utility".

It seems to be the very same problem that was reported on this list by
Mechtilde Stehmann on October 24th, 2019:
https://lists.apache.org/thread.html/bcf4bd7d903caa8a07f04aa04e884fd576290c86c3aacd8d4447614d%40%3Cdev.openoffice.apache.org%3E

The only directory under /usr/include/c++ is named '7' instead of
'7.5.0' and the above thread seems to suggest that this is the
problem.

Last lines of the build output on my system [path redacted]:

Compiling: xml2cmp/source/finder/dependy.cxx
In file included from path/main/solver/418/unxlngx6.pro/inc/boost/tr1/tr1/vector:16:0,
                 from path/main/solver/418/unxlngx6.pro/inc/stl/vector:33,
                 from path/main/xml2cmp/source/finder/dependy.hxx:28,
                 from path/main/xml2cmp/source/finder/dependy.cxx:25:
path/main/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp:103:44: fatal error: ../7.5.0/utility: No such file or directory
 #        define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>


Fun fact (?): Ubuntu 18.04 is also shipping gcc 7.5.0 but it does have
directory /usr/include/c++/7.5.0 as a symlink to /usr/include/c++/7
That is probably why AOO148 builds seamlessly there.

Shall I open a PR for this?

Thank you in advance!
-- 
rigo

http://rigo.altervista.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Problem with Boost headers under openSUSE Leap 15.2

Posted by Arrigo Marchiori <ar...@yahoo.it.INVALID>.
Hello Mechtilde, and thank you for replying.

On Thu, Nov 19, 2020 at 07:21:11PM +0100, Mechtilde wrote:

> Hello,
> 
> i guess, you use Java 11 too. Veriosn 4.1.8 builds only with Java 8.

Apparently not... I have package java-1_8_0-openjdk-devel that is
described as OpenJDK 8.

$ javac -version
javac 1.8.0_252

$ grep JAVA path/main/config.log
ac_cv_path_JAVACOMPILER=/usr/bin/javac
ac_cv_path_JAVADOC=/usr/bin/javadoc
ac_cv_path_JAVAINTERPRETER=/usr/bin/java
ENABLE_JAVASCRIPT='NO'
JAVAAOTCOMPILER=''
JAVACISGCJ=''
JAVACOMPILER='/usr/bin/javac'
JAVADOC='/usr/bin/javadoc'
JAVAFLAGS='-source 1.5 -target 1.5'
JAVAIFLAGS=''
JAVAINTERPRETER='/usr/bin/java'
JAVA_HOME='/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0'
SOLAR_JAVA='TRUE'

> If you are interested we can work to get AOO 4.2 built with Java 11.

I personally do not work with Java and have very small experience with
it... but if I could help to make OpenOffice more "future-proof" I
would be very glad to contribute!

Best regards.

> Am 19.11.20 um 18:40 schrieb Arrigo Marchiori:
> > Dear List,
> > 
> > I am trying to build AOO418 on my up-to-date openSUSE Leap 15.2
> > x86_64.
> > 
> > Compilation fails on module xml2cmp, file
> > ain/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp with
> > the message "no such file or directory" when looking for header
> > "../7.5.0/utility".
> > 
> > It seems to be the very same problem that was reported on this list by
> > Mechtilde Stehmann on October 24th, 2019:
> > https://lists.apache.org/thread.html/bcf4bd7d903caa8a07f04aa04e884fd576290c86c3aacd8d4447614d%40%3Cdev.openoffice.apache.org%3E
> > 
> > The only directory under /usr/include/c++ is named '7' instead of
> > '7.5.0' and the above thread seems to suggest that this is the
> > problem.
> > 
> > Last lines of the build output on my system [path redacted]:
> > 
> > Compiling: xml2cmp/source/finder/dependy.cxx
> > In file included from path/main/solver/418/unxlngx6.pro/inc/boost/tr1/tr1/vector:16:0,
> >                  from path/main/solver/418/unxlngx6.pro/inc/stl/vector:33,
> >                  from path/main/xml2cmp/source/finder/dependy.hxx:28,
> >                  from path/main/xml2cmp/source/finder/dependy.cxx:25:
> > path/main/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp:103:44: fatal error: ../7.5.0/utility: No such file or directory
> >  #        define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
> > 
> > 
> > Fun fact (?): Ubuntu 18.04 is also shipping gcc 7.5.0 but it does have
> > directory /usr/include/c++/7.5.0 as a symlink to /usr/include/c++/7
> > That is probably why AOO148 builds seamlessly there.
> > 
> > Shall I open a PR for this?
> > 
> > Thank you in advance!
> > 
> 
> -- 
> Mechtilde Stehmann
> ## Apache OpenOffice
> ## Freie Office Suite für Linux, MacOSX, Windows und OS/2
> ## Debian Developer
> ## PGP encryption welcome
> ## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F
> 




-- 
rigo

http://rigo.altervista.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Problem with Boost headers under openSUSE Leap 15.2

Posted by Mechtilde <oo...@mechtilde.de>.
Hello,

i guess, you use Java 11 too. Veriosn 4.1.8 builds only with Java 8.

If you are interested we can work to get AOO 4.2 built with Java 11.

Regards

Mechtilde

Am 19.11.20 um 18:40 schrieb Arrigo Marchiori:
> Dear List,
> 
> I am trying to build AOO418 on my up-to-date openSUSE Leap 15.2
> x86_64.
> 
> Compilation fails on module xml2cmp, file
> ain/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp with
> the message "no such file or directory" when looking for header
> "../7.5.0/utility".
> 
> It seems to be the very same problem that was reported on this list by
> Mechtilde Stehmann on October 24th, 2019:
> https://lists.apache.org/thread.html/bcf4bd7d903caa8a07f04aa04e884fd576290c86c3aacd8d4447614d%40%3Cdev.openoffice.apache.org%3E
> 
> The only directory under /usr/include/c++ is named '7' instead of
> '7.5.0' and the above thread seems to suggest that this is the
> problem.
> 
> Last lines of the build output on my system [path redacted]:
> 
> Compiling: xml2cmp/source/finder/dependy.cxx
> In file included from path/main/solver/418/unxlngx6.pro/inc/boost/tr1/tr1/vector:16:0,
>                  from path/main/solver/418/unxlngx6.pro/inc/stl/vector:33,
>                  from path/main/xml2cmp/source/finder/dependy.hxx:28,
>                  from path/main/xml2cmp/source/finder/dependy.cxx:25:
> path/main/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp:103:44: fatal error: ../7.5.0/utility: No such file or directory
>  #        define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
> 
> 
> Fun fact (?): Ubuntu 18.04 is also shipping gcc 7.5.0 but it does have
> directory /usr/include/c++/7.5.0 as a symlink to /usr/include/c++/7
> That is probably why AOO148 builds seamlessly there.
> 
> Shall I open a PR for this?
> 
> Thank you in advance!
> 

-- 
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


Re: Problem with Boost headers under openSUSE Leap 15.2

Posted by Arrigo Marchiori <ar...@yahoo.it.INVALID>.
Hello Peter,

On Sat, Nov 21, 2020 at 12:06:58PM +0100, Peter Kovacs wrote:

> Hi Arrigo
> 
> On 19.11.20 18:40, Arrigo Marchiori wrote:
> > Dear List,
> > 
> > I am trying to build AOO418 on my up-to-date openSUSE Leap 15.2
> > x86_64.
> > 
> > Compilation fails on module xml2cmp, file
> > ain/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp with
> > the message "no such file or directory" when looking for header
> > "../7.5.0/utility".
> > 
> > It seems to be the very same problem that was reported on this list by
> > Mechtilde Stehmann on October 24th, 2019:
> > https://lists.apache.org/thread.html/bcf4bd7d903caa8a07f04aa04e884fd576290c86c3aacd8d4447614d%40%3Cdev.openoffice.apache.org%3E
> > 
> > The only directory under /usr/include/c++ is named '7' instead of
> > '7.5.0' and the above thread seems to suggest that this is the
> > problem.
> > 
> > Last lines of the build output on my system [path redacted]:
> > 
> > Compiling: xml2cmp/source/finder/dependy.cxx
> > In file included from path/main/solver/418/unxlngx6.pro/inc/boost/tr1/tr1/vector:16:0,
> >                   from path/main/solver/418/unxlngx6.pro/inc/stl/vector:33,
> >                   from path/main/xml2cmp/source/finder/dependy.hxx:28,
> >                   from path/main/xml2cmp/source/finder/dependy.cxx:25:
> > path/main/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp:103:44: fatal error: ../7.5.0/utility: No such file or directory
> >   #        define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
> > 
> > 
> > Fun fact (?): Ubuntu 18.04 is also shipping gcc 7.5.0 but it does have
> > directory /usr/include/c++/7.5.0 as a symlink to /usr/include/c++/7
> > That is probably why AOO148 builds seamlessly there.
> > 
> > Shall I open a PR for this?
> If you have a solution that fits both sure. I think we should be as
> distribution independant as possible. Maybe we can handle it in the config
> step.

I believe that the problem is in boost, specifically in file
tr1/detail/config_all.hpp that _hardcodes_ the include path for c++
headers using the major.minor.patchlevel form.

Gcc seems to have changed its standard behavior, with respect to
filesystem paths, since Gcc 7. This has already caused some trouble in
the past: https://bz.apache.org/ooo/show_bug.cgi?id=127712

I will propose a patch to the Boost include files (hopefully) today.

I see that the topic of upgrading Boost and getting rid of TR1
is... hot, so I will just propose the least possible change to the
build system.
-- 
rigo

http://rigo.altervista.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Problem with Boost headers under openSUSE Leap 15.2

Posted by Peter Kovacs <pe...@apache.org>.
Hi Arrigo

On 19.11.20 18:40, Arrigo Marchiori wrote:
> Dear List,
>
> I am trying to build AOO418 on my up-to-date openSUSE Leap 15.2
> x86_64.
>
> Compilation fails on module xml2cmp, file
> ain/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp with
> the message "no such file or directory" when looking for header
> "../7.5.0/utility".
>
> It seems to be the very same problem that was reported on this list by
> Mechtilde Stehmann on October 24th, 2019:
> https://lists.apache.org/thread.html/bcf4bd7d903caa8a07f04aa04e884fd576290c86c3aacd8d4447614d%40%3Cdev.openoffice.apache.org%3E
>
> The only directory under /usr/include/c++ is named '7' instead of
> '7.5.0' and the above thread seems to suggest that this is the
> problem.
>
> Last lines of the build output on my system [path redacted]:
>
> Compiling: xml2cmp/source/finder/dependy.cxx
> In file included from path/main/solver/418/unxlngx6.pro/inc/boost/tr1/tr1/vector:16:0,
>                   from path/main/solver/418/unxlngx6.pro/inc/stl/vector:33,
>                   from path/main/xml2cmp/source/finder/dependy.hxx:28,
>                   from path/main/xml2cmp/source/finder/dependy.cxx:25:
> path/main/solver/418/unxlngx6.pro/inc/boost/tr1/detail/config_all.hpp:103:44: fatal error: ../7.5.0/utility: No such file or directory
>   #        define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
>
>
> Fun fact (?): Ubuntu 18.04 is also shipping gcc 7.5.0 but it does have
> directory /usr/include/c++/7.5.0 as a symlink to /usr/include/c++/7
> That is probably why AOO148 builds seamlessly there.
>
> Shall I open a PR for this?
If you have a solution that fits both sure. I think we should be as 
distribution independant as possible. Maybe we can handle it in the 
config step.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org