LINUX.ORG.RU

Glibc не собирается

 , ,


0

1

Собираю Glibc из ABS и вижу это:

 In file included from <command-line>:0:0:
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:121:30: error: inlining failed in call to always_inline 'syslog': function not inlinable
 ldbl_strong_alias (__syslog, syslog)
                              ^
./../include/libc-symbols.h:100:26: note: in definition of macro '_strong_alias'
   extern __typeof (name) aliasname __attribute__ ((alias (#name)));
                          ^~~~~~~~~
../sysdeps/generic/math_ldbl_opt.h:12:44: note: in expansion of macro 'strong_alias'
 #define ldbl_strong_alias(name, aliasname) strong_alias (name, aliasname)
                                            ^~~~~~~~~~~~
../misc/syslog.c:121:1: note: in expansion of macro 'ldbl_strong_alias'
 ldbl_strong_alias (__syslog, syslog)
 ^~~~~~~~~~~~~~~~~
In file included from ../sysdeps/unix/sysv/linux/syslog.c:4:0:
../misc/syslog.c:153:3: note: called from here
   syslog(INTERNALLOG,
   ^~~~~~~~~~~~~~~~~~~
       "syslog: unknown facility/priority: %x", pri);
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/home/egor/LEAF/core/glibc/src/glibc-2.24/build/sysd-rules:531: /home/egor/LEAF/core/glibc/src/glibc-2.24/build/misc/syslog.o] Error 1
make[2]: Leaving directory '/home/egor/LEAF/core/glibc/src/glibc-2.24/misc'
make[1]: *** [Makefile:214: misc/subdir_lib] Error 2
make[1]: Leaving directory '/home/egor/LEAF/core/glibc/src/glibc-2.24'
make: *** [Makefile:9: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Перемещено jollheef из development



Последнее исправление: beastie (всего исправлений: 2)

Вот PKGBUILD

# Maintainer: Egor Mihkailov <zavengamechannel@gmail.com>
pkgname=glibc
pkgver=2.24
pkgrel=1
pkgdesc="The C library used in the GNU system"
arch=('x86_64')
url="http://www.gnu.org/software/libc/"
license=('GPL')
groups=('core')
depends=('linux-api-headers' 'tzdata')
makedepends=('gcc')
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
"hosts"
"resolv.conf"
"nsswitch.conf"
"host.conf"
"ld.so.conf"
"locale-gen"
"locale.gen.txt")
md5sums=("SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP"
"SKIP")

prepare() {
	cd "$pkgname-$pkgver"
	mkdir -v build
        export CC="gcc"
        export CXX="g++"
	export LANGUAGE="C"
	export LC_ALL="C"
	export LANG="C"
}

build() {
	cd "$pkgname-$pkgver"
	cd       build
	../configure --prefix=/usr          \
	             --libexecdir=/usr/lib \
	             --with-headers=/usr/include \
	             --enable-kernel=2.6.32 \
	             --enable-add-ons \
	             --enable-bind-now \
	             --enable-static-nss \
	             --enable-stackguard-randomization \
	             --enable-lock-elision \
	             --enable-multi-arch \
	             --disable-profile \
	             --disable-werror \
	             --without-gd \
	             --enable-obsolete-rpc
	make
}

package() {
	cd "$pkgname-$pkgver"
	install -dm755 ${pkgdir}/etc
	touch ${pkgdir}/etc/ld.so.cache
	make install_root=${pkgdir} install
	cp -v ../nscd/nscd.conf ${pkgdir}/etc/nscd.conf
	mkdir -pv ${pkgdir}/var/cache/nscd
	mkdir -pv ${pkgdir}/usr/lib/locale
	install -m 0644 ${srcdir}/{hosts,resolv.conf,nsswitch.conf,host.conf,ld.so.conf} ${pkgdir}/etc
	mkdir -pv ${pkgdir}/etc/ld.so.conf.d
	install -m755 ${srcdir}/locale-gen ${pkgdir}/usr/bin
	install -m644 ${srcdir}/locale.gen.txt ${pkgdir}/etc/locale.gen
	sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
	${srcdir}/"$pkgname-$pkgver"/localedata/SUPPORTED >> ${pkgdir}/etc/locale.gen
}
xeneloid
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.