Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2013 09:24:51 -1000
From:      Jan Beich <jbeich@tormail.org>
To:        awarecons <awarecons@gmail.com>
Cc:        gecko@FreeBSD.org, ports-bugs@freebsd.org
Subject:   Re: www/firefox & seamonkey ISSUES config errors
Message-ID:  <1UFUoT-0002Ey-N1@internal.tormail.org>
References:  <CACGq7x0DAz5spTZ5EZDfjkJmoF7hs-Ly9tL0RhUc4eomXe=hTg__44564.3422347077$1363102019$gmane$org@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
awarecons <awarecons@gmail.com> writes:

> configure:23844: checking size of int *
> configure:23863: clang -o conftest -O2 -pipe -march=pentium4 -mtune=pentium4 -fno-strict-aliasing -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-tree-vrp -Qunused-arguments -O2 -pipe -march=pentium4 -mtune=pentium4 -Wno-error -w -isystem/usr/local/include  -I/usr/local/include -pthread  -L/usr/local/lib -L/usr/local/lib -Wl,-z,origin -Wl,-rpath,\$$ORIGIN -Wl,-z,noexecstack conftest.c  1>&5
> Stack dump:
> 0.	Program arguments: /usr/bin/clang -cc1 -triple i386-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name conftest.c -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu pentium4 -momit-leaf-frame-pointer -ffunction-sections -fdata-sections -resource-dir /usr/bin/../lib/clang/3.0 -isystem /usr/local/include -I /usr/local/include -fmodule-cache-path /tmp/clang-module-cache -O2 -Wno-error -w -ferror-limit 19 -fmessage-length 0 -pthread -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -o /tmp/conftest-77qaJi.o -x c conftest.c 
> 1.	<eof> parser at end of file
> 2.	configure:23854:1: LLVM IR generation of declaration 'main'
> 3.	configure:23854:1: Generating code for declaration 'main'
> 4.	configure:23855:1: LLVM IR generation of compound statement ('{}')
> clang: error: unable to execute command: Illegal instruction: 4 (core dumped)
> clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
> clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
> clang: note: diagnostic msg: Preprocessed source(s) are located at:
> clang: note: diagnostic msg: /tmp/conftest-PDiTwg.i
> configure: failed program was:
> #line 23852 "configure"
> #include "confdefs.h"
> #include <stdio.h>
> main()
> {
>   FILE *f=fopen("conftestval", "w");
>   if (!f) exit(1);
>   fprintf(f, "%d\n", sizeof(int *));
>   exit(0);
> }

Try to remove -march/-mtune from CFLAGS. This may be a bug in clang 3.0
generating instructions your CPU doesn't support.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1UFUoT-0002Ey-N1>