Commit 4648c6b2 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

component/onlyoffice-core: add lib64 folder for correct use slaposgcc on 64 platform

parent 316049bf
...@@ -20,8 +20,8 @@ configure-options = ...@@ -20,8 +20,8 @@ configure-options =
<= icu4c <= icu4c
environment = environment =
PATH=${gcc:location}/bin:%(PATH)s PATH=${gcc:location}/bin:%(PATH)s
LD_LIBRARY_PATH=${gcc:location}/lib LD_LIBRARY_PATH=${gcc:location}/lib:${gcc:location}/lib64
LDFLAGS=-Wl,-rpath=${gcc:location}/lib LDFLAGS=-Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64
[icu] [icu]
<= icu4c <= icu4c
......
...@@ -22,7 +22,7 @@ make-targets = lib bin ...@@ -22,7 +22,7 @@ make-targets = lib bin
environment = environment =
PATH=${gcc:location}/bin:${qt5-qmake:location}/bin:%(PATH)s PATH=${gcc:location}/bin:${qt5-qmake:location}/bin:%(PATH)s
CXXFLAGS=-I${libxml2:location}/include -I${zlib:location}/include -I${icu4c-slaposgcc:location}/include -I${boost-lib:location}/include -Wno-comment -Wno-deprecated-declarations -Wno-endif-labels -Wno-parentheses -Wno-reorder -Wno-sign-compare -Wno-switch -Wno-unknown-pragmas -Wno-unused CXXFLAGS=-I${libxml2:location}/include -I${zlib:location}/include -I${icu4c-slaposgcc:location}/include -I${boost-lib:location}/include -Wno-comment -Wno-deprecated-declarations -Wno-endif-labels -Wno-parentheses -Wno-reorder -Wno-sign-compare -Wno-switch -Wno-unknown-pragmas -Wno-unused
LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${icu4c-slaposgcc:location}/lib -Wl,-rpath=${icu4c-slaposgcc:location}/lib -L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -Wl,-rpath=${:location}/lib LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib -L${gcc:location}/lib64 -Wl,-rpath=${gcc:location}/lib64 -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${icu4c-slaposgcc:location}/lib -Wl,-rpath=${icu4c-slaposgcc:location}/lib -L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -Wl,-rpath=${:location}/lib
post-install = post-install =
  • @bk This component is failing to build on some server (debian 7 and debian 8, I didn't check debian9). do you know why ?

    [2018-03-16 18:37:14,136] INFO     /srv/slapgrid/slappart3/srv/runner/software/91d390c06dd1248e1206722d1db6f92d/parts/onlyoffice-core__compile__/onlyoffice_core-b051e75b179b3599c09937668fbbd2d7e2c50683-b051e75b
    179b3599c09937668fbbd2d7e2c50683/DesktopEditor/cximage/mng/libmng_jpeg.c: In function 'mng_output_message':
    [2018-03-16 18:37:14,136] INFO     /srv/slapgrid/slappart3/srv/runner/software/91d390c06dd1248e1206722d1db6f92d/parts/onlyoffice-core__compile__/onlyoffice_core-b051e75b179b3599c09937668fbbd2d7e2c50683-b051e75b
    179b3599c09937668fbbd2d7e2c50683/DesktopEditor/cximage/mng/libmng_jpeg.c:215:39: warning: unused parameter 'cinfo' [-Wunused-parameter]
    [2018-03-16 18:37:14,136] INFO      void mng_output_message (j_common_ptr cinfo)
    [2018-03-16 18:37:14,136] INFO                                            ^
    [2018-03-16 18:37:14,241] INFO     g++: internal compiler error: Killed (program cc1plus)
    [2018-03-16 18:37:14,241] INFO     Please submit a full bug report,
    [2018-03-16 18:37:14,242] INFO     with preprocessed source if appropriate.
    [2018-03-16 18:37:14,242] INFO     See <http://gcc.gnu.org/bugs.html> for instructions.
    [2018-03-16 18:37:14,243] INFO     Makefile.OdfFileReaderLib:1108: recipe for target '../../../ASCOfficeOdfFile/linux/core_build/linux_64/release/obj/odffilereaderlib_odf.o' failed
    [2018-03-16 18:37:14,243] INFO     make[2]: *** [../../../ASCOfficeOdfFile/linux/core_build/linux_64/release/obj/odffilereaderlib_odf.o] Error 4
    [2018-03-16 18:37:14,244] INFO     make[2]: *** Waiting for unfinished jobs....
    
    .....
    
    [2018-03-16 18:39:24,922] INFO     Makefile:285: recipe for target 'build/bin/linux_64/x2t' failed
    [2018-03-16 18:39:24,923] INFO     make: *** [build/bin/linux_64/x2t] Error 2
    [2018-03-16 18:39:24,948] INFO     onlyoffice-core: Command failed with exit code 2: make 

    The server has memory and 12 CPUs

    # free -h
                 total       used       free     shared    buffers     cached
    Mem:           15G       5.8G       9.9G         0B       356M       591M
    -/+ buffers/cache:       4.8G        10G
    Swap:         4.6G       4.5G        14M
  • @alain.takoudjou Could you please send the dmesg command output. Does the error appear in the same place?

  • @alain.takoudjou , @bk - FYI. : I also was hit by this issue. I see that cc1plus was killed due to OOM by kernel so I will add more memory to machine and try again now :

    [1958533.541441] Out of memory: Kill process 23408 (cc1plus) score 309 or sacrifice child [1958533.543330] Killed process 23408 (cc1plus) total-vm:2578256kB, anon-rss:2490348kB, file-rss:544kB

  • I confirm, adding more RAM solved the issue.

Please register or sign in to reply
set -e -x set -e -x
mkdir -p ${:location}/bin ${:location}/lib mkdir -p ${:location}/bin ${:location}/lib
......
...@@ -25,7 +25,7 @@ configure-options = ...@@ -25,7 +25,7 @@ configure-options =
environment = environment =
PATH=${gcc:location}/bin:%(PATH)s PATH=${gcc:location}/bin:%(PATH)s
CPPFLAGS=-I${libX11:location}/include -I${xproto:location}/include -I${libXext:location}/include CPPFLAGS=-I${libX11:location}/include -I${xproto:location}/include -I${libXext:location}/include
LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib -L${libX11:location}/lib -Wl,-rpath=${libX11:location}/lib -L${xproto:location}/lib -Wl,-rpath=${xproto:location}/lib -L${libXext:location}/lib -Wl,-rpath=${libXext:location}/lib LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib -L${gcc:location}/lib64 -Wl,-rpath=${gcc:location}/lib64 -L${libX11:location}/lib -Wl,-rpath=${libX11:location}/lib -L${xproto:location}/lib -Wl,-rpath=${xproto:location}/lib -L${libXext:location}/lib -Wl,-rpath=${libXext:location}/lib
make-binary = true make-binary = true
post-install = post-install =
mkdir -p ${:location}/bin mkdir -p ${:location}/bin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment