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
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.
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 cleanmake 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).
ReHi,
make clean does not help. Still the same error.
Thanks anyway for the quick response.
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.
after a make in trunk entered
find . -name *68k*
gives nothing compiled, only the sources
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 ?
@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
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
Yes you are right. In my case it worked because I already had run the update earlier.