unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Failed to compile the emacs latest git master version on Ubuntu 20.10.
@ 2020-12-11  9:59 Hongyi Zhao
  2020-12-11 10:09 ` Gregory Heytings via Emacs development discussions.
  2020-12-11 12:05 ` Eli Zaretskii
  0 siblings, 2 replies; 11+ messages in thread
From: Hongyi Zhao @ 2020-12-11  9:59 UTC (permalink / raw)
  To: Emacs-devel

On Ubuntu 20.10, I try to compile the emacs latest git master version
but meet the following error:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
/usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:655: temacs] Error 1
make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
make: *** [Makefile:424: src] Error 2

Any hints for fixing this problem?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11  9:59 Failed to compile the emacs latest git master version on Ubuntu 20.10 Hongyi Zhao
@ 2020-12-11 10:09 ` Gregory Heytings via Emacs development discussions.
  2020-12-11 10:36   ` Hongyi Zhao
  2020-12-11 12:05 ` Eli Zaretskii
  1 sibling, 1 reply; 11+ messages in thread
From: Gregory Heytings via Emacs development discussions. @ 2020-12-11 10:09 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs-devel


>
> On Ubuntu 20.10, I try to compile the emacs latest git master version 
> but meet the following error:
>
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
> undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
> DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:655: temacs] Error 1
> make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
> make: *** [Makefile:424: src] Error 2
>
> Any hints for fixing this problem?
>

Your libthai library is apparently not recent enough for your libm17n 
library.  "apt update && apt install libthai0" should fix this.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 10:09 ` Gregory Heytings via Emacs development discussions.
@ 2020-12-11 10:36   ` Hongyi Zhao
  2020-12-11 11:58     ` Gregory Heytings via Emacs development discussions.
  0 siblings, 1 reply; 11+ messages in thread
From: Hongyi Zhao @ 2020-12-11 10:36 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: Emacs-devel

On Fri, Dec 11, 2020 at 5:10 AM Gregory Heytings <ghe@sdf.org> wrote:
>
>
> >
> > On Ubuntu 20.10, I try to compile the emacs latest git master version
> > but meet the following error:
> >
> > /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
> > undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
> > /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
> > DSO missing from command line
> > collect2: error: ld returned 1 exit status
> > make[1]: *** [Makefile:655: temacs] Error 1
> > make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
> > make: *** [Makefile:424: src] Error 2
> >
> > Any hints for fixing this problem?
> >
>
> Your libthai library is apparently not recent enough for your libm17n
> library.  "apt update && apt install libthai0" should fix this.

I've installed the latest version of the above package as shown below
but still meet the same error message:

$ dpkg -l libthai0 | grep ^ii
ii  libthai0:amd64 0.1.28-3     amd64        Thai language support library

Furthermore, I compiled and installed the latest git master version of
libthai. See following for more info.

$ git clone https://github.com/tlwg/libthai.git tlwg/libthai.git
$ sudo apt-get build-dep libthai
$ cd tlwg/libthai.git
$ ./autogen.sh
$ ./configure
$ make -j44
$ sudo make install

Then rebuild emacs from scratch but still will meet the same error as
shown below:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
/usr/bin/ld: /usr/local/lib/libthai.so.0: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:655: temacs] Error 1
make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
make: *** [Makefile:424: src] Error 2

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 10:36   ` Hongyi Zhao
@ 2020-12-11 11:58     ` Gregory Heytings via Emacs development discussions.
  2020-12-11 14:05       ` Hongyi Zhao
  0 siblings, 1 reply; 11+ messages in thread
From: Gregory Heytings via Emacs development discussions. @ 2020-12-11 11:58 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs-devel


>>> On Ubuntu 20.10, I try to compile the emacs latest git master version 
>>> but meet the following error:
>>>
>>> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
>>> undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
>>> /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
>>> DSO missing from command line
>>> collect2: error: ld returned 1 exit status
>>> make[1]: *** [Makefile:655: temacs] Error 1
>>> make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
>>> make: *** [Makefile:424: src] Error 2
>>>
>>> Any hints for fixing this problem?
>>
>> Your libthai library is apparently not recent enough for your libm17n 
>> library.  "apt update && apt install libthai0" should fix this.
>
> I've installed the latest version of the above package as shown below 
> but still meet the same error message:
>
> $ dpkg -l libthai0 | grep ^ii
> ii  libthai0:amd64 0.1.28-3     amd64        Thai language support library
>

In that case you should try to update libm17n...



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11  9:59 Failed to compile the emacs latest git master version on Ubuntu 20.10 Hongyi Zhao
  2020-12-11 10:09 ` Gregory Heytings via Emacs development discussions.
@ 2020-12-11 12:05 ` Eli Zaretskii
  2020-12-11 14:29   ` Hongyi Zhao
  1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2020-12-11 12:05 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Fri, 11 Dec 2020 04:59:20 -0500
> 
> On Ubuntu 20.10, I try to compile the emacs latest git master version
> but meet the following error:
> 
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
> undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
> /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
> DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:655: temacs] Error 1
> make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
> make: *** [Makefile:424: src] Error 2
> 
> Any hints for fixing this problem?

Install HarfBuzz, so that Emacs uses that for text shaping.  If you
already have HarfBuzz installed, reconfigure --without-m17n-flt, so
that the problematic library is not compiled into Emacs (you don't
need it if you have HarfBuzz).



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 11:58     ` Gregory Heytings via Emacs development discussions.
@ 2020-12-11 14:05       ` Hongyi Zhao
  2020-12-11 14:21         ` Gregory Heytings via Emacs development discussions.
  0 siblings, 1 reply; 11+ messages in thread
From: Hongyi Zhao @ 2020-12-11 14:05 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: Emacs-devel

On Fri, Dec 11, 2020 at 6:58 AM Gregory Heytings <ghe@sdf.org> wrote:
>
>
> >>> On Ubuntu 20.10, I try to compile the emacs latest git master version
> >>> but meet the following error:
> >>>
> >>> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
> >>> undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
> >>> /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
> >>> DSO missing from command line
> >>> collect2: error: ld returned 1 exit status
> >>> make[1]: *** [Makefile:655: temacs] Error 1
> >>> make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
> >>> make: *** [Makefile:424: src] Error 2
> >>>
> >>> Any hints for fixing this problem?
> >>
> >> Your libthai library is apparently not recent enough for your libm17n
> >> library.  "apt update && apt install libthai0" should fix this.
> >
> > I've installed the latest version of the above package as shown below
> > but still meet the same error message:
> >
> > $ dpkg -l libthai0 | grep ^ii
> > ii  libthai0:amd64 0.1.28-3     amd64        Thai language support library
> >
>
> In that case you should try to update libm17n...

I've checked the official git repo of m17n-lib located at:
http://git.savannah.gnu.org/cgit/m17n/m17n-lib.git, and find that the
latest version of libm17n already been installed on the system:

$ dpkg -l | grep libm17n
ii  libm17n-0:amd64                            1.8.0-2
            amd64        multilingual text processing library -
runtime
ii  libm17n-dev:amd64                          1.8.0-2
            amd64        multilingual text processing library -
development

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 14:05       ` Hongyi Zhao
@ 2020-12-11 14:21         ` Gregory Heytings via Emacs development discussions.
  2020-12-11 14:37           ` Eli Zaretskii
  2020-12-11 14:43           ` Hongyi Zhao
  0 siblings, 2 replies; 11+ messages in thread
From: Gregory Heytings via Emacs development discussions. @ 2020-12-11 14:21 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs-devel


Then I'd suggest to use --without-m17n-flt as Eli says.  It seems however 
that HarfBuzz and m17n are not incompatible, on my computer configure 
outputs:

   Does Emacs use HarfBuzz?                                yes
   Does Emacs use -lm17n-flt?                              yes

FWIW, I just compiled the lastest master (004d7e97e2) and have the same 
libraries installed:

ii libm17n-0:amd64   1.8.0-2
ii libm17n-dev:amd64 1.8.0-2
ii libthai-data      0.1.28-3
ii libthai-dev:amd64 0.1.28-3
ii libthai0:amd64    0.1.28-3

Are the libthai-data and libthai-dev:amd64 packages installed on your 
machine?



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 12:05 ` Eli Zaretskii
@ 2020-12-11 14:29   ` Hongyi Zhao
  2020-12-11 14:39     ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Hongyi Zhao @ 2020-12-11 14:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs-devel

On Fri, Dec 11, 2020 at 7:05 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Fri, 11 Dec 2020 04:59:20 -0500
> >
> > On Ubuntu 20.10, I try to compile the emacs latest git master version
> > but meet the following error:
> >
> > /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
> > undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
> > /usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
> > DSO missing from command line
> > collect2: error: ld returned 1 exit status
> > make[1]: *** [Makefile:655: temacs] Error 1
> > make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
> > make: *** [Makefile:424: src] Error 2
> >
> > Any hints for fixing this problem?
>
> Install HarfBuzz, so that Emacs uses that for text shaping.  If you
> already have HarfBuzz installed, reconfigure --without-m17n-flt, so
> that the problematic library is not compiled into Emacs (you don't
> need it if you have HarfBuzz).

Thanks for your valuable notes. It does the trick. And furthermore, it
seems that HarfBuzz is more powerful, feature-rich and more actively
maintained currently.

Thanks again.
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 14:21         ` Gregory Heytings via Emacs development discussions.
@ 2020-12-11 14:37           ` Eli Zaretskii
  2020-12-11 14:43           ` Hongyi Zhao
  1 sibling, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2020-12-11 14:37 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: hongyi.zhao, Emacs-devel

> Date: Fri, 11 Dec 2020 14:21:56 +0000
> Cc: Emacs-devel@gnu.org
> From: Gregory Heytings via "Emacs development discussions." <emacs-devel@gnu.org>
> 
> It seems however that HarfBuzz and m17n are not incompatible, on my
> computer configure outputs:
> 
>    Does Emacs use HarfBuzz?                                yes
>    Does Emacs use -lm17n-flt?                              yes

No, they are not incompatible, which is why we by default allow
building Emacs with support for both.  But there should be no real
need to use m17n-flt if HarfBuzz is available, as we aren't aware of
any use cases when HarfBuzz does a worse job.  (Using m17n-flt in a
build that has it compiled in requires the user to specify non-default
frame parameters when creating frames, otherwise it will not be used.)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 14:29   ` Hongyi Zhao
@ 2020-12-11 14:39     ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2020-12-11 14:39 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Emacs-devel

> From: Hongyi Zhao <hongyi.zhao@gmail.com>
> Date: Fri, 11 Dec 2020 09:29:44 -0500
> Cc: Emacs-devel@gnu.org
> 
> Thanks for your valuable notes. It does the trick.

You are welcome.

> And furthermore, it seems that HarfBuzz is more powerful,
> feature-rich and more actively maintained currently.

Indeed, which is why we are moving away from libm17n-flt and towards
using HarfBuzz as our main text-shaping engine.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Failed to compile the emacs latest git master version on Ubuntu 20.10.
  2020-12-11 14:21         ` Gregory Heytings via Emacs development discussions.
  2020-12-11 14:37           ` Eli Zaretskii
@ 2020-12-11 14:43           ` Hongyi Zhao
  1 sibling, 0 replies; 11+ messages in thread
From: Hongyi Zhao @ 2020-12-11 14:43 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: Emacs-devel

On Fri, Dec 11, 2020 at 9:22 AM Gregory Heytings <ghe@sdf.org> wrote:
>
>
> Then I'd suggest to use --without-m17n-flt as Eli says.  It seems however
> that HarfBuzz and m17n are not incompatible, on my computer configure
> outputs:
>
>    Does Emacs use HarfBuzz?                                yes
>    Does Emacs use -lm17n-flt?                              yes

I see the same configure outputs if don't use the if I don't use the
--without-m17n-flt configure option.

But the compiling will fail with the error reported here:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/libm17n-core.a(mtext-wseg.o):
undefined reference to symbol 'th_brk@@LIBTHAI_0.1'
/usr/bin/ld: /lib/x86_64-linux-gnu/libthai.so.0: error adding symbols:
DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:655: temacs] Error 1
make[1]: Leaving directory '/home/werner/Public/editor/emacs/emacs.git/src'
make: *** [Makefile:424: src] Error 2

The emacs git master version:

$ git log -1
commit 49a4f06b0675a4a27db1ce5380c02b5043e2d322 (HEAD -> master,
origin/master, origin/HEAD)
Author: Lars Ingebrigtsen <larsi@gnus.org>
Date:   Fri Dec 11 15:21:44 2020 +0100

    Fix object-interval tests

    * test/src/fns-tests.el (object-intervals): Fix tests.


>
> FWIW, I just compiled the lastest master (004d7e97e2) and have the same
> libraries installed:

But I can't compile emacs successfully even with these libraries
installed as shown below if I don't use the  --without-m17n-flt
configure option.

>
> ii libm17n-0:amd64   1.8.0-2
> ii libm17n-dev:amd64 1.8.0-2
> ii libthai-data      0.1.28-3
> ii libthai-dev:amd64 0.1.28-3
> ii libthai0:amd64    0.1.28-3
>
> Are the libthai-data and libthai-dev:amd64 packages installed on your
> machine?

See following for more information:

$ dpkg -l | awk '$2 ~/^libthai/{print $2,$3 }'
libthai-data 0.1.28-3
libthai-dev:amd64 0.1.28-3
libthai-doc 0.1.28-3
libthai0:amd64 0.1.28-3

Regards,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-12-11 14:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11  9:59 Failed to compile the emacs latest git master version on Ubuntu 20.10 Hongyi Zhao
2020-12-11 10:09 ` Gregory Heytings via Emacs development discussions.
2020-12-11 10:36   ` Hongyi Zhao
2020-12-11 11:58     ` Gregory Heytings via Emacs development discussions.
2020-12-11 14:05       ` Hongyi Zhao
2020-12-11 14:21         ` Gregory Heytings via Emacs development discussions.
2020-12-11 14:37           ` Eli Zaretskii
2020-12-11 14:43           ` Hongyi Zhao
2020-12-11 12:05 ` Eli Zaretskii
2020-12-11 14:29   ` Hongyi Zhao
2020-12-11 14:39     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).