yaml / libyaml

Canonical source repository for LibYAML
http://pyyaml.org/wiki/LibYAML
MIT License
951 stars 316 forks source link

build: run ./configure fail, cannot build successfully #256

Open hitzhangjie opened 1 year ago

hitzhangjie commented 1 year ago

Here's the output of ./configure:

./configure Output
$ ./configure 
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conf63588: no such file or directory
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conf63588.dir: no such file or directory
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conf63588.exe: no such file or directory
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conf63588.exe: no such file or directory

rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conf63588.exe: no such file or directory
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conftest*: no such file or directory
checking for a BSD-compatible install... rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conftest.one: no such file or directory

/usr/local/opt/coreutils/libexec/gnubin/install -c
checking whether build environment is sane... 
yes
checking for a thread-safe mkdir -p... /usr/local/opt/coreutils/libexec/gnubin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... 
yes
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/.tst: no such file or directory
checking for gcc... gcc
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conftest.er1: no such file or directory

checking whether the C compiler works... rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conftest.exe: no such file or directory
yes
checking for C compiler default output file name... a.out
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/a.out.dSYM: no such file or directory
checking for suffix of executables... 

checking whether we are cross compiling... no

checking for suffix of object files... rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conftest.o: no such file or directory

o
checking whether we are using the GNU C compiler... rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/conftest.o: no such file or directory
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/core: no such file or directory
yes
checking whether gcc accepts -g... 
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/core: no such file or directory
yes
checking for gcc option to accept ISO C89... 
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/core: no such file or directory

none needed
checking for style of include used by make... GNU

checking dependency style of gcc... 
gcc3
checking how to run the C preprocessor... 

gcc -E

checking whether ln -s works... no, using cp -p
checking whether make sets $(MAKE)... (cached) yes
checking build system type... config.sub: too many arguments
Try `config.sub --help' for more information.
configure: error: /bin/sh config/config.sub x86_64-apple-darwin21.6.0
rm error: lstat /var/folders/0j/mvtnlhyj5j9cyqqq1b27bgg40000gn/T//cgrVFLKa/dummy.rel: no such file or directory failed
rm error: lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/core: no such file or directory
wesaamt commented 1 year ago

Hi

ziyangc97 commented 1 year ago

hi, how did you clone the repo? did you run ./bootstrap and did it work? I notice that 0.1.4-aff64 consistently appreas in the error log, for example, "lstat /Users/UserName/Library/Caches/CocoaPods/Pods/Release/LibYAML/0.1.4-aff64/core: no such file or directory ", would you check this file and maybe provide the environment information?