Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues on MacOS #17

Open
Nicholaswogan opened this issue Feb 22, 2022 · 0 comments
Open

Build issues on MacOS #17

Nicholaswogan opened this issue Feb 22, 2022 · 0 comments

Comments

@Nicholaswogan
Copy link

Make compilation fails on Apple Silicon:

gfortran -std=f2008 -fimplicit-none -J../mod/ -g -Og -C -Wall -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow  -c Focal_Test_Utils.f90 -o ../obj/Focal_Test_Utils.o
gfortran -std=f2008 -fimplicit-none -J../mod/ -g -Og -C -Wall -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow  -c testExample.f90 -o ../obj/testExample.o
mkdir build_testExample_cl
cp testExample.cl build_testExample_cl/fclKernels.cl
cd build_testExample_cl; ld -r -b binary fclKernels.cl -o ../../obj/testExample.cl.o; rm fclKernels.cl
ld: warning: option -b is obsolete and being ignored
ld: file not found: binary
rm -rf build_testExample_cl
gfortran ../obj/testExample.o ../obj/testExample.cl.o ../obj/Focal_Test_Utils.o -L../lib -lFocaldbg -g -L/usr/lib/ -lOpenCL -o ../bin/testExample
ld: file not found: ../obj/testExample.cl.o
collect2: error: ld returned 1 exit status
make[1]: *** [../bin/testExample] Error 1
make: *** [test] Error 2

Looks like ld is being used in an obsolete way in the make file.

Would be really great to have a platform independent build system for this project like CMake. I see the other related issue #14 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant