[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to tell the compiler NOT to assume cpu provides atomic instructions



On Mon, Mar 07, 2011 at 07:54:13PM -0500, RR wrote:
> checking whether the C compiler (gcc -pthread -I../..//include
> -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -mtune=ultrasparc -mcpu=v8 -fomit-frame-pointer
> -O6    ) works                 ... yes
> checking whether the C compiler (gcc -pthread -I../..//include
> -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -g3 -mtune=ultrasparc -mcpu=v8 -fomit-frame-pointer
> -O6    ) is a                  cross-compiler... no

Okay.  I've pinpointed the problem.  If atomic intrinsics are used but
not supported on the target architecture (variant), GCC will emit a link
error for that function.

Your problem is -mcpu=v8.  v8 processors (AFAICT) do not support the
intrinsics necessary.  Remove that option (or whatever is causing that
option) and it should work.  It may be that for some reason configure
thinks that 32-bit code should use -mcpu=v8, but that isn't the case.
Debian's default configuration (without -mcpu and -mtune) should work
just fine for you.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: