[PATCH] build: Fix make rule for building crc%gen.h
The current rule for building a directory for crc%gen.h uses $(notdir $@) causing a build error: make[3]: Entering directory `/home/enki/devel/tst/osmocom-bb/src/shared/libosmocore/build-target/include' /usr/bin/mkdir -p crc16gen.h sed -e's/XX/16/g' ../../include/osmocom/core/crcXXgen.h.tpl > osmocom/core/crc16gen.h Changed to use $(dir $@) which makes more sense when calling mkdir. Signed-off-by: Maciej Grela <maciej.grela@gmail.com> --- src/shared/libosmocore/include/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/libosmocore/include/Makefile.am b/src/shared/libosmocore/include/Makefile.am index dec8eac..2c5fb3e 100644 --- a/src/shared/libosmocore/include/Makefile.am +++ b/src/shared/libosmocore/include/Makefile.am @@ -99,5 +99,5 @@ endif noinst_HEADERS = osmocom/core/timer_compat.h osmocom/core/crc%gen.h: osmocom/core/crcXXgen.h.tpl - $(AM_V_GEN)$(MKDIR_P) $(notdir $@) + $(AM_V_GEN)$(MKDIR_P) $(dir $@) $(AM_V_GEN)sed -e's/XX/$*/g' $< > $@ -- 1.7.12
16.09.2012 20:58, Maciej Grela пишет:
The current rule for building a directory for crc%gen.h uses $(notdir $@) causing a build error:
I think I've experienced this error while building osmocom-bb today. Until this patch merged into mainline the following workaround might help: cd src/shared/libosmocore ./configure make distclean cd ../.. make -- best regards, Max, http://fairwaves.ru
fresh pull and build fails, is this related at all as I have installed many times before ? http://pastebin.com/GTbJjd8y Dave On 17 September 2012 13:44, ☎ <Max.Suraev@fairwaves.ru> wrote:
16.09.2012 20:58, Maciej Grela пишет:
The current rule for building a directory for crc%gen.h uses $(notdir $@) causing a build error:
I think I've experienced this error while building osmocom-bb today. Until this patch merged into mainline the following workaround might help:
cd src/shared/libosmocore ./configure make distclean cd ../.. make
-- best regards, Max, http://fairwaves.ru
Works for me applying this patch diff --git a/src/shared/libosmocore/include/Makefile.am b/src/shared/libosmocore/include/Makefile.am index dec8eac..2c5fb3e 100644 --- a/src/shared/libosmocore/include/Makefile.am +++ b/src/shared/libosmocore/include/Makefile.am @@ -99,5 +99,5 @@ endif noinst_HEADERS = osmocom/core/timer_compat.h osmocom/core/crc%gen.h: osmocom/core/crcXXgen.h.tpl - $(AM_V_GEN)$(MKDIR_P) $(notdir $@) + $(AM_V_GEN)$(MKDIR_P) $(dir $@) $(AM_V_GEN)sed -e's/XX/$*/g' $< > $@ and then
cd src/shared/libosmocore ./configure make distclean cd ../.. make
On Mon, Sep 17, 2012 at 5:18 PM, Dave Davies <dodegkr@gmail.com> wrote:
fresh pull and build fails, is this related at all as I have installed many times before ?
Dave
On 17 September 2012 13:44, ☎ <Max.Suraev@fairwaves.ru> wrote:
16.09.2012 20:58, Maciej Grela пишет:
The current rule for building a directory for crc%gen.h uses $(notdir $@) causing a build error:
I think I've experienced this error while building osmocom-bb today. Until this patch merged into mainline the following workaround might help:
cd src/shared/libosmocore ./configure make distclean cd ../.. make
-- best regards, Max, http://fairwaves.ru
17.09.2012 17:18, Dave Davies пишет:
fresh pull and build fails, is this related at all as I have installed many times before ?
My case exactly. Have you tried the workaround? -- best regards, Max, http://fairwaves.ru
Try this: --------------------------------------------------------- Installing Osmocombb (Prerequisites): 1.- For Debian the package names are (http://bb.osmocom.org/trac/wiki/GettingStarted): $ sudo aptitude install libtool shtool autoconf git-core pkg-config make gcc 2.- GNUArm (http://bb.osmocom.org/trac/wiki/toolchain) The toolchains that are known working are the GNUArm.com ones. They provide a ARM GCC 3.4.3 for x86 here and a ARM GCC 4.0.2 for x86_64 here. The toolchain is relocatable and can be extracted in your home directory. For x86 wget http://gnuarm.com/bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 tar xf bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.tar.bz2 mv gnuarm-* ~/gnuarm For amd64 wget http://www.gnuarm.com/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.... tar xf bu-*_gcc-*-c-c++_nl-*_gi-*_x86-64.tar.bz2 mv gnuarm-* ~/gnuarm To be able to use the toolchain, add the crosscompilers to your PATH export PATH=~/gnuarm/bin:$PATH -------------------------------------------------------------- Installing Osmocombb: 3.- Firsts steps (http://bb.osmocom.org/trac/wiki/GettingStarted): $ git clone git://git.osmocom.org/osmocom-bb.git $ cd osmocom-bb $ git pull --rebase $ cd src $ make Si nos manda el siguiente error (If throw this error): /bin/bash: osmocom/core/crc16gen.h: No existe el fichero o el directorio make[3]: *** [osmocom/core/crc16gen.h] Error 1 Then: $ cd shared/libosmocore $ autoreconf -i $ ./configure $ make $ su Como root (As root): # make install Salimos de root (Root exit): # exit Continuamos (Then): $ cd ../.. $ make Nos manda el siguiente error (And if throws error): configure: error: source directory already configured; run "make distclean" there first make: *** [shared/libosmocore/build-host/Makefile] Error Hacer (Then do): $ cd shared/libosmocore $ make distclean $ cd ../.. $ make And it should work :)
participants (5)
-
Dario Lombardo -
Dave Davies -
Maciej Grela -
richie -
☎