error building emacs from clean clone

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

error building emacs from clean clone

Jean-Christophe Helary
What I did is:

git clone -b master git://git.sv.gnu.org/emacs.git
cd emacs
make install

(autogen.sh is automatically launched etc.)

and I get a:

In toplevel form:
cedet/semantic/bovine/make.el:31:1:Error: Cannot open load file: No such file or directory, semantic/bovine/make-by
make[3]: *** [cedet/semantic/bovine/make.elc] Error 1
make[2]: *** [compile-main] Error 2
make[1]: *** [lisp] Error 2
make: *** [install] Error 2

I'm on macOS 10.13, freshly installed.

Jean-Christophe
Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Noam Postavsky-2
On Mon, Oct 9, 2017 at 10:25 AM, Jean-Christophe Helary
<[hidden email]> wrote:

> cedet/semantic/bovine/make.el:31:1:Error: Cannot open load file: No such file or directory, semantic/bovine/make-by
> make[3]: *** [cedet/semantic/bovine/make.elc] Error 1
> make[2]: *** [compile-main] Error 2
> make[1]: *** [lisp] Error 2
> make: *** [install] Error 2
>
> I'm on macOS 10.13, freshly installed.
>
> Jean-Christophe

See Bug#28760.

https://debbugs.gnu.org/cgi/bugreport.cgi?users=emacs;bug=28760#8
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00316.html

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Jean-Christophe Helary
Thank you Noam.

Maybe it's because I just woke up but I don't see a way to properly build emacs there.

Jean-Christophe

> On Oct 10, 2017, at 0:58, Noam Postavsky <[hidden email]> wrote:
>
> On Mon, Oct 9, 2017 at 10:25 AM, Jean-Christophe Helary
> <[hidden email]> wrote:
>
>> cedet/semantic/bovine/make.el:31:1:Error: Cannot open load file: No such file or directory, semantic/bovine/make-by
>> make[3]: *** [cedet/semantic/bovine/make.elc] Error 1
>> make[2]: *** [compile-main] Error 2
>> make[1]: *** [lisp] Error 2
>> make: *** [install] Error 2
>>
>> I'm on macOS 10.13, freshly installed.
>>
>> Jean-Christophe
>
> See Bug#28760.
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?users=emacs;bug=28760#8
> https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00316.html


Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Noam Postavsky-2
On Mon, Oct 9, 2017 at 6:32 PM, Jean-Christophe Helary
<[hidden email]> wrote:

> Maybe it's because I just woke up but I don't see a way to properly build emacs there.

Update to latest master and try again.

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Stefan Monnier
>> Maybe it's because I just woke up but I don't see a way to properly
>> build emacs there.
> Update to latest master and try again.

Funnily enough, dropping support completely for old-style backquotes
(which is what I have in my local tree, instead of signaling an error
when faced for an old-style backquote) doesn't bump into this
problem ;-)


        Stefan


Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Jean-Christophe Helary
In reply to this post by Noam Postavsky-2


On Oct 10, 2017, at 7:35, Noam Postavsky <[hidden email]> wrote:

On Mon, Oct 9, 2017 at 6:32 PM, Jean-Christophe Helary
<[hidden email]> wrote:

Maybe it's because I just woke up but I don't see a way to properly build emacs there.

Update to latest master and try again.

Isn't what

git clone -b master <a href="git://git.sv.gnu.org/emacs.git" style="font-family: Menlo-Regular;" class="">git://git.sv.gnu.org/emacs.git

is supposed to do ?

Jean-Christophe 
Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Noam Postavsky-2
On Mon, Oct 9, 2017 at 10:03 PM, Jean-Christophe Helary
<[hidden email]> wrote:

>> Update to latest master and try again.
>
> Isn't what
>
> git clone -b master git://git.sv.gnu.org/emacs.git
>
> is supposed to do ?

Yes.  But "latest" generally means something different every time you
do it. When you did it before, the "latest" commit was broken, and now
it's not (I hope).

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Andreas Schwab
In reply to this post by Jean-Christophe Helary
On Okt 10 2017, Jean-Christophe Helary <[hidden email]> wrote:

> Isn't what
>
> git clone -b master git://git.sv.gnu.org/emacs.git <git://git.sv.gnu.org/emacs.git>
>
> is supposed to do ?

You are supposed to use git pull.

Andreas.

--
Andreas Schwab, SUSE Labs, [hidden email]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Jean-Christophe Helary
In reply to this post by Noam Postavsky-2


> On Oct 10, 2017, at 17:35, Noam Postavsky <[hidden email]> wrote:
>
> On Mon, Oct 9, 2017 at 10:03 PM, Jean-Christophe Helary
> <[hidden email]> wrote:
>
>>> Update to latest master and try again.
>>
>> Isn't what
>>
>> git clone -b master git://git.sv.gnu.org/emacs.git
>>
>> is supposed to do ?
>
> Yes.  But "latest" generally means something different every time you
> do it. When you did it before, the "latest" commit was broken, and now
> it's not (I hope).

I don't know what "now" is for you, but I've tried that a number of times in the past 24 hours and it still does not work.

I think it's Stephan who suggested a while back that when a build failed for no obvious reasons, just starting from scratch was the best way to fix the issue. So I just erased my emacs directory and did the git clone dance, but this time without success.

Last attempt was 10mn ago.

Jean-Christophe
Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Jean-Christophe Helary
In reply to this post by Andreas Schwab


> On Oct 10, 2017, at 17:47, Andreas Schwab <[hidden email]> wrote:
>
> On Okt 10 2017, Jean-Christophe Helary <[hidden email]> wrote:
>
>> Isn't what
>>
>> git clone -b master git://git.sv.gnu.org/emacs.git <git://git.sv.gnu.org/emacs.git>
>>
>> is supposed to do ?
>
> You are supposed to use git pull.

Not when you've trashed your emacs directory if I understand correctly.

I usually do pulls, once a day, but then I got this error that I could not fix so I decided to restart from scratch and not I can't get a clone that works.

Jean-Christophe
Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Andreas Schwab
On Okt 10 2017, Jean-Christophe Helary <[hidden email]> wrote:

> I usually do pulls, once a day, but then I got this error that I could not fix so I decided to restart from scratch and not I can't get a clone that works.

Restart from scratch means make bootstrap.

Andreas.

--
Andreas Schwab, SUSE Labs, [hidden email]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Jean-Christophe Helary


> On Oct 10, 2017, at 17:57, Andreas Schwab <[hidden email]> wrote:
>
> On Okt 10 2017, Jean-Christophe Helary <[hidden email]> wrote:
>
>> I usually do pulls, once a day, but then I got this error that I could not fix so I decided to restart from scratch and not I can't get a clone that works.
>
> Restart from scratch means make bootstrap.

Ok, so is a clone of the repository supposed to give me code that properly builds, or not ?

https://savannah.gnu.org/projects/emacs/

Jean-Christophe
Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Noam Postavsky-2
In reply to this post by Jean-Christophe Helary
On Tue, Oct 10, 2017 at 4:51 AM, Jean-Christophe Helary
<[hidden email]> wrote:

> I don't know what "now" is for you, but I've tried that a number of times in the past 24 hours and it still does not work.

Ah, okay. It was reported that updating fixed an error which seems the
same as what you posted:
https://debbugs.gnu.org/cgi/bugreport.cgi?users=emacs;bug=28760#11

Perhaps you have something else though?

> I think it's Stephan who suggested a while back that when a build failed for no obvious reasons, just starting from scratch was the best way to fix the issue. So I just erased my emacs directory and did the git clone dance, but this time without success.

Cloning from scratch is overkill, 'git clean -fx' will delete
everything not directly from git. That way you don't have to download
everything from the beginning.

Andreas' suggestion of 'make bootstrap' is *usually* enough, but not
in every case (see INSTALL.REPO for a couple of counter-examples).

> Last attempt was 10mn ago.

Which revision are you at? 'git log -1'

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Phillip Lord-3
Noam Postavsky <[hidden email]> writes:

> On Tue, Oct 10, 2017 at 4:51 AM, Jean-Christophe Helary
> <[hidden email]> wrote:
>
>> I don't know what "now" is for you, but I've tried that a number of
>> times in the past 24 hours and it still does not work.
>
> Ah, okay. It was reported that updating fixed an error which seems the
> same as what you posted:
> https://debbugs.gnu.org/cgi/bugreport.cgi?users=emacs;bug=28760#11
>
> Perhaps you have something else though?
>
>> I think it's Stephan who suggested a while back that when a build
>> failed for no obvious reasons, just starting from scratch was the
>> best way to fix the issue. So I just erased my emacs directory and
>> did the git clone dance, but this time without success.
>
> Cloning from scratch is overkill, 'git clean -fx' will delete
> everything not directly from git. That way you don't have to download
> everything from the beginning.

git clean -xdf

I got hit by this once. Need to kill the directories as well.

We could add that to top-level Makefile.

Phil

Reply | Threaded
Open this post in threaded view
|

Re: error building emacs from clean clone

Noam Postavsky-2
On Tue, Oct 10, 2017 at 5:32 AM, Phillip Lord
<[hidden email]> wrote:

>> Cloning from scratch is overkill, 'git clean -fx' will delete
>> everything not directly from git. That way you don't have to download
>> everything from the beginning.
>
> git clean -xdf
>
> I got hit by this once. Need to kill the directories as well.

Oh thanks, updated INSTALL.REPO.

> We could add that to top-level Makefile.

I think it's a bit too dangerous for the Makefile.