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

Error in building mocsy: multiple definition of "MAIN__" #25

Open
Parag0206 opened this issue Jun 20, 2023 · 0 comments
Open

Error in building mocsy: multiple definition of "MAIN__" #25

Parag0206 opened this issue Jun 20, 2023 · 0 comments

Comments

@Parag0206
Copy link

Hi
I am trying to build MOM6 with ocean_BGC(I want to use COBALT). I have cloned this repository in "src/MOM6/config_src/external/GFDL_ocean_BGC". While building i am facing the following issue:

test_mocsy.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_mocsy.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_vars.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_vars.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
MOM_driver.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/drivers/solo_driver/MOM_driver.F90:1: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_mocsy_buffesm.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_mocsy_buffesm.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_errors.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_errors.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_kprime.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_kprime.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_kzero.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_kzero.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_derivnum.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_derivnum.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_buffesm.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_buffesm.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
test_derivauto.o: In function `MAIN__':
/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_derivauto.f90:3: multiple definition of `MAIN__'
test_phizero.o:/scratch/ds2/km7623/MOM6_BGC/MOM6-examples/build/gnu/ocean_only/repro/../../../../src/MOM6/config_src/external//GFDL_ocean_BGC/examples/test_phizero.f90:3: first defined here
make: *** [Makefile:1402: MOM6] Error 1

The test cases in "mocsy/example" are creating a problem.

Can you help me here?
(using mpiifort,mpiicc)

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