Author Topic: Link error  (Read 16338 times)

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Link error
« on: December 30, 2022, 05:04:06 PM »
Recently while building FE2 with GCC compilers I ran into the following linker warnings
Code: [Select]
warning: (x86_64)  could not find object file symbol for symbol ___mulsc3
warning: (x86_64)  could not find object file symbol for symbol ___muldc3
warning: (x86_64)  could not find object file symbol for symbol ___mulxc3
The code seems to work fine but it is troubling.  A fix for the issue that I have found is
to add -lgcc on the final link command in fe2/makefile:
Code: [Select]
$(FFE2) -o feap $(OBJECTS) $(AR2FEAP) $(ARFEAP) $(LDOPTIONSFE2) -lgccThis makes  the linker warning disappear.  It is probably not needed since I think these routines
are related to complex math which we are probably not using anywhere in the code.  Notwithstanding,
if you see this warning and want to make it go away you can try the -lgcc 'fix'.