Bug 316

Summary: gigedit v1.2.0 does not compile with CLANG
Product: gigedit Reporter: Del Vento <delvento>
Component: gigeditAssignee: Andreas Persson <andreas56>
Status: NEW ---    
Severity: enhancement CC: cuse
Priority: P5    
Version: 1.0.0   
Hardware: PC   
OS: Linux   

Description Del Vento 2021-11-23 19:56:40 CET
Configuring and compiling with clang v6.0.0-1ubuntu2 (since gcc did not work for LinuxSampler and I did not want to mix and match compilers) fails as below

  CXX      main.o
  CXX      libgigedit_la-Settings.lo
  CXX      libgigedit_la-compat.lo
  CXX      libgigedit_la-gigedit.lo
  CXX      libgigedit_la-mainwindow.lo
  CXX      libgigedit_la-regionchooser.lo
  CXX      libgigedit_la-dimregionchooser.lo
  CXX      libgigedit_la-dimregionedit.lo
  CXX      libgigedit_la-paramedit.lo
  CXX      libgigedit_la-dimensionmanager.lo
  CXX      libgigedit_la-CombineInstrumentsDialog.lo
  CXX      libgigedit_la-midirules.lo
  CXX      libgigedit_la-scripteditor.lo
  CXX      libgigedit_la-ScriptPatchVars.lo
  CXX      libgigedit_la-scriptslots.lo
  CXX      libgigedit_la-ReferencesView.lo
  CXX      libgigedit_la-MacroEditor.lo
  CXX      libgigedit_la-MacrosSetup.lo
  CXX      libgigedit_la-ManagedWindow.lo
  CXX      libgigedit_la-wrapLabel.lo
  OBJCXXLD libgigedit.la
libtool: link: unable to infer tagged configuration
libtool:   error: specify a tag with '--tag'
Makefile:685: recipe for target 'libgigedit.la' failed

Adding --tag=CXX in line 685 of src/gigedit/Makefile did not solve the issue. Switching to gcc v7.5.0-3ubuntu1~18.04 creates many warnings during compilation but then completes successfully.
Comment 1 Christian Schoenebeck 2021-11-26 13:11:14 CET
That's apparently a libtool error, not a compiler error.

Please try the workaround described here, they are explicitly assigning --tag CC to libtool which has solved the issue for them:

https://github.com/crosstool-ng/crosstool-ng/issues/940
https://github.com/stilor/crosstool-ng/commit/c50c3a923e4eea0ff26afa4c3cb50513122940cc

After you changed any automake file, run

make -f Makefile.svn

Then run the usual

./configure
make