User forums > Help

[Linux]Error when building .deb package for rev2526

(1/2) > >>

Michael:
Hello,

I am trying to build a .deb package of revision 2526 (Ubuntu 6.06, GCC 4.0.3), but I get the following error:


--- Quote ---creating libastyle.la
(cd .libs && rm -f libastyle.la && ln -s ../libastyle.la libastyle.la)
make[5]: *** No rule to make target `astyle/compiler_defines.h', needed by `all-am'.  Stop.
make[5]: Leaving directory `/home/michael/codeblocks/trunk/src/plugins/astyle'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/michael/codeblocks/trunk/src/plugins/astyle'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/michael/codeblocks/trunk/src/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/michael/codeblocks/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/michael/codeblocks/trunk'
make: *** [build-stamp] Error 2

--- End quote ---

I have tried to do a ./configure --enable-contrib, but it did not solve the problem.

Any idea?

Thank you.

Best wishes,
Michael

Der Meister:
Delete this file - it was removed in revision 2523.

Michael:

--- Quote from: Der Meister on June 04, 2006, 06:34:04 pm ---Delete this file - it was removed in revision 2523.

--- End quote ---

Hello,

Thank you for the help.

After checking the file astyle/compiler_defines.h is not present (it has probably been already removed). May be the makefile has not been updated.

Best wishes,
Michael

Michael:

--- Quote from: Michael on June 04, 2006, 06:40:51 pm ---
--- Quote from: Der Meister on June 04, 2006, 06:34:04 pm ---Delete this file - it was removed in revision 2523.

--- End quote ---
After checking the file astyle/compiler_defines.h is not present (it has probably been already removed). May be the makefile has not been updated.

--- End quote ---

It seems that I needed:

1) sudo aclocal
2) sudo ./bootstrap
3) sudo ./configure --enable-contrib

Now it seems to build fine :).

Best wishes,
Michael

Game_Ender:

--- Quote from: Michael on June 04, 2006, 08:10:44 pm ---1) sudo aclocal
2) sudo ./bootstrap
3) sudo ./configure --enable-contrib

--- End quote ---

The real question is why weren't you doing this from start? Maybe I am paranoid but I have always been suspicious that autotool created build files will work after an update.  So I have figured you need to regenerate the build system after each update.

I don't think the aclocal is needed I would do:

--- Code: ---make distclean
./bootstrap
./configure --enable-contrib
make
sudo make install # sudo only need if install system wide
--- End code ---

By the way, why do you have to be root to bootstrap and configure?  Is that do to the package building environment?

Navigation

[0] Message Index

[#] Next page

Go to full version