Bug 213870 - cc: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Summary: cc: error: clang frontend command failed with exit code 70 (use -v to see inv...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-29 00:46 UTC by dp.maxime
Modified: 2021-10-09 11:23 UTC (History)
2 users (show)

See Also:


Attachments
/tmp/url-25219c.c (813.76 KB, text/plain)
2016-10-29 00:46 UTC, dp.maxime
no flags Details
/tmp/url-25219c.sh (630 bytes, text/plain)
2016-10-29 00:47 UTC, dp.maxime
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dp.maxime 2016-10-29 00:46:39 UTC
Created attachment 176255 [details]
/tmp/url-25219c.c

Making all in .
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../include  -I./../include  -I/usr/local/include -I/usr/local/include -I/usr/local/include        -I/usr/local/include/mysql  -I/usr/local/include  -DHAVE_PTHREAD -pthread -DDPS_CONF_DIR=\"/usr/local/dpsearch/etc\" -DDPS_VAR_DIR=\"/usr/local/dpsearch/var\" -DDPS_SHARE_DIR=\"/usr/local/dpsearch/share\" -g -O3 -march=native -mtune=native -I/usr/local/include -mcmodel=medium -I/usr/local/include -MT libdpsearch_la-url.lo -MD -MP -MF .deps/libdpsearch_la-url.Tpo -c -o libdpsearch_la-url.lo `test -f 'url.c' || echo './'`url.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I./../include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/mysql -I/usr/local/include -DHAVE_PTHREAD -pthread -DDPS_CONF_DIR=\"/usr/local/dpsearch/etc\" -DDPS_VAR_DIR=\"/usr/local/dpsearch/var\" -DDPS_SHARE_DIR=\"/usr/local/dpsearch/share\" -g -O3 -march=native -mtune=native -I/usr/local/include -mcmodel=medium -I/usr/local/include -MT libdpsearch_la-url.lo -MD -MP -MF .deps/libdpsearch_la-url.Tpo -c url.c  -fPIC -DPIC -o .libs/libdpsearch_la-url.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../include -I./../include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/mysql -I/usr/local/include -DHAVE_PTHREAD -pthread -DDPS_CONF_DIR=\"/usr/local/dpsearch/etc\" -DDPS_VAR_DIR=\"/usr/local/dpsearch/var\" -DDPS_SHARE_DIR=\"/usr/local/dpsearch/share\" -g -O3 -march=native -mtune=native -I/usr/local/include -mcmodel=medium -I/usr/local/include -MT libdpsearch_la-url.lo -MD -MP -MF .deps/libdpsearch_la-url.Tpo -c url.c -o libdpsearch_la-url.o
fatal error: error in backend: Cannot select: 0x803092810: i64 = X86ISD::WrapperRIP 0x803093710 [ORD=253] [ID=17] dbg:/usr/include/runetype.h:96
  0x803093710: i64 = TargetGlobalTLSAddress<%struct._RuneLocale** @_ThreadRuneLocale> 0 [TF=10] [ORD=253] [ID=12] dbg:/usr/include/runetype.h:96
In function: DpsURLParse
cc: error: clang frontend command failed with exit code 70 (use -v to see invocation)
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.3
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/url-25219c.c
cc: note: diagnostic msg: /tmp/url-25219c.sh
cc: note: diagnostic msg: 

********************
*** Error code 1

Stop.
Comment 1 dp.maxime 2016-10-29 00:47:27 UTC
Created attachment 176256 [details]
/tmp/url-25219c.sh
Comment 2 Dimitry Andric freebsd_committer freebsd_triage 2018-01-28 21:38:10 UTC
This still occurs with very recent trunk, see https://bugs.llvm.org/show_bug.cgi?id=26906.  For now, the only option is to get rid of the -mcmodel= options, they seem to be very badly supported by LLVM.
Comment 3 Piotr Pawel Stefaniak freebsd_committer freebsd_triage 2021-10-09 10:01:12 UTC
Upstream bug report has been close for some time. Do we still suffer from this?
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2021-10-09 11:23:07 UTC
Indeed this was fixed in llvm/clang 8.0.0. All supported releases now have at least 10.0.0.