Code::Blocks Forums

User forums => Help => Topic started by: blauzahn on December 16, 2010, 07:14:59 am

Title: [solved] undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: blauzahn on December 16, 2010, 07:14:59 am
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
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: Biplab 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.
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: MortenMacFly 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).
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: blauzahn on December 16, 2010, 09:04:57 am

ReHi,

make clean does not help. Still the same error.

Thanks anyway for the quick response.
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: Jenna 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.
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: blauzahn on December 16, 2010, 09:29:36 am
after a make in trunk entered

find . -name *68k*

gives nothing compiled, only the sources
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: Jenna 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 ?
Title: <solved> Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: blauzahn on December 16, 2010, 11:44:09 am
@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
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: oBFusCATed 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
Title: Re: undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86
Post by: blauzahn 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.