If you run into troubles, it is always a good habit to report the following information:
  • the way build.mrcc was invoked
  • the output of build.mrcc
  • compiler version (for example: ifort -V, gfortran -v)
  • blas/lapack versions
  • as well as gcc and glibc versions

as well as the value of the relevant environmental variables, such OMP_NUM_THREADS, etc.

This information helps us a lot when figuring out what is going on with your compilation :)

Compiling on MacOS Sequoia 15.7.1

  • LEININGER
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 4 days ago #1585 by LEININGER
Compiling on MacOS Sequoia 15.7.1 was created by LEININGER
Dear all, 
I tried to compile the latest mrcc on my Macbook and get following error at the linking step.

Undefined symbols for architecture arm64:
  "_sched_getcpu", referenced from:
      _getcpu_ in cfunc.o

I used build.mrcc GNU and the compilation uses, for instance for ldfzvec

Compiling ldfzvec with options -x f95-cpp-input -ffree-line-length-none -fallow-argument-mismatch -Dgfortran -fdefault-integer-8  -DGNU -DINT64

Googling results in following for the sched_getcpu which seems to be the problem:

13.60.4 
Code:
sched_getcpu
Documentation:
man sched_getcpu
Gnulib module: —Portability problems fixed by Gnulib:
Portability problems not fixed by Gnulib:
  • This function exists only on Linux and Cygwin and is therefore missing on most non-glibc platforms: glibc 2.5, macOS 14, FreeBSD 13.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.1.8, AIX 7.1, HP-UX 11.31, Solaris 11.4, Cygwin 2.10.x, mingw, MSVC 14.

Any help appreciated.

Best wishes
  Thierry
 

Please Log in or Create an account to join the conversation.

More
3 days 19 hours ago #1586 by i.s.ger
Replied by i.s.ger on topic Compiling on MacOS Sequoia 15.7.1
Just delete it. It is not used in MRCC source code.

Please Log in or Create an account to join the conversation.

Time to create page: 0.038 seconds
Powered by Kunena Forum