[MacPorts] #64896: gcc and gcc-devel run fails libSystem.B.dylib not found
MacPorts
noreply at macports.org
Thu Mar 31 20:11:44 UTC 2022
#64896: gcc and gcc-devel run fails libSystem.B.dylib not found
-----------------------------+--------------------
Reporter: AlanTAMU | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: ggc, gcc-devel |
-----------------------------+--------------------
Comment (by AlanTAMU):
Thank you Dave for pointing out the dynamic storage possibility! Much
appreciated!!
Dynamic storage for a large matrix does the trick (at least for me)!
I used the simple (old fashioned) test code below and it worked when run
with imax,jmax=50000. Then I used the same approach in my actual code (a
finite element code now with dynamic storage for the stiffness matrix) and
it worked when static storage failed.
I compiled the code using:
gfortran -o dya -Ofast dya.f
to see if optimization broke anything. It did not.
For the record, I am running MacOS 12.3 on a MacBook Air M1 with 8GBytes.
I have both gcc and gcc-devel installed and both seem to work.
program dya
implicit double precision(a-h,o-z)
double precision, dimension (:,:), allocatable :: a
print*, "Enter the size of the array:imax,jmax:"
read*, imax,jmax
allocate (a(imax,jmax))
call foo(a,imax,jmax)
deallocate (a)
stop
end
subroutine foo(a,imax,jmax)
implicit double precision(a-h,o-z)
dimension a(imax,jmax)
do i = 1, imax
do j = 1, jmax
a(i,j) = dble(i*j)
end do
end do
print*,a(imax,jmax)
return
end
--
Ticket URL: <https://trac.macports.org/ticket/64896#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list