* Re: Alternatives for reliable build environments for emacs?
2021-10-28 14:38 ` joakim
@ 2021-10-28 14:45 ` Robert Pluim
2021-10-28 15:22 ` joakim
2021-10-28 16:08 ` Eli Zaretskii
` (2 subsequent siblings)
3 siblings, 1 reply; 20+ messages in thread
From: Robert Pluim @ 2021-10-28 14:45 UTC (permalink / raw)
To: joakim; +Cc: Eli Zaretskii, emacs-devel
>>>>> On Thu, 28 Oct 2021 16:38:54 +0200, joakim@verona.se said:
joakim> Eli Zaretskii <eliz@gnu.org> writes:
>>> From: joakim@verona.se
>>> Date: Thu, 28 Oct 2021 14:55:27 +0200
>>>
>>> I'm finding it increasingly difficult to build emacs in my distro,
>>> Fedora(Ok, I havent managed to build emacs using distro dependencies for
>>> a long time)
>>
>> Why? what are the difficulties?
joakim> In my case one of the problems that started the downward spiral was the versions shipped of gnutls in
joakim> fedora which didnt work with emacs.
Thatʼs the first Iʼve heard of it. GnuTLS too old, too new, something else?
joakim> The separate aproach of building all the dependencies emacs need in a
joakim> separate build environment does work, like the Guix aproach.
joakim> I could probably convince guix to do what I want, but guix is also
joakim> fiddly. I was just wondering if somebody else had a solution for a
joakim> reproducible development environment for emacs.
joakim> Maybe I'm the only one facing these difficulties, that's fine I guess.
Debian has always worked ok for me. Although I donʼt target
reproducible builds.
Robert
--
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 14:45 ` Robert Pluim
@ 2021-10-28 15:22 ` joakim
2021-10-28 15:29 ` Robert Pluim
2021-10-29 6:14 ` Po Lu
0 siblings, 2 replies; 20+ messages in thread
From: joakim @ 2021-10-28 15:22 UTC (permalink / raw)
To: Robert Pluim; +Cc: Eli Zaretskii, emacs-devel
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Thu, 28 Oct 2021 16:38:54 +0200, joakim@verona.se said:
>
> joakim> Eli Zaretskii <eliz@gnu.org> writes:
> >>> From: joakim@verona.se
> >>> Date: Thu, 28 Oct 2021 14:55:27 +0200
> >>>
> >>> I'm finding it increasingly difficult to build emacs in my distro,
> >>> Fedora(Ok, I havent managed to build emacs using distro dependencies for
> >>> a long time)
> >>
> >> Why? what are the difficulties?
>
> joakim> In my case one of the problems that started the downward spiral was the versions shipped of gnutls in
> joakim> fedora which didnt work with emacs.
>
> Thatʼs the first Iʼve heard of it. GnuTLS too old, too new, something else?
Too new in Fedora(at the time before I threw in the towel at least).
>
> joakim> The separate aproach of building all the dependencies emacs need in a
> joakim> separate build environment does work, like the Guix aproach.
>
> joakim> I could probably convince guix to do what I want, but guix is also
> joakim> fiddly. I was just wondering if somebody else had a solution for a
> joakim> reproducible development environment for emacs.
>
> joakim> Maybe I'm the only one facing these difficulties, that's fine I guess.
>
> Debian has always worked ok for me. Although I donʼt target
> reproducible builds.
Well, I could likely build emacs just fine in a docker container using
debian as the base, and run the container in my host fedora os. I know
some people do this. This approach is also brittle with how to manage
the src tree for development.
>
> Robert
--
Joakim Verona
joakim@verona.se
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 15:22 ` joakim
@ 2021-10-28 15:29 ` Robert Pluim
2021-10-28 19:09 ` Tassilo Horn
2021-10-29 6:14 ` Po Lu
1 sibling, 1 reply; 20+ messages in thread
From: Robert Pluim @ 2021-10-28 15:29 UTC (permalink / raw)
To: joakim; +Cc: Eli Zaretskii, emacs-devel
>>>>> On Thu, 28 Oct 2021 17:22:39 +0200, joakim@verona.se said:
>> Thatʼs the first Iʼve heard of it. GnuTLS too old, too new, something else?
joakim> Too new in Fedora(at the time before I threw in the towel at least).
OK. Iʼll guess we'll start seeing reports at some point then.
>> Debian has always worked ok for me. Although I donʼt target
>> reproducible builds.
joakim> Well, I could likely build emacs just fine in a docker container using
joakim> debian as the base, and run the container in my host fedora os. I know
joakim> some people do this. This approach is also brittle with how to manage
joakim> the src tree for development.
I just point my dockers at a local directory, then you donʼt need to worry
about volume persistence.
Robert
--
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 15:29 ` Robert Pluim
@ 2021-10-28 19:09 ` Tassilo Horn
0 siblings, 0 replies; 20+ messages in thread
From: Tassilo Horn @ 2021-10-28 19:09 UTC (permalink / raw)
To: Robert Pluim; +Cc: Eli Zaretskii, joakim, emacs-devel
Robert Pluim <rpluim@gmail.com> writes:
> >> Thatʼs the first Iʼve heard of it. GnuTLS too old, too new, something else?
>
> joakim> Too new in Fedora(at the time before I threw in the towel at least).
>
> OK. Iʼll guess we'll start seeing reports at some point then.
FWIW, Arch ships with gnutls 3.7.2 which is the most current "next"
release and emacs builds and works just fine with it. libgnutls-version
reports 30702.
What concretely didn't work with that version?
Bye,
Tassilo
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 15:22 ` joakim
2021-10-28 15:29 ` Robert Pluim
@ 2021-10-29 6:14 ` Po Lu
1 sibling, 0 replies; 20+ messages in thread
From: Po Lu @ 2021-10-29 6:14 UTC (permalink / raw)
To: joakim; +Cc: Robert Pluim, Eli Zaretskii, emacs-devel
joakim@verona.se writes:
> Too new in Fedora(at the time before I threw in the towel at least).
FWIW, Emacs builds fine for me on Fedora 34, with the latest version of
gnutls it includes (3.7.2).
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 14:38 ` joakim
2021-10-28 14:45 ` Robert Pluim
@ 2021-10-28 16:08 ` Eli Zaretskii
2021-10-28 17:37 ` joakim
2021-10-28 20:37 ` Pierre Téchoueyres
2021-10-29 0:29 ` Yuchen Pei
3 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2021-10-28 16:08 UTC (permalink / raw)
To: joakim; +Cc: emacs-devel
> From: joakim@verona.se
> Cc: emacs-devel@gnu.org
> Date: Thu, 28 Oct 2021 16:38:54 +0200
>
> >> I'm finding it increasingly difficult to build emacs in my distro,
> >> Fedora(Ok, I havent managed to build emacs using distro dependencies for
> >> a long time)
> >
> > Why? what are the difficulties?
>
> In my case one of the problems that started the downward spiral was the versions shipped of gnutls in
> fedora which didnt work with emacs.
Which version of GnuTLS was that?
And what was the rest of the spiral?
> The separate aproach of building all the dependencies emacs need in a
> separate build environment does work, like the Guix aproach.
I'd say build all the dependencies that aren't already available, yes.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 16:08 ` Eli Zaretskii
@ 2021-10-28 17:37 ` joakim
0 siblings, 0 replies; 20+ messages in thread
From: joakim @ 2021-10-28 17:37 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
>> From: joakim@verona.se
>> Cc: emacs-devel@gnu.org
>> Date: Thu, 28 Oct 2021 16:38:54 +0200
>>
>> >> I'm finding it increasingly difficult to build emacs in my distro,
>> >> Fedora(Ok, I havent managed to build emacs using distro dependencies for
>> >> a long time)
>> >
>> > Why? what are the difficulties?
>>
>> In my case one of the problems that started the downward spiral was the versions shipped of gnutls in
>> fedora which didnt work with emacs.
>
> Which version of GnuTLS was that?
From my notes at the time:
------------------------------------
working emacs:
libgnutls-version is a variable defined in ‘C source code’.
Its value is 30615
Broken emacs:
libgnutls-version is a variable defined in ‘src/gnutls.c’.
Its value is 30702
------------------------------------
>
> And what was the rest of the spiral?
Mostly tripping over my own feet, until I got tired of it and ejected my
entire build system and switched to Guix, but the limitation with guix
is I find it difficult to use as a build system for an emacs source tree
kludged together with duckt-tape.
To be clear, Emacs is high quality software, I'm astonished it builds in
as many circumstances as it does.
>> The separate aproach of building all the dependencies emacs need in a
>> separate build environment does work, like the Guix aproach.
>
> I'd say build all the dependencies that aren't already available, yes.
Thanks
--
Joakim Verona
joakim@verona.se
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 14:38 ` joakim
2021-10-28 14:45 ` Robert Pluim
2021-10-28 16:08 ` Eli Zaretskii
@ 2021-10-28 20:37 ` Pierre Téchoueyres
2021-10-29 0:29 ` Yuchen Pei
3 siblings, 0 replies; 20+ messages in thread
From: Pierre Téchoueyres @ 2021-10-28 20:37 UTC (permalink / raw)
To: joakim; +Cc: Eli Zaretskii, emacs-devel
Le jeudi 28 oct. 2021 à 16:38, joakim@verona.se a écrit :
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: joakim@verona.se
>>> Date: Thu, 28 Oct 2021 14:55:27 +0200
>>>
>>> I'm finding it increasingly difficult to build emacs in my distro,
>>> Fedora(Ok, I havent managed to build emacs using distro dependencies for
>>> a long time)
>>
>> Why? what are the difficulties?
>
> In my case one of the problems that started the downward spiral was the versions shipped of gnutls in
> fedora which didnt work with emacs.
>
Could you elaborate on what's didn't work when you build Emacs with the
library provided by the Fedora package manager, please ?
For what it worth :
Here I'm on Fedora 34, building Emacs regularly from GIT (branches
27/28/master) and everything is working as expected. I could update
packages, use gnus with gmane, use elfeed etc.
"Here it's work" ™ © Me :-)
> The separate aproach of building all the dependencies emacs need in a
> separate build environment does work, like the Guix aproach.
>
> I could probably convince guix to do what I want, but guix is also
> fiddly. I was just wondering if somebody else had a solution for a
> reproducible development environment for emacs.
>
> Maybe I'm the only one facing these difficulties, that's fine I guess.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-28 14:38 ` joakim
` (2 preceding siblings ...)
2021-10-28 20:37 ` Pierre Téchoueyres
@ 2021-10-29 0:29 ` Yuchen Pei
2021-10-29 6:14 ` Eli Zaretskii
3 siblings, 1 reply; 20+ messages in thread
From: Yuchen Pei @ 2021-10-29 0:29 UTC (permalink / raw)
To: joakim; +Cc: Eli Zaretskii, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 2023 bytes --]
joakim@verona.se writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: joakim@verona.se
>>> Date: Thu, 28 Oct 2021 14:55:27 +0200
>>>
>>> I'm finding it increasingly difficult to build emacs in my
>>> distro,
>>> Fedora(Ok, I havent managed to build emacs using distro
>>> dependencies for
>>> a long time)
>>
>> Why? what are the difficulties?
>
> In my case one of the problems that started the downward spiral
> was the versions shipped of gnutls in
> fedora which didnt work with emacs.
>
> The separate aproach of building all the dependencies emacs need
> in a
> separate build environment does work, like the Guix aproach.
>
> I could probably convince guix to do what I want, but guix is
> also
> fiddly. I was just wondering if somebody else had a solution for
> a
> reproducible development environment for emacs.
>
> Maybe I'm the only one facing these difficulties, that's fine I
> guess.
I was trying to build emacs on a debian + guix system today. The
debian is bare minimum, and guix is used as the main package
manager.
Without `guix shell`, I got stuck at problem with gnutls:
> configure: error: The following required libraries were not
> found:
> gnutls
> Maybe some development libraries/packages are missing?
The version of gnutls installed by guix in the system is 3.6.15.
With `guix shell --development emacs`, gnutls wasn't a problem,
but I got stuck at segfault at bootstrap-emacs.pdmp:
> make[1]: *** [Makefile:858: bootstrap-emacs.pdmp] Segmentation
> fault
> make[1]: Leaving directory '/home/foo/source/emacs/src'
> make: *** [Makefile:450: src] Error 2
On an Arch system where I used to be able to build emacs, it
doesn't build either, and the error is about Recursive load in
international/mule-cmds.el. I haven't looked into this error
because it is a slow system and I'd rather build emacs on the
debian + guix system.
--
Best,
Yuchen
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
<https://ypei.me/assets/ypei-pubkey.txt>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-29 0:29 ` Yuchen Pei
@ 2021-10-29 6:14 ` Eli Zaretskii
2021-11-03 6:53 ` Yuchen Pei
0 siblings, 1 reply; 20+ messages in thread
From: Eli Zaretskii @ 2021-10-29 6:14 UTC (permalink / raw)
To: Yuchen Pei; +Cc: joakim, emacs-devel
> From: Yuchen Pei <hi@ypei.me>
> Date: Fri, 29 Oct 2021 11:29:39 +1100
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
>
> I was trying to build emacs on a debian + guix system today. The
> debian is bare minimum, and guix is used as the main package
> manager.
>
> Without `guix shell`, I got stuck at problem with gnutls:
>
> > configure: error: The following required libraries were not
> > found:
> > gnutls
> > Maybe some development libraries/packages are missing?
>
> The version of gnutls installed by guix in the system is 3.6.15.
It tells you to make sure you have all the development packages
installed, and I think it's the accurate advice. People build Emacs
with that version of GnuTLS without any problems.
> With `guix shell --development emacs`, gnutls wasn't a problem,
> but I got stuck at segfault at bootstrap-emacs.pdmp:
>
> > make[1]: *** [Makefile:858: bootstrap-emacs.pdmp] Segmentation
> > fault
> > make[1]: Leaving directory '/home/foo/source/emacs/src'
> > make: *** [Makefile:450: src] Error 2
If you want help in solving this problem, please submit a bug report
with all the details, including at least the configure command and the
full log of the build from the configure step till the segfault.
config.log would also help.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Alternatives for reliable build environments for emacs?
2021-10-29 6:14 ` Eli Zaretskii
@ 2021-11-03 6:53 ` Yuchen Pei
0 siblings, 0 replies; 20+ messages in thread
From: Yuchen Pei @ 2021-11-03 6:53 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: joakim, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Yuchen Pei <hi@ypei.me>
>> Date: Fri, 29 Oct 2021 11:29:39 +1100
>> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
>>
>> I was trying to build emacs on a debian + guix system today.
>> The
>> debian is bare minimum, and guix is used as the main package
>> manager.
>>
>> Without `guix shell`, I got stuck at problem with gnutls:
>>
>> > configure: error: The following required libraries were not
>> > found:
>> > gnutls
>> > Maybe some development libraries/packages are missing?
>>
>> The version of gnutls installed by guix in the system is
>> 3.6.15.
>
> It tells you to make sure you have all the development packages
> installed, and I think it's the accurate advice. People build
> Emacs
> with that version of GnuTLS without any problems.
I managed to resolve this by installing gnutls-dane.
>
>> With `guix shell --development emacs`, gnutls wasn't a problem,
>> but I got stuck at segfault at bootstrap-emacs.pdmp:
>>
>> > make[1]: *** [Makefile:858: bootstrap-emacs.pdmp]
>> > Segmentation
>> > fault
>> > make[1]: Leaving directory '/home/foo/source/emacs/src'
>> > make: *** [Makefile:450: src] Error 2
>
> If you want help in solving this problem, please submit a bug
> report
> with all the details, including at least the configure command
> and the
> full log of the build from the configure step till the segfault.
> config.log would also help.
This was resolved as in
<https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg02216.html>
<https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg02247.html>.
>
> Thanks.
--
Best,
Yuchen
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
<https://ypei.me/assets/ypei-pubkey.txt>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 243 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread