apron icon indicating copy to clipboard operation
apron copied to clipboard

install --strip causing problems on Mac

Open caballa opened this issue 2 years ago • 1 comments

The command option --strip doesn't seem to be recognized on Mac (my version is Ventura 13.2.1). I think install on Mac does not like --.

I think the only place where it's used is here https://github.com/antoinemine/apron/blob/master/Makefile.config.model#L185

I replaced it with -s but then I get this error:

/Library/Developer/CommandLineTools/usr/bin/strip: error: symbols referenced by indirect symbol table entries that can't be stripped in: /Users/jorge/Repos/apron-mine/install-release/lib/libapron.so
___gmpfr_mpfr_get_sj
___gmpfr_out_str
___gmpn_perfect_square_p
___gmpq_add
___gmpq_canonicalize
___gmpq_clear
___gmpq_cmp
___gmpq_cmp_si
___gmpq_div
___gmpq_div_2exp
....

Note that install -s calls strip.

I've found this issue with a similar problem and it seems that we should call strip -u on dynamic libraries.

I believe the issue is that bare strip is too aggressive for a dylib. strip -u seems to work. I'm not sure if -r should also be added. I might suggest adding -u to any dylib crate.

Unfortunately, I don't know how to tell install command to pass the option -u to strip.

caballa avatar Sep 21 '23 17:09 caballa

PR #97 may be related to (and possibly a fix for) this problem.

antoinemine avatar Dec 06 '23 10:12 antoinemine

Considered closed by #97.

antoinemine avatar Aug 19 '24 21:08 antoinemine