Solved [Solved] Make World Error on FreeBSD 9.2

I just try to compile FreeBSD 9.2 AMD64 world and kernel and I got the following error:

Code:
trib/llvm/tools/clang/lib/ARCMigrate/Transforms.cpp -o Transforms.o
{standard input}: Assembler messages:
{standard input}:71673: Warning: end of file not at end of a line; newline inserted
{standard input}:71949: Error: expected comma after name `_ZN5clang5arcmt5trans11collectRef' in .size directive
c++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** [Transforms.o] Error code 1

Stop in /usr/src/lib/clang/libclangarcmigrate.
*** [all] Error code 1

Stop in /usr/src/lib/clang.
*** [all] Error code 1

Stop in /usr/src/lib.
*** [lib__L] Error code 1

Stop in /usr/src.
*** [libraries] Error code 1

Stop in /usr/src.
*** [_libraries] Error code 1

Stop in /usr/src.
*** [buildworld] Error code 1

Stop in /usr/src.

Any hint?
 
Re: Make World Error on FreeBSD 9.2

overmind said:
I just try to compile FreeBSD 9.2 AMD64 world and kernel and I got the following error:

Code:
trib/llvm/tools/clang/lib/ARCMigrate/Transforms.cpp -o Transforms.o
{standard input}: Assembler messages:
{standard input}:71673: Warning: end of file not at end of a line; newline inserted
{standard input}:71949: Error: expected comma after name `_ZN5clang5arcmt5trans11collectRef' in .size directive
c++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** [Transforms.o] Error code 1

Stop in /usr/src/lib/clang/libclangarcmigrate.
*** [all] Error code 1

Stop in /usr/src/lib/clang.
*** [all] Error code 1

Stop in /usr/src/lib.
*** [lib__L] Error code 1

Stop in /usr/src.
*** [libraries] Error code 1

Stop in /usr/src.
*** [_libraries] Error code 1

Stop in /usr/src.
*** [buildworld] Error code 1

Stop in /usr/src.

Any hint?
Greetings, @overmind.
I see you're using 9.2. -RELEASE, or -STABLE? When did you last svn up? What's the contents of /etc/make.conf, and /etc/src.conf? Pertinent. No? :)

--Chris
 
Last edited by a moderator:
Re: Make World Error on FreeBSD 9.2

overmind said:
I just try to compile FreeBSD 9.2 AMD64 world and kernel and I got the following error:

Code:
trib/llvm/tools/clang/lib/ARCMigrate/Transforms.cpp -o Transforms.o
{standard input}: Assembler messages:
{standard input}:71673: Warning: end of file not at end of a line; newline inserted
{standard input}:71949: Error: expected comma after name `_ZN5clang5arcmt5trans11collectRef' in .size directive
c++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** [Transforms.o] Error code 1
Any hint?
Please show the output of uname -a and svn info /usr/src.
 
Re: Make World Error on FreeBSD 9.2

The info you've requested:

Code:
root@ports:/usr/src # uname -a
FreeBSD ports 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

and:

Code:
root@ports:/usr/src # svn info /usr/src
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.freebsd.org/base/releng/9.2
Relative URL: ^/releng/9.2
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 264317
Node Kind: directory
Schedule: normal
Last Changed Author: delphij
Last Changed Rev: 264284
Last Changed Date: 2014-04-09 02:16:05 +0300 (Wed, 09 Apr 2014)

I do not have /etc/make.conf and /etc/src.conf.

The FreeBSD is a minimal installation from 9.2 memstick image. Then I've fetched ports using portsnap fetch command, and then I've compiled subversion from sources and then I've got sources for kernel and world using subversion.
 
Re: Make World Error on FreeBSD 9.2

I have 2GB of RAM. It should be enough.

Code:
# dmesg|grep mem
real memory  = 2147483648 (2048 MB)
avail memory = 2024034304 (1930 MB)

Code:
# df -h
Filesystem          Size    Used   Avail Capacity  Mounted on
sys/ROOT/default    912G    4.2G    908G     0%    /
devfs               1.0k    1.0k      0B   100%    /dev

Update: I think it is a swap issue (swap size was 1G). Just found the following lines in /var/log/messages:

Code:
Apr 10 14:16:08 ports kernel: pid 53076 (try), uid 0: exited on signal 10 (core dumped)
Apr 10 14:28:11 ports kernel: pid 21210 (cc1plus), uid 0, was killed: out of swap space
Apr 10 14:37:06 ports kernel: pid 23621 (cc1plus), uid 0, was killed: out of swap space
Apr 10 15:32:16 ports kernel: pid 2207 (cc1plus), uid 0, was killed: out of swap space

Problem solved. It was because of a too small swap partition.

Thanks!
 
Re: Make World Error on FreeBSD 9.2

You must have something else eating the memory, I can build world just fine on 1GB virtual machine. It is a STABLE-10 though but that shouldn't make much difference in memory usage.
 
Re: Make World Error on FreeBSD 9.2

Maybe ZFS is eating memory. I have root on ZFS. This is just a test machine, after I compile FreeBSD I'll move the drive to other system. That's why I did not paid attention to memory and swap size.
 
Back
Top