SliTaz SliTaz Forum

You are not logged in.

#1 2020-06-05 16:38:25

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Unable to compile glibc-dev / glibc-locale

I would to compile glibc and its dependencies. I work from a chroot created with tazdev (last Rolling-core updated)

First, although I don't use the [c]install[/c] option, the cooked packages are installed (this doesn't happen with Rolling-core64). So, I had to modify /usr/bin/cook to avoid this because installing glibc breaks the chroot: messages

[c]busybox: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory[/c]

each time I use cook or tazpkg.

This done,  glibc and glibc-base seem to be compiled and packaged correctly despite some error messages, it is not possible to compile glibc-dev and glibc-locale ([c]ERROR: empty package[/c]).

I compiled a few other packages for test; I can see sometimes some error messages but packages are created.

Where can the problem come from for glibc-dev an glibc-locale?

Offline

#2 2020-06-06 12:02:09

Saipul
Member
Registered: 2011-06-28
Posts: 87

Re: Unable to compile glibc-dev / glibc-locale

Your "output-cook-glibc.txt" containing error with newer binutils from >=2.31:

/tmp/cchDxqrf.s: Assembler messages:

/tmp/cchDxqrf.s: Error: `_obstack@GLIBC_2.0' can't be versioned to common symbol '_obstack_compat'

make[2]: *** [../o-iterator.mk:9: /home/slitaz/wok/glibc/source/glibc-build/malloc/obstack.os] Error 1

make[2]: Leaving directory '/home/slitaz/wok/glibc/source/glibc-2.14.1/malloc'

make[1]: *** [Makefile:221: malloc/subdir_lib] Error 2

make[1]: Leaving directory '/home/slitaz/wok/glibc/source/glibc-2.14.1'

make: *** [Makefile:12: all] Error 2

Use this patch for build with newer binutils:

diff --git a/malloc/obstack.c b/malloc/obstack.c

index 5786da0aa4..c27a422077 100644

--- a/malloc/obstack.c

+++ b/malloc/obstack.c

@@ -116,7 +116,7 @@ int obstack_exit_failure = EXIT_FAILURE;

/* A looong time ago (before 1994, anyway; we're not sure) this global variable

    was used by non-GNU-C macros to avoid multiple evaluation.  The GNU C

    library still exports it because somebody might use it.  */

-struct obstack *_obstack_compat;

+struct obstack *_obstack_compat = 0;

compat_symbol (libc, _obstack_compat, _obstack, GLIBC_2_0);

#  endif

# endif

Offline

#3 2020-06-08 04:49:20

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Unable to compile glibc-dev / glibc-locale

Related thread:

http://forum.slitaz.org/topic/glibc-217-problem#post-48734

Offline

#4 2020-06-10 13:41:32

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Unable to compile glibc-dev / glibc-locale

@ Saipul and mojo,

I'll have a look at it. Thanks a lot at both of you.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]