Discussion:
Build issue..."Not a git repository"
Bob Stewart
2016-07-13 21:24:42 UTC
Permalink
Hi,
I started getting build warning message about repository not found, as
you can see below. This occurred shortly after I did a make prepare for
libc and libm from libports on my 16.05 build. I'm building from the
BUILD_DIR directory. An suggestion why this is occurring?

***@tegra-ubuntu:/Work/Genode/Builds/16.05/437x$ make run/libc_ffat_fs
including /Work/Genode/genode-16.05/tool/run/boot_dir/hw
including /Work/Genode/genode-16.05/tool/run/image/uboot
including /Work/Genode/genode-16.05/repos/libports/run/libc_ffat_fs.run
building targets: core init drivers/timer server/ffat_fs test/libc_vfs
drivers/sd_card/spec/437x
spawn make core init drivers/timer server/ffat_fs test/libc_vfs
drivers/sd_card/spec/437x
make[1]: Entering directory `/Work/Genode/Builds/16.05/437x'
checking library dependencies...
_/fatal: Not a git repository (or any parent up to mount point /Work)/__/
/__/Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not
set)./_
Library platform
Library cxx
Library base-common
Library syscall
Library startup
Library base
Program drivers/sd_card/spec/437x/sd_card_drv
Library alarm
Library timer
Program drivers/timer/timer
Library config
Program init/init
Library ffat_block
Program server/ffat_fs/ffat_fs
Library libc-string
Library libc-locale
Library libc-stdlib
Library libc-stdio
Library libc-gen
Library libc-gdtoa
Library libc-inet
Library libc-stdtime
Library libc-regex
Library libc-compat
Library libc-setjmp
Library timed_semaphore
Library component_entry_point
Library ldso-startup
Library ld
Library vfs
/_fatal: Not a git repository (or any parent up to mount point /Work)_//_
_//_Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not
set)._/
Library libc
Program test/libc_vfs/test-libc_vfs
Library core-perf_counter
Library core
COMPILE version.o
MERGE core.lib.a
Program core/core
LINK core
make[1]: Leaving directory `/Work/Genode/Builds/16.05/437x'
genode build completed
spawn make core


Thanks,
Bob Stewart
Emery Hemingway
2016-07-14 00:24:54 UTC
Permalink
Hello,

It looks to me like this is caused by core and libc trying to get some version
information from git, but it is failing because the current working directory
(BUILD_DIR) is not inside a git repository. In the case of core it is only a
cosmetic issue, and version information was removed from libc not long after
it was introduced, so as you move further down the master branch that warning
will disapear regardless.

Emery
Hi,
I started getting build warning message about repository not found, as you
can see below. This occurred shortly after I did a make prepare for libc and
libm from libports on my 16.05 build. I'm building from the BUILD_DIR
directory. An suggestion why this is occurring?
r***@verizon.net
2016-07-14 11:14:16 UTC
Permalink
Thanks for the reply Emery.

I've been building Genode the same way for several years and never seen these messages, and BUILD_DIR has never been inside a git repository. I suspect it is related to building libc in 16.05.

Bob

Sent from my android device.

-----Original Message-----
From: Emery Hemingway <***@vfemail.net>
To: Genode OS Framework Mailing List <genode-***@lists.sourceforge.net>
Sent: Wed, 13 Jul 2016 8:24 PM
Subject: Re: Build issue..."Not a git repository"

Hello,

It looks to me like this is caused by core and libc trying to get some version
information from git, but it is failing because the current working directory
(BUILD_DIR) is not inside a git repository. In the case of core it is only a
cosmetic issue, and version information was removed from libc not long after
it was introduced, so as you move further down the master branch that warning
will disapear regardless.

Emery
Hi,
I started getting build warning message about repository not found, as you
can see below. This occurred shortly after I did a make prepare for libc and
libm from libports on my 16.05 build. I'm building from the BUILD_DIR
directory. An suggestion why this is occurring?
Christian Helmuth
2016-07-18 16:47:47 UTC
Permalink
Hello Bob,
Post by r***@verizon.net
I've been building Genode the same way for several years and never
seen these messages, and BUILD_DIR has never been inside a git
repository. I suspect it is related to building libc in 16.05.
You're right and as Emery wrote: The second warning will disappear
with the next release (or with the current master branch).
Nevertheless, I'm curious why you see the first warning as git is used
like follows in repos/base/src/core/version.inc.

git -C $(GENODE_ROOT_DIR) describe --dirty=" <local changes>" 2> /dev/null

On my machine, this line effectivle prevents warnings from git for any
GENODE_ROOT_DIR, for example

GENODE_ROOT_DIR=/tmp

Greets
--
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
r***@verizon.net
2016-07-18 20:24:49 UTC
Permalink
Hi Christian,

The file repos/base/src/core/version.inc in my release directory has the same content as the current master. In that file, line 4 sets:

GENODE_ROOT_DIR = $(BASE_DIR)/../..

If I change that to set it to /tmp I still get the two git repository warnings.

Bob



Sent from my android device.

-----Original Message-----
From: Christian Helmuth <***@genode-labs.com>
To: genode-***@lists.sourceforge.net
Sent: Mon, 18 Jul 2016 12:47 PM
Subject: Re: Build issue..."Not a git repository"

Hello Bob,
Post by r***@verizon.net
I've been building Genode the same way for several years and never
seen these messages, and BUILD_DIR has never been inside a git
repository. I suspect it is related to building libc in 16.05.
You're right and as Emery wrote: The second warning will disappear
with the next release (or with the current master branch).
Nevertheless, I'm curious why you see the first warning as git is used
like follows in repos/base/src/core/version.inc.

git -C $(GENODE_ROOT_DIR) describe --dirty=" <local changes>" 2> /dev/null

On my machine, this line effectivle prevents warnings from git for any
GENODE_ROOT_DIR, for example

GENODE_ROOT_DIR=/tmp

Greets
--
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth
Loading...