Configure fails on Apple M1
I'm trying to build pkg-config 0.29.2 on an Apple M1. The machine is available on the GCC compile farm at gcc304.fsffrance.org
(port 2409).
Configure is failing. cat'ing config.log
shows:
configure:3465: checking whether the C compiler works
configure:3487: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -fno-common -I/Users/noloader/include -DNDEBUG -L/Users/noloader/lib conftest.c >&5
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3491: $? = 1
configure:3529: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pkg-config"
| #define PACKAGE_TARNAME "pkg-config"
| #define PACKAGE_VERSION "0.29.2"
| #define PACKAGE_STRING "pkg-config 0.29.2"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=pkg-config"
| #define PACKAGE_URL ""
| #define PACKAGE "pkg-config"
| #define VERSION "0.29.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3534: error: in `/Users/noloader/Build-Scripts/pkg-config-0.29.2':
configure:3536: error: C compiler cannot create executables
Attached is the full config.log
.config.log.zip