Bug 196423 - [arm] clang3.5 crashes building math/gmp
Summary: [arm] clang3.5 crashes building math/gmp
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-01 18:56 UTC by Sean Bruno
Modified: 2015-01-02 20:24 UTC (History)
3 users (show)

See Also:


Attachments
assembler files from failed build (7.63 KB, text/plain)
2015-01-01 19:07 UTC, Sean Bruno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer freebsd_triage 2015-01-01 18:56:21 UTC
~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
toom44_mul.c:209:52: note: place parentheses around the '&' expression to silence this warning
  flags = (enum toom7_flags) (flags | toom7_w3_neg & mpn_toom_eval_dgr3_pm1 (apx, amx, ap, n, s, tp));
--- sqr_basecase.lo ---
cc: warning: argument unused during compilation: '-D HAVE_CONFIG_H'
cc: warning: argument unused during compilation: '-I .'
cc: warning: argument unused during compilation: '-I ..'
cc: warning: argument unused during compilation: '-D __GMP_WITHIN_GMP'
cc: warning: argument unused during compilation: '-I ..'
cc: warning: argument unused during compilation: '-D OPERATION_sqr_basecase'
cc: warning: argument unused during compilation: '-fno-strict-aliasing'
cc: warning: argument unused during compilation: '-fPIC'
cc: warning: argument unused during compilation: '-D PIC'
--- toom42_mul.lo ---
libtool: compile:  /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_toom42_mul -O -pipe -fno-strict-aliasing -c toom42_mul.c -o toom42_mul.o >/dev/null 2>&1
--- toom44_mul.lo ---
                                                   ^
                                      (                                                             )
--- toom6_sqr.lo ---
libtool: compile:  /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_toom6_sqr -O -pipe -fno-strict-aliasing -c toom6_sqr.c  -fPIC -DPIC -o .libs/toom6_sqr.o
--- sqr_basecase.lo ---
Unimplemented
UNREACHABLE executed at /usr/local/poudriere/jails/11-armv6/usr/src/lib/clang/libllvmarmdesc/../../../contrib/llvm/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp:84!
Stack dump:
0.      Program arguments: /nxb-bin/usr/bin/cc -cc1as -triple armv6--freebsd11.0-gnueabi -filetype obj -main-file-name tmp-sqr_basecase.s -target-cpu arm1176jzf-s -target-feature -neon -target-feature -crypto -fdebug-compilation-dir /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn -dwarf-debug-producer FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124 -o .libs/sqr_basecase.o tmp-sqr_basecase.s 
1.      Program arguments: -triple armv6--freebsd11.0-gnueabi -filetype obj -main-file-name tmp-sqr_basecase.s -target-cpu arm1176jzf-s -target-feature -neon -target-feature -crypto -fdebug-compilation-dir /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn -dwarf-debug-producer FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124 -o .libs/sqr_basecase.o tmp-sqr_basecase.s 
--- toom54_mul.lo ---
libtool: compile:  /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_toom54_mul -O -pipe -fno-strict-aliasing -c toom54_mul.c -o toom54_mul.o >/dev/null 2>&1
--- toom32_mul.lo ---
libtool: compile:  /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_toom32_mul -O -pipe -fno-strict-aliasing -c toom32_mul.c -o toom32_mul.o >/dev/null 2>&1
--- toom8h_mul.lo ---
/bin/sh ../libtool --tag=CC    --mode=compile /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo toom8h_mul | sed 's/_$//'`     -O -pipe  -fno-strict-aliasing -c -o toom8h_mul.lo toom8h_mul.c
--- sqr_basecase.lo ---
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang integrated assembler command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124
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: Error generating preprocessed source(s) - no preprocessable inputs.
--- toom8_sqr.lo ---
/bin/sh ../libtool --tag=CC    --mode=compile /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo toom8_sqr | sed 's/_$//'`     -O -pipe  -fno-strict-aliasing -c -o toom8_sqr.lo toom8_sqr.c
--- sqr_basecase.lo ---
*** [sqr_basecase.lo] Error code 1
Comment 1 Sean Bruno freebsd_committer freebsd_triage 2015-01-01 19:06:20 UTC
MAKE_JOBS_UNSAFE=yes


===>  Building for gmp-5.1.3_2
/nxb-bin/usr/bin/make  all-recursive
Making all in tests
Making all in .
Making all in devel
Making all in mpn
Making all in mpz
Making all in mpq
Making all in mpf
Making all in rand
Making all in misc
Making all in cxx
Making all in mpn
/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" /nxb-bin/usr/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I..  -DOPERATION_`echo sqr_basecase | sed 's/_$//'`     -O -pipe  -fno-strict-aliasing  `test -f 'sqr_basecase.asm' || echo './'`sqr_basecase.asm
libtool: compile:  ../mpn/m4-ccas --m4=m4 /nxb-bin/usr/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sqr_basecase -O -pipe -fno-strict-aliasing sqr_basecase.asm  -fPIC -DPIC -o .libs/sqr_basecase.o
m4  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_sqr_basecase -DPIC sqr_basecase.asm >tmp-sqr_basecase.s
 /nxb-bin/usr/bin/cc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_sqr_basecase -O -pipe -fno-strict-aliasing tmp-sqr_basecase.s -fPIC -DPIC -o .libs/sqr_basecase.o
cc: warning: argument unused during compilation: '-D HAVE_CONFIG_H'
cc: warning: argument unused during compilation: '-I .'
cc: warning: argument unused during compilation: '-I ..'
cc: warning: argument unused during compilation: '-D __GMP_WITHIN_GMP'
cc: warning: argument unused during compilation: '-I ..'
cc: warning: argument unused during compilation: '-D OPERATION_sqr_basecase'
cc: warning: argument unused during compilation: '-fno-strict-aliasing'
cc: warning: argument unused during compilation: '-fPIC'
cc: warning: argument unused during compilation: '-D PIC'
Unimplemented
UNREACHABLE executed at /usr/local/poudriere/jails/11-armv6/usr/src/lib/clang/libllvmarmdesc/../../../contrib/llvm/lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp:84!
Stack dump:
0.      Program arguments: /nxb-bin/usr/bin/cc -cc1as -triple armv6--freebsd11.0-gnueabi -filetype obj -main-file-name tmp-sqr_basecase.s -target-cpu arm1176jzf-s -target-feature -neon -target-feature -crypto -fdebug-compilation-dir /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn -dwarf-debug-producer FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124 -o .libs/sqr_basecase.o tmp-sqr_basecase.s 
1.      Program arguments: -triple armv6--freebsd11.0-gnueabi -filetype obj -main-file-name tmp-sqr_basecase.s -target-cpu arm1176jzf-s -target-feature -neon -target-feature -crypto -fdebug-compilation-dir /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn -dwarf-debug-producer FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124 -o .libs/sqr_basecase.o tmp-sqr_basecase.s 
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang integrated assembler command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.5.0 (tags/RELEASE_350/final 216957) 20141124
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: Error generating preprocessed source(s) - no preprocessable inputs.
*** Error code 1

Stop.
make[3]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3
*** Error code 1

Stop.
make: stopped in /usr/ports/math/gmp
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2015-01-01 19:07:56 UTC
Created attachment 151195 [details]
assembler files from failed build
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-01-02 14:55:20 UTC
A commit references this bug:

Author: dim
Date: Fri Jan  2 14:55:03 UTC 2015
New revision: 276537
URL: https://svnweb.freebsd.org/changeset/base/276537

Log:
  ?Pull in r222587 from upstream llvm trunk (by J?rg Sonnenberger):

    Fix transformation of add with pc argument to adr for non-immediate
    arguments.

  This fixes an "Unimplemented" error when assembling certain ARM add
  instructions with pc-relative arguments.

  Reported by:	sbruno
  PR:		196412, 196423

Changes:
  head/contrib/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp