long long size compute failure during make of gcc-4.6.1 on OS X 10.7 Lion

Ian Lance Taylor iant@google.com
Wed Sep 7 16:32:00 GMT 2011


Bruce Hoglund <bhoglund@mac.com> writes:

> configure:5790: gcc -o conftest -g -fkeep-inline-functions    conftest.c  >&5
> Undefined symbols for architecture x86_64:
>  "___builtin___stpncpy_chk", referenced from:
>      ___inline_stpncpy_chk in ccL1VweA.o
> ld: symbol(s) not found for architecture x86_64

There is some sort of mismatch between the compiler being run as "gcc"
and your system header files.  Your system header files appear to assume
that the compiler defines ___builtin___stpncpy_chk.  Your compiler
appears to not define that function.

gcc as normally distributed does not define any sort of
___builtin___stpncpy_chk function.  However, evidently the OS X 10.7
header files expect it to.

What program are you running as "gcc"?  Is it possible that it is out of
date with respect to the header files?

For any other ideas, you are going to have to ask somebody familiar with
Darwin.

Ian



More information about the Gcc-help mailing list