Error building LO on local system

classic Classic list List threaded Threaded
5 messages Options
Huzaifa Iftikhar Huzaifa Iftikhar
Reply | Threaded
Open this post in threaded view
|

Error building LO on local system

Hi,
I updated my master branch today with the command ./g pull -r and after that when I tried to build LibreOffice with the make command it doesn't build anymore and shows the following error 

/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"

Earlier the master used to build successfully and I always create a separate branch for patches and don't make changes on Branch master itself.


I have pasted the logs of my terminal below and also attached a txt file of the same.


huzaifa@HP-Pavilion-g6-Notebook-PC:~$ cd libreoffice/
huzaifa@HP-Pavilion-g6-Notebook-PC:~/libreoffice$ ./g pull -r
Current branch master is up to date.
huzaifa@HP-Pavilion-g6-Notebook-PC:~/libreoffice$ make
mkdir -p /home/huzaifa/libreoffice/instdir
/home/huzaifa/libreoffice/solenv/bin/install-gdb-printers -a /home/huzaifa/libreoffice/instdir -c
make -j 4  -rs -f /home/huzaifa/libreoffice/Makefile.gbuild    all
[build DEP] LNK:Executable/bestreversemap
[build DEP] LNK:Library/libstorelo.so
[build DEP] LNK:Library/libuno_salhelpergcc3.so.3
[build DEP] LNK:Library/libsal_textenclo.so
[build DEP] LNK:Library/libuno_sal.so.3
[build DEP] LNK:Library/libreglo.so
[build DEP] LNK:StaticLibrary/libcodemaker_cpp.a
[build DEP] LNK:StaticLibrary/libcodemaker.a
[build DEP] LNK:Library/libuno_sal.so.3
[build LNK] Library/libuno_sal.so.3
[build DEP] LNK:StaticLibrary/libcodemaker_cpp.a
[build LNK] StaticLibrary/libcodemaker_cpp.a
[build DEP] LNK:StaticLibrary/libcodemaker.a
[build LNK] StaticLibrary/libcodemaker.a
[build C  ] UnpackedTarball/epoxy/src/dispatch_common.c
[build C  ] UnpackedTarball/epoxy/src/gl_generated_dispatch.c
[build C  ] UnpackedTarball/epoxy/src/dispatch_glx.c
[build C  ] UnpackedTarball/epoxy/src/glx_generated_dispatch.c
[build C  ] UnpackedTarball/epoxy/src/dispatch_egl.c
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_glx.c:28:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/gl_generated_dispatch.c:31:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.c:103:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/glx_generated_dispatch.c:9:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/dispatch_glx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/glx_generated_dispatch.o] Error 1
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/gl_generated_dispatch.o] Error 1
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/dispatch_common.o] Error 1
make: *** [build] Error 2
huzaifa@HP-Pavilion-g6-Notebook-PC:~/libreoffice$ 




Is this a problem with the master branch of LibreOffice or is this a problem in my local system only ?

I hope someone will look into this.




_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice

terminal log.txt (5K) Download Attachment
Tor Lillqvist-2 Tor Lillqvist-2
Reply | Threaded
Open this post in threaded view
|

Re: Error building LO on local system


Earlier the master used to build successfully and I always create a separate branch for patches and don't make changes on Branch master itself.

Unless you are an experienced developer who is working on a specific feature where your work in progress will interfere with how LibreOffice works for others, it is really not useful to use a branch. In my opinion. If you use a branch, you will miss build fixes others have committed to master. For instance for this very problem (that others have seen, too), and that might be fixed in master already.

--tml
 

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Markus Mohrhard Markus Mohrhard
Reply | Threaded
Open this post in threaded view
|

Re: Error building LO on local system

In reply to this post by Huzaifa Iftikhar
Hey,

On Mon, Dec 26, 2016 at 4:56 PM, Huzaifa Iftikhar <[hidden email]> wrote:
Hi,
I updated my master branch today with the command ./g pull -r and after that when I tried to build LibreOffice with the make command it doesn't build anymore and shows the following error 

/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"

Earlier the master used to build successfully and I always create a separate branch for patches and don't make changes on Branch master itself.


I have pasted the logs of my terminal below and also attached a txt file of the same.


huzaifa@HP-Pavilion-g6-Notebook-PC:~$ cd libreoffice/
huzaifa@HP-Pavilion-g6-Notebook-PC:~/libreoffice$ ./g pull -r
Current branch master is up to date.
huzaifa@HP-Pavilion-g6-Notebook-PC:~/libreoffice$ make
mkdir -p /home/huzaifa/libreoffice/instdir
/home/huzaifa/libreoffice/solenv/bin/install-gdb-printers -a /home/huzaifa/libreoffice/instdir -c
make -j 4  -rs -f /home/huzaifa/libreoffice/Makefile.gbuild    all
[build DEP] LNK:Executable/bestreversemap
[build DEP] LNK:Library/libstorelo.so
[build DEP] LNK:Library/libuno_salhelpergcc3.so.3
[build DEP] LNK:Library/libsal_textenclo.so
[build DEP] LNK:Library/libuno_sal.so.3
[build DEP] LNK:Library/libreglo.so
[build DEP] LNK:StaticLibrary/libcodemaker_cpp.a
[build DEP] LNK:StaticLibrary/libcodemaker.a
[build DEP] LNK:Library/libuno_sal.so.3
[build LNK] Library/libuno_sal.so.3
[build DEP] LNK:StaticLibrary/libcodemaker_cpp.a
[build LNK] StaticLibrary/libcodemaker_cpp.a
[build DEP] LNK:StaticLibrary/libcodemaker.a
[build LNK] StaticLibrary/libcodemaker.a
[build C  ] UnpackedTarball/epoxy/src/dispatch_common.c
[build C  ] UnpackedTarball/epoxy/src/gl_generated_dispatch.c
[build C  ] UnpackedTarball/epoxy/src/dispatch_glx.c
[build C  ] UnpackedTarball/epoxy/src/glx_generated_dispatch.c
[build C  ] UnpackedTarball/epoxy/src/dispatch_egl.c
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_glx.c:28:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/gl_generated_dispatch.c:31:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.c:103:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
In file included from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl.h:46:0,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/dispatch_common.h:53,
                 from /home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/src/glx_generated_dispatch.c:9:
/home/huzaifa/libreoffice/workdir/UnpackedTarball/epoxy/include/epoxy/egl_generated.h:10:29: fatal error: EGL/eglplatform.h: No such file or directory
 #include "EGL/eglplatform.h"
                             ^
compilation terminated.
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/dispatch_glx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/glx_generated_dispatch.o] Error 1
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/gl_generated_dispatch.o] Error 1
make[1]: *** [/home/huzaifa/libreoffice/workdir/GenCObject/UnpackedTarball/epoxy/src/dispatch_common.o] Error 1
make: *** [build] Error 2
huzaifa@HP-Pavilion-g6-Notebook-PC:~/libreoffice$ 




Is this a problem with the master branch of LibreOffice or is this a problem in my local system only ?

I hope someone will look into this.



This is a missing package in your system. After a git pull -r and calling make again configure should now complain about the missing egl development package. You need the mesa egl dev package (however it is called on your system).

Regards,
Markus


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Mike Kaganski Mike Kaganski
Reply | Threaded
Open this post in threaded view
|

Re: Error building LO on local system

In reply to this post by Tor Lillqvist-2
On 12/26/2016 11:16 PM, Tor Lillqvist wrote:

Earlier the master used to build successfully and I always create a separate branch for patches and don't make changes on Branch master itself.

Unless you are an experienced developer who is working on a specific feature where your work in progress will interfere with how LibreOffice works for others, it is really not useful to use a branch. In my opinion. If you use a branch, you will miss build fixes others have committed to master. For instance for this very problem (that others have seen, too), and that might be fixed in master already.

I suppose that using local branches is very convenient and correct way. If you only work with one patch at a time, you may use master; but when you are working on several (like e.g. one patch is being polished in gerrit, while another is in progress), then using master becomes messy.

I use a commant like this:
git checkout master && ./g pull -r && for branch in $(git branch | cut -c 3-) ; do if [ $branch != "master" ] ; then git rebase master $branch ; fi ; done && git checkout <A-CHOSEN-BRANCH-NAME-HERE> && make
to keep all branches up-to-date (I must say that I keep branches/tags like libreoffice-5-3 etc. on a different repo). Doing so allows me avoid huge recompilations each time I checkout a different branch, because  they are based on same baseline, and differ only by their specific commits (so building one makes all other ready for quick incremental build).

--
Best regards,
Mike Kaganski

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Tor Lillqvist-2 Tor Lillqvist-2
Reply | Threaded
Open this post in threaded view
|

Re: Error building LO on local system


I use a commant like this:
git checkout master && ./g pull -r && for branch in $(git branch | cut -c 3-) ; do if [ $branch != "master" ] ; then git rebase master $branch ; fi ; done && git checkout <A-CHOSEN-BRANCH-NAME-HERE> && make
to keep all branches up-to-date (I must say that I keep branches/tags like libreoffice-5-3 etc. on a different repo). Doing so allows me avoid huge recompilations each time I checkout a different branch, because  they are based on same baseline, and differ only by their specific commits (so building one makes all other ready for quick incremental build).

And that is something you expect a newbie to understand?

--tml 

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice