# Issue compiling from source on VM / Digital Ocean

**URL:** <https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045>\
**Category:** Zeek\
**Created:** [October 3, 2017, 10:41pm UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045 "2017-10-03T22:41:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MILLER\_BRAD\_L](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@MILLER\_BRAD\_L](https://community.zeek.org/u/MILLER_BRAD_L)\
**Post date:** [October 3, 2017, 10:41pm UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/1 "2017-10-03T22:41:49Z")

</div>

I noticed this started occurring with 2.5.x. Attempting to make from source. All dependencies met and following instructions from Digital Ocean. Whether from a git clone or pulling the source files in manually, always leads to an internal compiler error. System is Ubuntu 16.04, fully updated.

Additionally, when attempting to install from the opensuse repo, there is an umet dependency error.

I recall (not confirmed) that I attempted to build from source in a KVM guest on my own machine (at Brocon) and had the exact same compiler error.

Is there a new incompatibility with virtual systems?

Repo error  
Some packages could not be installed. This may mean that you have  
requested an impossible situation or if you are using the unstable  
distribution that some required packages have not yet been created  
or been moved out of Incoming.  
The following information may help to resolve the situation:

The following packages have unmet dependencies:  
bro : Depends: bro-core (= 2.5.1-0) but it is not going to be installed  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Depends: broctl (= 2.5.1-0) but it is not going to be installed

Compiler error

[86%] Building CXX object src/CMakeFiles/bro.dir/Func.cc.o  
c++: internal compiler error: Killed (program cc1plus)  
Please submit a full bug report,  
with preprocessed source if appropriate.  
See \<file:///usr/share/doc/gcc-5/README.Bugs\> for instructions.  
src/CMakeFiles/bro.dir/build.make:1222: recipe for target 'src/CMakeFiles/bro.dir/Func.cc.o' failed  
make[3]: \*\*\* [src/CMakeFiles/bro.dir/Func.cc.o] Error 4  
make[3]: Leaving directory '/root/bro/build'  
CMakeFiles/Makefile2:828: recipe for target 'src/CMakeFiles/bro.dir/all' failed  
make[2]: \*\*\* [src/CMakeFiles/bro.dir/all] Error 2  
make[2]: Leaving directory '/root/bro/build'  
Makefile:149: recipe for target 'all' failed  
make[1]: \*\*\* [all] Error 2  
make[1]: Leaving directory '/root/bro/build'  
Makefile:15: recipe for target 'all' failed  
make: \*\*\* [all] Error 2

Please be aware that if you reply directly to this particular message, your reply may not be secure. Do not use email to send us communications that contain unencrypted confidential information such as passwords, account numbers or Social Security numbers. If you must provide this type of information, please visit [comerica.com](http://comerica.com) to submit a secure form using any of the ”Contact Us” forms. In addition, you should not send via email any inquiry or request that may be time sensitive. The information in this e-mail is confidential. It is intended for the individual or entity to whom it is addressed. If you have received this email in error, please destroy or delete the message and advise the sender of the error by return email.

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [October 3, 2017, 11:15pm UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/2 "2017-10-03T23:15:26Z")

</div>

For the repo error (which I assume is when trying to install binary  
packages, not when trying to install from source) - could you give the  
exact steps that you perform to get that error (in the optimal case all  
commands starting from a clean installation).

For the compilation error - is there a chance that your VM is running out  
of memory?

Johanna

---

<div class="post-metadata">

**Author:** ![MILLER\_BRAD\_L](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@MILLER\_BRAD\_L](https://community.zeek.org/u/MILLER_BRAD_L)\
**Post date:** [October 4, 2017, 2:11am UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/3 "2017-10-04T02:11:15Z")

</div>

Update: Does NOT occur with same source package, same dependencies, using Ubuntu 14.04

---

<div class="post-metadata">

**Author:** ![MILLER\_BRAD\_L](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@MILLER\_BRAD\_L](https://community.zeek.org/u/MILLER_BRAD_L)\
**Post date:** [October 4, 2017, 2:15am UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/4 "2017-10-04T02:15:55Z")

</div>

The repo method was as described here: [https://www.bro.org/download/packages.html](https://www.bro.org/download/packages.html) (Ubuntu 16.04)

It was newly provisioned VPS with Digital Ocean, running no other utilities at the time. It's unlikely it was running out of memory, but I destroyed it soon after I spun up Ubuntu 14.04 to test. As I mentioned, building from source the same exact way on Ubuntu 14.04 did not have the compiler error. I didn't try and install from repo on 14.04.

---

<div class="post-metadata">

**Author:** ![MILLER\_BRAD\_L](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@MILLER\_BRAD\_L](https://community.zeek.org/u/MILLER_BRAD_L)\
**Post date:** [October 4, 2017, 2:58am UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/5 "2017-10-04T02:58:16Z")

</div>

I destroyed that VM again and repeated the package install on Ubuntu 14.04, the method worked with no issues seen in 16.04.

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [October 4, 2017, 2:57pm UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/6 "2017-10-04T14:57:57Z")

</div>

Hi Brad,

I sadly cannot reproduce this. I used a Ubuntu 16.04.03 x64 on Ubuntu  
($20/mo standard instance).

The binary installation worked flawlessly - asciinema recording of the  
whole process starting with a fresh VM at  
[https://asciinema.org/a/zqwKSWyjuWkwMlsRcqfRjExc3](https://asciinema.org/a/zqwKSWyjuWkwMlsRcqfRjExc3).

Similarly compiling the bro 2.5.1 source did not yield any problems during  
compilation.

If you can still see this, please give exact step-by-step instructions on  
how to reproduce your problems and I will try to look into it.

Thanks a lot,  
Johanna

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:45pm UTC](https://community.zeek.org/t/issue-compiling-from-source-on-vm-digital-ocean/5045/7 "2022-05-06T15:45:19Z")

</div>


