Skip to content

Commit f2baa96

Browse files
committed
fixed errors 1
1 parent 8954467 commit f2baa96

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test-tinker.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ jobs:
154154
# CRITICAL FIX: Explicitly compile the missing objects to ensure they exist.
155155
# The makefile rules might be missing or not triggering correctly for these specific files.
156156
echo "Compiling missing objects manually..."
157-
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 -mcmodel=large potent.f || echo "Failed to compile potent.f"
158-
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 -mcmodel=large action.f || echo "Failed to compile action.f"
159-
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 -mcmodel=large energi.f || echo "Failed to compile energi.f"
160-
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 -mcmodel=large boxes.f || echo "Failed to compile boxes.f"
157+
# Fix: Removed -mcmodel=large as it conflicts with -fPIC on ARM64 and causes build failure
158+
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 potent.f || echo "Failed to compile potent.f"
159+
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 action.f || echo "Failed to compile action.f"
160+
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 energi.f || echo "Failed to compile energi.f"
161+
gfortran -c -O2 -fdefault-integer-8 -fdefault-real-8 boxes.f || echo "Failed to compile boxes.f"
161162
162163
# Now rename the old broken target
163164
sed -i 's/^libtinker.a:/OLD_libtinker.a:/g' Makefile

0 commit comments

Comments
 (0)