Bug 197070 - clang fails on attempting to build lang/ruby20
Summary: clang fails on attempting to build lang/ruby20
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-25 16:55 UTC by Sevan Janiyan
Modified: 2015-02-04 14:14 UTC (History)
1 user (show)

See Also:


Attachments
Preprocessed source and associated run script (546.53 KB, application/x-gzip)
2015-01-25 16:55 UTC, Sevan Janiyan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sevan Janiyan 2015-01-25 16:55:48 UTC
Created attachment 152130 [details]
Preprocessed source and associated run script

Running r277486 on Raspberry Pi, attempting to build lang/ruby20

making encs
compiling ./enc/trans/big5.c
FreeBSD clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115
Target: armv6--freebsd11.0-gnueabi
Thread model: posix
 "/usr/bin/cc" -cc1 -triple armv6--freebsd11.0-gnueabi -emit-obj -mrelax-all -disable-free -main-file-name big5.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu arm1176jzf-s -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -target-feature -crypto -target-abi aapcs-linux -msoft-float -mfloat-abi soft -v -dwarf-column-info -coverage-file /usr/ports/lang/ruby20/work/ruby-2.0.0-p598/enc/trans/big5.o -resource-dir /usr/bin/../lib/clang/3.5.1 -D ONIG_ENC_REGISTER=rb_enc_register -I . -I .ext/include/armv6-freebsd11 -I ./include -I . -I /usr/local/include -fdebug-compilation-dir /usr/ports/lang/ruby20/work/ruby-2.0.0-p598 -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -o enc/trans/big5.o -x c ./enc/trans/big5.c
clang -cc1 version 3.5.1 based upon LLVM 3.5.1 default target armv6-gnueabi-freebsd11.0
ignoring nonexistent directory "/usr/bin/../lib/clang/3.5.1/include"
ignoring duplicate directory "."
#include "..." search starts here:
#include <...> search starts here:
 .
 .ext/include/armv6-freebsd11
 ./include
 /usr/local/include
 /usr/include/clang/3.5.1
 /usr/include
End of search list.
cc: error: unable to execute command: Killed
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115
Target: armv6--freebsd11.0-gnueabi
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/big5-806f23.c
cc: note: diagnostic msg: /tmp/big5-806f23.sh
cc: note: diagnostic msg: 

********************
*** [enc/trans/big5.o] Error code 254 (ignored)
linking transcoder big5.so
cc: error: no such file or directory: 'enc/trans/big5.o'
*** [.ext/armv6-freebsd11/enc/trans/big5.so] Error code 1

make[3]: stopped in /usr/ports/lang/ruby20/work/ruby-2.0.0-p598
1 error

make[3]: stopped in /usr/ports/lang/ruby20/work/ruby-2.0.0-p598
*** [encs] Error code 2

make[2]: stopped in /usr/ports/lang/ruby20/work/ruby-2.0.0-p598
1 error

make[2]: stopped in /usr/ports/lang/ruby20/work/ruby-2.0.0-p598
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/ruby20
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/ruby20
Comment 1 Bjoern Stierand 2015-02-03 11:28:37 UTC
Looks like a memory issue. Try to add some more memory (i.e. swap) to the system and build it again.
Comment 2 Sevan Janiyan 2015-02-04 14:14:54 UTC
(In reply to Bjoern Stierand from comment #1)

Indeed, adding a swap file resolved the issue.