From mboxrd@z Thu Jan  1 00:00:00 1970
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: Hyperscan crashes in build process
Date: Fri, 07 Jun 2019 11:11:16 +0100
Message-ID: <59E6E1BF-F0FA-4ADF-97E0-FB155785848B@ipfire.org>
In-Reply-To: <87b61593e38d3719d938c034721771a5ea37f658.camel@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0582231172229496223=="
List-Id: <development.lists.ipfire.org>

--===============0582231172229496223==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

You should be able to see what parallelism make is using. It should be -j1.

If that is already the case, then you need more RAM to build this.

Best,
-Michael

> On 6 Jun 2019, at 18:39, ummeegge <ummeegge(a)ipfire.org> wrote:
>=20
> Hi Michael,
>=20
> On Do, 2019-06-06 at 08:26 +0100, Michael Tremer wrote:
>> How many CPU cores does it have (I assume it is a VM)?
> It=C2=B4s my good old JNC9C -->
> https://fireinfo.ipfire.org/profile/72d11e77621ec66ea75d39e3c9b10025e746e5af
>=20
>>=20
>> You can disable parallelism then. The build should generally be able
>> to run through with 2GB of RAM because it does that on the ARM
>> boards.
> You mean by commenting the 'MAX_PARALLELISM' line in hyperscan LFS ?
> If yes i hyperscan quits nevertheless
>=20
> [ 81%] Building CXX object CMakeFiles/hs_compile_shared.dir/src/rose/rose_b=
uild_instructions.cpp.o
> c++: fatal error: Killed signal terminated program cc1plus
> compilation terminated.
> make[3]: *** [CMakeFiles/hs_compile_shared.dir/build.make:1776: CMakeFiles/=
hs_compile_shared.dir/src/rose/rose_build_exclusive.cpp.o] Error 1
> make[3]: *** Deleting file 'CMakeFiles/hs_compile_shared.dir/src/rose/rose_=
build_exclusive.cpp.o'
> make[3]: *** Waiting for unfinished jobs....
> c++: fatal error: Killed signal terminated program cc1plus
> compilation terminated.
> make[3]: *** [CMakeFiles/hs_compile_shared.dir/build.make:1698: CMakeFiles/=
hs_compile_shared.dir/src/rose/rose_build_bytecode.cpp.o] Error 1
> make[3]: *** Deleting file 'CMakeFiles/hs_compile_shared.dir/src/rose/rose_=
build_bytecode.cpp.o'
> make[3]: Leaving directory '/usr/src/hyperscan-5.1.1'
> make[2]: *** [CMakeFiles/Makefile2:251: CMakeFiles/hs_compile_shared.dir/al=
l] Error 2
> make[2]: Leaving directory '/usr/src/hyperscan-5.1.1'
> make[1]: *** [Makefile:130: all] Error 2
> make[1]: Leaving directory '/usr/src/hyperscan-5.1.1'
> make: *** [hyperscan:80: /usr/src/log/hyperscan-5.1.1] Error 2
>=20
>=20
>=20
>>=20
>> -Michael
>=20
> Best,
>=20
> Erik
>=20
>=20
>>=20
>>> On 6 Jun 2019, at 07:31, ummeegge <ummeegge(a)ipfire.org> wrote:
>>>=20
>>> On Mi, 2019-06-05 at 17:48 +0100, Michael Tremer wrote:
>>>> Can you upgrade?
>>>=20
>>> Currently, no.
>>>=20
>>>>=20
>>>>> On 5 Jun 2019, at 17:32, ummeegge <ummeegge(a)ipfire.org> wrote:
>>>>>=20
>>>>> On Mi, 2019-06-05 at 17:31 +0100, Michael Tremer wrote:
>>>>>> How much memory does your build machine have?
>>>>>=20
>>>>> 2GB :-) .
>>>>>=20
>>>>>>=20
>>>>>>> On 5 Jun 2019, at 16:40, ummeegge <ummeegge(a)ipfire.org>
>>>>>>> wrote:
>>>>>>>=20
>>>>>>> Hi all,
>>>>>>> just wanted to report that Hyperscan quits in the current
>>>>>>> origin/next
>>>>>>> build process with
>>>>>>>=20
>>>>>>> [ 78%] Building CXX object
>>>>>>> CMakeFiles/hs_compile_shared.dir/src/rose/rose_build_castle
>>>>>>> .cpp
>>>>>>> .o
>>>>>>> c++: fatal error: Killed signal terminated program cc1plus
>>>>>>> compilation terminated.
>>>>>>> make[3]: ***
>>>>>>> [CMakeFiles/hs_compile_shared.dir/build.make:1698:
>>>>>>> CMakeFiles/hs_compile_shared.dir/src/rose/rose_build_byteco
>>>>>>> de.c
>>>>>>> pp.o
>>>>>>> ] Error 1
>>>>>>> make[3]: *** Deleting file
>>>>>>> 'CMakeFiles/hs_compile_shared.dir/src/rose/rose_build_bytec
>>>>>>> ode.
>>>>>>> cpp.
>>>>>>> o'
>>>>>>> make[3]: *** Waiting for unfinished jobs....
>>>>>>> make[3]: Leaving directory '/usr/src/hyperscan-5.1.1'
>>>>>>> make[2]: *** [CMakeFiles/Makefile2:251:
>>>>>>> CMakeFiles/hs_compile_shared.dir/all] Error 2
>>>>>>> make[2]: Leaving directory '/usr/src/hyperscan-5.1.1'
>>>>>>> make[1]: *** [Makefile:130: all] Error 2
>>>>>>> make[1]: Leaving directory '/usr/src/hyperscan-5.1.1'
>>>>>>> make: *** [hyperscan:80: /usr/src/log/hyperscan-5.1.1]
>>>>>>> Error 2
>>>>>>>=20
>>>>>>> Best,
>>>>>>>=20
>>>>>>> Erik
>>>>>>>=20
>>>>>>>=20
>>>>>>>=20
>>>>>>=20
>>>>>>=20
>>>>=20
>>>>=20
>>=20
>>=20
>=20


--===============0582231172229496223==--