News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

[solved] undefined reference to `lmA68k' on svn 6862..now, Ubuntu 10.10 x86

Started by blauzahn, December 16, 2010, 07:14:59 AM

Previous topic - Next topic

blauzahn

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

Biplab

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.

MortenMacFly

Quote from: blauzahn on December 16, 2010, 07:14:59 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

blauzahn


ReHi,

make clean does not help. Still the same error.

Thanks anyway for the quick response.

Jenna

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.

blauzahn

after a make in trunk entered

find . -name *68k*

gives nothing compiled, only the sources

Jenna

Quote from: blauzahn on December 16, 2010, 09:29:36 AM
after a make in trunk entered

find . -name *68k*

gives nothing compiled, only the sources

Quote from: jens 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.
Did you do this (before running ./configure and make ?

blauzahn

@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

oBFusCATed

This is a bit safer approach (I think):

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!]

blauzahn

Yes you are right. In my case it worked because I already had run the update earlier.