Author Topic: [solved] undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86  (Read 5570 times)

Offline blauzahn

  • Almost regular
  • **
  • Posts: 161
Hi,

I got this compile error on my 32-Bit machine only. The x86-64 still compiles fine. Both run Ubuntu 10.10, I also tried 10.04.

libtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -o .libs/codeblocks app.o appglobals.o compilersettingsdlg.o crashhandler.o dlgabout.o dlgaboutplugin.o environmentsettingsdlg.o infopane.o main.o notebookstyles.o prefix.o printdlg.o scriptconsole.o scriptingsettingsdlg.o splashscreen.o startherepage.o switcherdlg.o -pthread -Wl,-Bsymbolic-functions  -L/home/mathias/tmp/codeblocks_svn/trunk/src/sdk /home/mathias/tmp/codeblocks_svn/trunk/src/sdk/.libs/libcodeblocks.so -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lpthread -ldl -pthread

...trunk/src/sdk/.libs/libcodeblocks.so: undefined reference to `lmA68k'

after:

make distclean
svn update
 ./configure --prefix=/usr/local --with-contrib-plugins=all
make -j 2

What has changed? I I build it regularly from svn. Usually it compiles flawlessly and is quite reliable. Since about one week, it is broken for me.
I very much appreciate cb and the excellent work, done by the developers. I use it daily and want to stay up to date, so that there is no need to ask the developers for broken things on an (for them) outdated version.

I found no 68k related entry in config.log. Thought, I do not need this stuff either. I remember vaguely having read sth about a recent patch applied in that area but can't find that entry now.

Any suggestions? Thanks in advance
« Last Edit: December 16, 2010, 06:48:17 pm by blauzahn »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #1 on: December 16, 2010, 07:27:38 am »
This could be due to a recent wxscintilla update. Please check whether newly added lexer (*68k) is being compiled & linked properly. I can only help you this much now.
Be a part of the solution, not a part of the problem.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #2 on: December 16, 2010, 08:03:30 am »
make distclean
svn update
 ./configure --prefix=/usr/local --with-contrib-plugins=all
make -j 2
Please do:
make clean
make distclean
svn update
./configure --prefix=/usr/local --with-contrib-plugins=all
make -j 2

...it's too late for that now, so you should manually remove all object files, libraries and pre-compiled headers. The build system should be instrumented just right for Unix (included in the wxScintilla update).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline blauzahn

  • Almost regular
  • **
  • Posts: 161
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #3 on: December 16, 2010, 09:04:57 am »

ReHi,

make clean does not help. Still the same error.

Thanks anyway for the quick response.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #4 on: December 16, 2010, 09:07:15 am »
You should run ./bootstrap also, because the Makefile.am has changed (new lexer for 68k), otherwise the Makefile.in's (and therfore the Makefile's) can not be created properly.

Offline blauzahn

  • Almost regular
  • **
  • Posts: 161
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #5 on: December 16, 2010, 09:29:36 am »
after a make in trunk entered

find . -name *68k*

gives nothing compiled, only the sources

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #6 on: December 16, 2010, 09:41:54 am »
after a make in trunk entered

find . -name *68k*

gives nothing compiled, only the sources

You should run ./bootstrap also, because the Makefile.am has changed (new lexer for 68k), otherwise the Makefile.in's (and therfore the Makefile's) can not be created properly.
Did you do this (before running ./configure and make ?

Offline blauzahn

  • Almost regular
  • **
  • Posts: 161
@jens: that works

./bootstrap
make clean
make distclean
svn update
./configure --prefix=/usr/local --with-contrib-plugins=all
make -j 2

did the job.

thanks

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #8 on: December 16, 2010, 12:37:58 pm »
This is a bit safer approach (I think):
Code
make clean
make distclean
svn update
./bootstrap
./configure --prefix=/usr/local --with-contrib-plugins=all
make -j 2
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline blauzahn

  • Almost regular
  • **
  • Posts: 161
Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
« Reply #9 on: December 16, 2010, 12:53:08 pm »
Yes you are right. In my case it worked because I already had run the update earlier.