hi, after a break of one week, the firmware doesn't seem to be built. when typing make clean followed by make or make firmware in ./src/
here is the tail of the output:
make -C target/firmware CROSS_COMPILE=arm-elf- make[1]: Betrete Verzeichnis '<snip>/src/target/firmware' make[1]: Für das Ziel »default« ist nichts zu tun. make[1]: Verlasse Verzeichnis '<snip>/src/target/firmware'
what am i doing wrong?
chekov wrote:
what am i doing wrong?
There really seems to be something wrong with master, on a fresh checkout I get this:
mkdir shared/libosmocore/build-target cd shared/libosmocore/build-target && ../configure \ --host=arm-elf-linux --disable-shared --disable-talloc --disable-tests \ CC="arm-elf-gcc" CFLAGS="-Os -ffunction-sections -I../../../../target/firmware/include" configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-elf-linux-strip... no checking for strip... strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... (cached) yes checking for arm-elf-linux-gcc... arm-elf-gcc checking whether the C compiler works... no configure: error: in `<snip>/devel/osmocom-bb/src/shared/libosmocore/build-target': configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [shared/libosmocore/build-target/Makefile] Fehler 77
Regards, Steve
it looks like it can't build some .o-files because of a missing src/select.h there is an select.h located at: ./shared/libosmocore/include/osmocore/select.h
but i don't know if they are the same.
Steve Markgraf wrote:
There really seems to be something wrong with master, on a fresh checkout I get this:
mkdir shared/libosmocore/build-target cd shared/libosmocore/build-target && ../configure \ --host=arm-elf-linux --disable-shared --disable-talloc
...
`<snip>/devel/osmocom-bb/src/shared/libosmocore/build-target': configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [shared/libosmocore/build-target/Makefile] Fehler 77
here are some lines from config.log:
| #include <execinfo.h> configure:11502: result: no configure:11530: checking for execinfo.h configure:11539: result: no configure:11424: checking sys/select.h usability configure:11441: arm-elf-gcc -c -Os -ffunction-sections -I../../../../target/firmware/include conftest.c >&5 conftest.c:53:24: error: sys/select.h: No such file or directory configure:11448: $? = 1 configure: failed program was: | /* confdefs.h. */
On Wednesday 10 March 2010 21:52:35 chekov wrote:
it looks like it can't build some .o-files because of a missing src/select.h there is an select.h located at: ./shared/libosmocore/include/osmocore/select.h
Not src/select.h, sys/select.h
If you take a look at the configure.in of libosmocore we check for two header files being present. These are execinfo.h and sys/select.h. So this error boils down to the toolchain you are using. E.g. I'm using a full blown ARM Linux GNU/EABI toolchain with glibc headers in it and have a sys/select.h.
I would be happy to see a patch that adds an autoconf switch (e.g. --enable- bare, --enable-minimal) and then only enable tests, talloc and these two header checks if it is not enabled.
z.
baseband-devel@lists.osmocom.org