Re: osmocom-bb installation help

2018-05-14 Thread Harald Welte
Hi Nikos,

On Sat, May 12, 2018 at 04:09:47AM +0300, Nikos Balkanas wrote:
> According to the src/README.building file, I should get the arm toolchain
> from gnuarm.com
> This should be updated, gnuarm.com doesn't have any downloads any more.
> Instead I installed gcc-arm-linux-gnueabi from ubuntu reps

Won't work, sorry.  You need the specific toolchain, see

https://osmocom.org/projects/baseband/wiki/GnuArmToolchain
also note
https://osmocom.org/issues/1916

> 1) normal gcc seems to support x-compiling for arm CPUs. Why not use that?

if it was that simple, we wouldn't have to rely on one specific old toolchain.

The OsmocomBB code was simply developed 8 years ago, and while lots of
people ar very enthusiastic about using it, not one such user has been
bothering over the coures of 8 years to invest the time to port the code
to more modern toolchains :/

The biggest knwon problem is  about the fact that GNU binutils changed
their features/syntax for the linkerscripts, see
https://osmocom.org/issues/1917

> 2) Your stock Makefile tests for CROSS_HOST against arm-elf-gcc. This
> should be updated to test also against arm-linux-gnueabi-gcc from
> gcc-arm-linux-gnueabi package

No, it should not be updated, as it won't match a toolchain/compiler that will
produce a working binary.

> 3) configure warnings:
> configure: WARNING: unrecognized options: --disable-tests, --disable-tests.
> Should be disabled if not supported any more
> checking for arm-linux-gnueabi-mt... no
> checking for mt... mt
> configure: WARNING: using cross tools not prefixed with host triplet
> Is there a problem to use the OS mt?

It would be helpful if you could explain which "configure" are you
talking about? There are a total of _7_ configure scripts in the
osmocom-bb source tree.

> 4) configure asks for libosmovty >= 0.10.0. libosmovty is part of
> libosmocore. Latest libosmocore master provides libosmovty 0.9.0.16-abc4:(

Again, *which* configure?  Also, are you talking about a requirement for
libosmcoore on the host or on the target?

The libosmocore included in the osmocom-bb.git repository is *ONLY FOR
CROSS-COMPILATION TO THE TARGET* as is stated very clearly in
README.building.  Also, the master makefile will not do that.

As written already earlier, libosmocore.git contains a version >= 0.10.0
for more than six months.  Please make sure you understand your build
process and ensure you are not using outdated source code to build, or
building against outdated installs of libosmocore that may still be
somewhere installed in your search paths.

btw: the OpenSUSE package feeds by Martin Hauke contain builds of a suitable
cross-compiler as well as pre-compiled omsocom-bb firmware:
https://build.opensuse.org/project/show/home:mnhauke:osmocom:nightly

This is not available in the official osmocom Debian builds.  We're
always happy to merge related contributions, though.

Regards,
Harald
-- 
- Harald Welte    http://laforge.gnumonks.org/

"Privacy in residential applications is a desirable marketing option."
  (ETSI EN 300 175-7 Ch. A6)


Re: osmocom-bb installation help

2018-05-14 Thread Neels Hofmeyr
On Sat, May 12, 2018 at 09:42:16PM +0300, Nikos Balkanas wrote:
> Interesting, when I try:
> git clone https://git.osmocom.org/libosmocore
> gives me libosmocore 0.9.0.16
> git clone git://git.osmocom.org/libosmocore
> gives me the correct libosmocore 0.11.0.12.
> Seems your nginx server is caching the https request some 6 months now:)
> Problem solved:)

What, wow. I didn't know we even offered https git access there. All I ever use
is git://git.osmocom.org and git+ssh://gerrit.osmocom.org. There also is https
access on gerrit.osmocom.org (managed by gerrit).

https://osmocom.org/issues/3261

~N


signature.asc
Description: PGP signature


Re: osmocom-bb installation help

2018-05-12 Thread Nikos Balkanas
Hi,

osmocom-bb configure gives me several warnings like this:

configure: WARNING: execinfo.h: present but cannot be compiled
configure: WARNING: execinfo.h: check for missing prerequisite headers?
configure: WARNING: execinfo.h: see the Autoconf documentation
configure: WARNING: execinfo.h: section "Present But Cannot Be Compiled"
configure: WARNING: execinfo.h: proceeding with the compiler's result
configure: WARNING: ##  ##
configure: WARNING: ## Report this to open...@lists.osmocom.org ##
configure: WARNING: ##  ##

Probably left out from a shared libosmocore configure, in
osmocom-bb/src/shared/libosmocore/configure.
That's how I used the wrong list:(

I tried the link: https://git.osmocom.org/libosmocore. Clearly shows latest
libosmocore tag is 0.11.0.
Interesting, when I try:
git clone https://git.osmocom.org/libosmocore
gives me libosmocore 0.9.0.16
git clone git://git.osmocom.org/libosmocore
gives me the correct libosmocore 0.11.0.12.
Seems your nginx server is caching the https request some 6 months now:)
Problem solved:)

TIA
Nikos

On Sat, May 12, 2018 at 4:09 AM, Nikos Balkanas  wrote:

> Hi,
>
> I am new to this list.
> I use ubuntu 14.04.02. I am trying to configure/compile latest master
> osmocom-bb.
> I ran into a few problems/questions:
> According to the src/README.building file, I should get the arm toolchain
> from gnuarm.com
> This should be updated, gnuarm.com doesn't have any downloads any more.
> Instead I installed gcc-arm-linux-gnueabi from ubuntu reps
> 1) normal gcc seems to support x-compiling for arm CPUs. Why not use that?
> 2) Your stock Makefile tests for CROSS_HOST against arm-elf-gcc. This
> should be updated to test also against arm-linux-gnueabi-gcc from
> gcc-arm-linux-gnueabi package
> 3) configure warnings:
> configure: WARNING: unrecognized options: --disable-tests,
> --disable-tests. Should be disabled if not supported any more
> checking for arm-linux-gnueabi-mt... no
> checking for mt... mt
> configure: WARNING: using cross tools not prefixed with host triplet
> Is there a problem to use the OS mt?
> 4) configure asks for libosmovty >= 0.10.0. libosmovty is part of
> libosmocore. Latest libosmocore master provides libosmovty 0.9.0.16-abc4:(
> These 2 should really be synchronized. Where can I find suitable
> libosmocore to work with latest osmocom-bb, or latest osmocom-bb that works
> with latest libsomocore?
>
> TIA,
> Nikos
>