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 day 1 hour 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.

Time to create page: 0.044 seconds
Powered by Kunena Forum