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

duplicate symbol compilation error on some versions of gcc on mac #80

Open
pmocz opened this issue Jan 8, 2025 · 0 comments
Open

duplicate symbol compilation error on some versions of gcc on mac #80

pmocz opened this issue Jan 8, 2025 · 0 comments

Comments

@pmocz
Copy link

pmocz commented Jan 8, 2025

Using gcc 13.3.0 on macOS 15.2.

I cannot compile the code and get the error:

ld: warning: ignoring duplicate libraries: 'framework/libntt_framework.a', 'global/libntt_global.a'
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)1, metric::Minkowski<(Dimension)1>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)1, metric::Minkowski<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)2, metric::KerrSchild0<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)1, metric::QSpherical<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)2, metric::QKerrSchild<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)2, metric::QKerrSchild<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)1, metric::Spherical<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)1, metric::Minkowski<(Dimension)3>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)2, metric::KerrSchild0<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)1, metric::Spherical<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo name for ntt::Engine<(ntt::SimEngine::type)2, metric::KerrSchild<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)1, metric::QSpherical<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)1, metric::Minkowski<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)1, metric::Minkowski<(Dimension)3>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)2, metric::KerrSchild<(Dimension)2>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
duplicate symbol 'typeinfo for ntt::Engine<(ntt::SimEngine::type)1, metric::Minkowski<(Dimension)1>>' in:
    engines/libntt_engines.a[4](engine_run.cpp.o)
    engines/libntt_engines.a[2](engine_printer.cpp.o)
    engines/libntt_engines.a[3](engine_init.cpp.o)
    engines/libntt_engines.a[5](engine_step_report.cpp.o)
ld: 16 duplicate symbols
collect2: error: ld returned 1 exit status

It compiles on linux

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