STklos icon indicating copy to clipboard operation
STklos copied to clipboard

configure warnings on MacOS

Open lassik opened this issue 5 years ago • 5 comments

I'm getting these from ./configure with commit 707b077 on Darwin. They don't seem to cause a build failure.

checking whether gcc understands -c and -o together... rm: conftest.dSYM: is a directory
yes

A .dSYM directory contains debug information for a C program built via gcc -g, the whole directory can be safely deleted.

An unrelated error later in the run:

checking for ranlib... ranlib
./configure: line 4937: extraAC_PROG_LEX: command not found
checking for pkg-config... pkg-config

lassik avatar Apr 10 '21 04:04 lassik

Hello @lassik Thank you for reporting this issue. About the .dSYM, it seems to be an old problem of autoconf (I have found references to it starting in 2007). The problem is that the code generated by the autoconf script contains still some rm -f conftest* without the -r option. (all the direct deletions to conftest.dSYM use a -f option not the ones with a * wildcard. Anyway, this is not armful.

About the extraAC_PROG_LEX, it was an extra "extra" in front of AC_PROG_LEX. I have corrected it for a future pull.

egallesio avatar Apr 16 '21 16:04 egallesio

Thanks!

If the .dSYM problem comes from Autoconf itself, we should probably report the bug to GNU, and they can fix it in the next Autoconf release.

lassik avatar Apr 16 '21 17:04 lassik

I grepped the autoconf git log, and AFAICT it is using rm -rf whenever it remove conftest.dSYM. So I don't understand where the bug could be coming from.

lassik avatar Apr 19 '21 15:04 lassik

I need to investigate more, but it seems that there are places where you can find rm -f conftest* (wihout the -r) which gives you this error when you have a conftest.dSYM in your directory.

egallesio avatar Apr 19 '21 21:04 egallesio

@lassik @jpellegrini I was looking the mailing list of autotools and fall on the FAQ. Just for fun an extract of it:

1.7 Why is everything so complicated?

TODO

:wink:

egallesio avatar Apr 21 '21 08:04 egallesio