help-bison
[Top][All Lists]
Advanced

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

Compiling on macOS?


From: vask1234
Subject: Compiling on macOS?
Date: Wed, 22 Jan 2025 22:08:52 +0200

I am trying to build the latest version of Bison on my M1 Macintosh running the 
latest as of now OS X (15.2), xcode-select utilities etc. I can `./configure` 
successfully but when I run `make check` I am stopped by the error:
```
[…]
12 warnings generated.
  CC       lib/libbison_a-vasprintf.o
  CC       lib/libbison_a-vfprintf.o
  CC       lib/libbison_a-vsnprintf.o
  CC       lib/libbison_a-vsprintf.o
  CC       lib/libbison_a-wcwidth.o
  AR       lib/libbison.a
  CCLD     src/bison
ld: archive member '/' not a mach-o file in 
'/Users/administrator/Developer/bison-3.8/lib/libbison.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/bison] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
```

I also tried using GCC-14 (from Homebrew) as the compiler but the error is 
similar. What else can I try? Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]