thomasbruggink commented on PR #2937: URL: https://github.com/apache/thrift/pull/2937#issuecomment-1978762205
> ``` > build@6a87fe62b977:/thrift/src$ ./bootstrap.sh && ./configure && make dist > make distclean... ok > Configuring for: > PHP Api Version: 20190902 > Zend Module Api No: 20190902 > Zend Extension Api No: 320190902 > sh: 1: cannot create autom4te.cache/output.0t: Permission denied > autom4te: /usr/bin/m4 failed with exit status: 2 > libtoolize: error: './aclocal/libtool.m4' is newer: use '--force' to overwrite > libtoolize: error: './aclocal/ltversion.m4' is newer: use '--force' to overwrite > autoheader: cannot rename /tmp/ahgpEtwo/config.hin as config.hin: Permission denied > ``` > > That's it. But its much quicker now, at least :-D My guess here is that the previous container running as `root` left some files behind with user and group 1. The current docker file changes the user it runs under to use the same user id and group id as the host system has. This way the repository wont be polluted with files a non root user cannot delete. Can you try removing the files (autom4te.cache/) manually (probably requires root). Or `sudo git clean -xfd` outside the container to reset the entire repository :bow: I still get a build error running `make dist` but I'm not sure if this is because of me missing files so I'm curious about your input there. ``` /thrift/src/compiler/cpp/thrift --gen cpp ../../../test/AnnotationTest.thrift /bin/bash: /thrift/src/compiler/cpp/thrift: No such file or directory ``` I have the idea `make dist` is supposed to build the thrift compiler as well but this seems not to happen :thinking: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
