Re: where is the MacPorts gcc?

2024-05-04 Thread Kenneth Wolcott
HI Ryan; I'll try to create a MNWE (Minimal Non-Working Example) but it will take some time as I suspect that involves the gsl library. Thanks, Ken W On Sat, May 4, 2024 at 12:22 AM Ryan Schmidt wrote: > > On May 3, 2024, at 23:12, Kenneth Wolcott wrote: > > > > I want to compile some C code

Re: where is the MacPorts gcc?

2024-05-04 Thread Ryan Schmidt
On May 3, 2024, at 23:12, Kenneth Wolcott wrote: > > I want to compile some C code using gcc to compare against clang. > > This code I want to compile needs gsl/gsl_vector.h so I used -lgsl to > compile with clang and it complained at runtime: "dyld[16321]: missing > symbol called". Since using

Re: where is the MacPorts gcc?

2024-05-04 Thread Ryan Schmidt
On May 4, 2024, at 02:06, Eric Gallager wrote: > > `ar` and `nm` are wrappers around the corresponding tools from > binutils/cctools; ar manipulates archives. nm shows you what symbols are in an object file. More about that in their documentation: https://sourceware.org/binutils/docs/binutils

Re: where is the MacPorts gcc?

2024-05-04 Thread Eric Gallager via macports-users
`ar` and `nm` are wrappers around the corresponding tools from binutils/cctools; GCC wraps them for use in its LTO system, I'm pretty sure. You probably want to do `port select gcc` and then choose one of the options available to symlink gcc into place without its suffix. If it's dyld giving you yo

Re: where is the MacPorts gcc?

2024-05-03 Thread Ryan Schmidt
On May 3, 2024, at 23:12, Kenneth Wolcott wrote: > > I think "mp" means multiple precision... The "mp" suffix in gcc file names means "MacPorts". This is anachronistic now but it made sense back when gcc was included in Xcode. We wanted the executable "gcc-4.2" to mean Apple's fork of gcc-4.2 f

Re: where is the MacPorts gcc?

2024-05-03 Thread Kenneth Wolcott
I get the same runtime error when using gcc: /opt/local/bin/arm64-apple-darwin23-gcc-mp-12 -lgsl -o ./polynomial_long_division ./polynomial_long_division.c -macosx_version_min has been renamed to -macos_version_min ./polynomial_long_division dyld[16552]: missing symbol called zsh: abort ./po

where is the MacPorts gcc?

2024-05-03 Thread Kenneth Wolcott
I want to compile some C code using gcc to compare against clang. This code I want to compile needs gsl/gsl_vector.h so I used -lgsl to compile with clang and it complained at runtime: "dyld[16321]: missing symbol called". what are "ar" and "nm" in the following? I think "mp" means multiple prec