I was able to compile with Xcode 4.1 with mac os x 10.7.1 from source checkout from trunk@4270 but I failed to after upgrading Xcode to 4.2 and mac os x 10.7.2
Code: Select all
** BUILD FAILED **
The following build commands failed:
ExternalBuildToolExecution external
(1 failure)
make: *** [macosx.build] Error 65
Code: Select all
make[1]: *** [contrib/libogg/.stamp.configure] Error 1
make[1]: *** Waiting for unfinished jobs....
It still failed at. Further checking find the error happened at build/contrib/libogg/libogg
Dump of config.log as follow
Code: Select all
configure:19812: checking size of short
configure:20124: /Developer/usr/bin/gcc -o conftest -fno-common -O4 -Wall -fsigned-char -ffast-math -arch x86_64 -arch x86_64 -arch x86_64 conftest.c >&5
ld: lto: could not merge in /var/folders/wt/vsqts30d37v52yb_glqc8zsc0000gp/T//cch1Qrnj.o because Unknown instruction for architecture x86_64
collect2: ld returned 1 exit status
configure:20127: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libogg"
| #define VERSION "1.1.3"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void exit (int);
| #endif
| #define STDC_HEADERS 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (short)); }
| unsigned long ulongval () { return (long) (sizeof (short)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| exit (1);
| if (((long) (sizeof (short))) < 0)
| {
| long i = longval ();
| if (i != ((long) (sizeof (short))))
| exit (1);
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long i = ulongval ();
| if (i != ((long) (sizeof (short))))
| exit (1);
| fprintf (f, "%lu\n", i);
| }
| exit (ferror (f) || fclose (f) != 0);
|
| ;
| return 0;
| }
configure:20142: error: cannot compute sizeof (short), 77
See `config.log' for more details.