Modify

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#20134 closed defect (fixed)

Chaos Calmer toolchain broken on Centos by changeset 46395

Reported by: anonymous Owned by: developers
Priority: highest Milestone: Chaos Calmer 15.05
Component: toolchain Version: Trunk
Keywords: Cc:

Description

Chaos Calmer toolchain broken on Centos 7 x86_64 by changeset 46395
/changeset/46395.html
Reversing the changeset fixes the issue.

Error Message below

. /home/user/alpha/include/shell.sh; gzip -dc /home/user/alpha/dl/mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz | tar -C /home/user/alpha/build_dir/host/mtd-utils-1.5.1/.. -xf - 
tar: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
ls: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)

Applying ./patches/100-sscanf_fix.patch using plaintext: 
patching file mkfs.jffs2.c

Applying ./patches/110-portability.patch using plaintext: 
patching file compr_lzo.c
patching file compr_zlib.c
patching file rbtree.h
patching file include/mtd/ubi-media.h
patching file mkfs.ubifs/mkfs.ubifs.h
patching file mkfs.ubifs/mkfs.ubifs.c
patching file mkfs.ubifs/devtable.c
patching file include/common.h
patching file include/mtd/ubifs-media.h

Applying ./patches/130-lzma_jffs2.patch using plaintext: 
patching file Makefile
patching file compr.c
patching file compr.h
patching file compr_lzma.c
patching file include/linux/jffs2.h
patching file include/linux/lzma.h
patching file include/linux/lzma/LzFind.h
patching file include/linux/lzma/LzHash.h
patching file include/linux/lzma/LzmaDec.h
patching file include/linux/lzma/LzmaEnc.h
patching file include/linux/lzma/Types.h
patching file lzma/LzFind.c
patching file lzma/LzmaDec.c
patching file lzma/LzmaEnc.c
patching file mkfs.jffs2.c

Applying ./patches/134-freebsd_loff_t.patch using plaintext: 
patching file include/mtd/mtd-abi.h

Applying ./patches/135-mkubifs_optional_lzo.patch using plaintext: 
patching file mkfs.ubifs/compr.c
patching file Makefile

Applying ./patches/136-mkfs.ubifs-xz-support.patch using plaintext: 
patching file Makefile
patching file mkfs.ubifs/compr.c
patching file mkfs.ubifs/compr.h
patching file mkfs.ubifs/mkfs.ubifs.c
patching file mkfs.ubifs/mkfs.ubifs.h
patching file include/mtd/ubifs-media.h

Applying ./patches/137-no_extern_inline.patch using plaintext: 
patching file mkfs.ubifs/hashtable/hashtable_itr.c
patching file mkfs.ubifs/hashtable/hashtable_itr.h

Applying ./patches/200-libubigen-add-ubigen_write_terminator-function.patch using plaintext: 
patching file ubi-utils/libubigen.c
patching file ubi-utils/include/libubigen.h

Applying ./patches/201-ubinize-add-terminator-support.patch using plaintext: 
patching file ubi-utils/ubinize.c

Applying ./patches/300-libfec_use_standard_unsigned_long.patch using plaintext: 
patching file lib/libfec.c
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
touch /home/user/alpha/build_dir/host/mtd-utils-1.5.1/.prepared1eb06e36d94a0179575437fcac6abc54
(cd /home/user/alpha/build_dir/host/mtd-utils-1.5.1/; if [ -x configure ]; then cp -fpR /home/user/alpha/scripts/config.{guess,sub} /home/user/alpha/build_dir/host/mtd-utils-1.5.1// &&  bash ./configure CC="gcc" CFLAGS="-O2 -I/home/user/alpha/staging_dir/host/include -I/home/user/alpha/staging_dir/host/usr/include -I/home/user/alpha/staging_dir/host/include/e2fsprogs" CPPFLAGS="-I/home/user/alpha/staging_dir/host/include -I/home/user/alpha/staging_dir/host/usr/include" LDFLAGS="-L/home/user/alpha/staging_dir/host/lib -L/home/user/alpha/staging_dir/host/usr/lib" SHELL="/usr/bin/env bash" --target=x86_64-redhat-linux --host=x86_64-redhat-linux --build=x86_64-redhat-linux --program-prefix="" --program-suffix="" --prefix=/home/user/alpha/staging_dir/host --exec-prefix=/home/user/alpha/staging_dir/host --sysconfdir=/home/user/alpha/staging_dir/host/etc --localstatedir=/home/user/alpha/staging_dir/host/var --sbindir=/home/user/alpha/staging_dir/host/bin ; fi )
touch /home/user/alpha/build_dir/host/mtd-utils-1.5.1/.configured
make -C /home/user/alpha/build_dir/host/mtd-utils-1.5.1 CFLAGS="-O2 -I/home/user/alpha/staging_dir/host/include -I/home/user/alpha/staging_dir/host/usr/include -I/home/user/alpha/staging_dir/host/include/e2fsprogs -I/home/user/alpha/build_dir/host/mtd-utils-1.5.1/include -L/home/user/alpha/build_dir/host/mtd-utils-1.5.1 -L/home/user/alpha/staging_dir/host/lib -DNO_NATIVE_SUPPORT" LDFLAGS="-L/home/user/alpha/staging_dir/host/lib -L/home/user/alpha/staging_dir/host/usr/lib" WITHOUT_LZO=1 WITHOUT_XATTR=1 SUBDIRS="" BUILDDIR="/home/user/alpha/build_dir/host/mtd-utils-1.5.1" TARGETS="mkfs.jffs2 ubi-utils/ubinize mkfs.ubifs/mkfs.ubifs"
make[4]: Entering directory `/home/user/alpha/build_dir/host/mtd-utils-1.5.1'
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  CHK     include/version.h
mv: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  CC      mkfs.jffs2.o
  CC      compr_rtime.o
  CC      compr_zlib.o
  CC      compr_lzma.o
compr_lzma.c:95:2: warning: initialization from incompatible pointer type [enabled by default]
  .compress = &jffs2_lzma_compress,
  ^
compr_lzma.c:95:2: warning: (near initialization for 'jffs2_lzma_comp.compress') [enabled by default]
compr_lzma.c:96:2: warning: initialization from incompatible pointer type [enabled by default]
  .decompress = &jffs2_lzma_decompress,
  ^
compr_lzma.c:96:2: warning: (near initialization for 'jffs2_lzma_comp.decompress') [enabled by default]
  CC      lzma/LzFind.o
  CC      lzma/LzmaEnc.o
  CC      lzma/LzmaDec.o
  CC      compr.o
  CC      rbtree.o
  CC      lib/libmtd.o
  CC      lib/libmtd_legacy.o
  CC      lib/libcrc32.o
  CC      lib/libfec.o
  AR      lib/libmtd.a
  LD      mkfs.jffs2
  CC      ubi-utils/ubinize.o
  CC      ubi-utils/libubigen.o
  AR      ubi-utils/libubigen.a
  CC      ubi-utils/libiniparser.o
  CC      ubi-utils/dictionary.o
  AR      ubi-utils/libiniparser.a
  CC      ubi-utils/libubi.o
  AR      ubi-utils/libubi.a
  CC      ubi-utils/ubiutils-common.o
  LD      ubi-utils/ubinize
  CC      mkfs.ubifs/mkfs.ubifs.o
  CC      mkfs.ubifs/crc16.o
  CC      mkfs.ubifs/lpt.o
  CC      mkfs.ubifs/compr.o
  CC      mkfs.ubifs/devtable.o
  CC      mkfs.ubifs/hashtable/hashtable.o
  CC      mkfs.ubifs/hashtable/hashtable_itr.o
  LD      mkfs.ubifs/mkfs.ubifs
make[4]: Leaving directory `/home/user/alpha/build_dir/host/mtd-utils-1.5.1'
touch /home/user/alpha/build_dir/host/mtd-utils-1.5.1/.built
make[3]: Leaving directory `/home/user/alpha/tools/mtd-utils'
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[3]: Entering directory `/home/user/alpha/tools/mtd-utils'
cp -fpR /home/user/alpha/build_dir/host/mtd-utils-1.5.1/mkfs.jffs2 /home/user/alpha/build_dir/host/mtd-utils-1.5.1/mkfs.ubifs/mkfs.ubifs /home/user/alpha/build_dir/host/mtd-utils-1.5.1/ubi-utils/ubinize /home/user/alpha/staging_dir/host/bin/
cp: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
mkdir -p /home/user/alpha/staging_dir/host/stamp
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
touch /home/user/alpha/build_dir/host/mtd-utils-1.5.1/.built
touch /home/user/alpha/staging_dir/host/stamp/.mtd-utils_installed
make[3]: Leaving directory `/home/user/alpha/tools/mtd-utils'
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[3]: Entering directory `/home/user/alpha/tools/mkimage'
make -C /home/user/alpha/build_dir/host/u-boot-2014.10 defconfig
make[4]: Entering directory `/home/user/alpha/build_dir/host/u-boot-2014.10'
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
#
# configuration written to .config
#
*** Default configuration is based on 'sandbox_defconfig'
make[4]: Leaving directory `/home/user/alpha/build_dir/host/u-boot-2014.10'
make -C /home/user/alpha/build_dir/host/u-boot-2014.10 tools-only
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[4]: Entering directory `/home/user/alpha/build_dir/host/u-boot-2014.10'
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
make[4]: Leaving directory `/home/user/alpha/build_dir/host/u-boot-2014.10'
find: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[4]: sdl-config: Command not found
make[4]: sdl-config: Command not found
make[4]: sdl-config: Command not found
  CHK     include/config/uboot.release
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[4]: sdl-config: Command not found
  CHK     include/generated/version_autogenerated.h
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[4]: sdl-config: Command not found
  CHK     include/generated/timestamp_autogenerated.h
mkdir: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  UPD     include/generated/timestamp_autogenerated.h
mv: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
make[4]: sdl-config: Command not found
  HOSTCC  tools/dumpimage.o
mv: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  HOSTCC  tools/image-host.o
mv: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  HOSTCC  tools/mkenvimage.o
mv: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  HOSTCC  tools/mkimage.o
mv: /home/user/alpha/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
/lib64/libselinux.so.1: undefined reference to `lzma_code@XZ_5.0'
/lib64/libselinux.so.1: undefined reference to `lzma_stream_decoder@XZ_5.0'
/lib64/libselinux.so.1: undefined reference to `lzma_end@XZ_5.0'
collect2: error: ld returned 1 exit status
make[5]: *** [tools/dumpimage] Error 1
make[4]: *** [tools-only] Error 2
make[3]: *** [/home/user/alpha/build_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory `/home/user/alpha/tools/mkimage'
make[2]: *** [tools/mkimage/compile] Error 2
make[2]: Leaving directory `/home/user/alpha'
make[1]: *** [/home/user/alpha/staging_dir/target-mips_24kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2
make[1]: Leaving directory `/home/user/alpha'
make: *** [world] Error 2

Attachments (0)

Change History (14)

comment:1 Changed 3 years ago by jow

Hmm. Reverting this fix will cause other systems to fail. Need to think about a better solution.

comment:2 Changed 3 years ago by anonymous

Trunk is broken too, on Centos/RHEL

comment:3 Changed 3 years ago by g.ivanov@…

This truoble affects 64-bit version RHEL7/CentOS7. The Caos Calmer normally compiled in RHEL6/CentOS6 i386. In my opinion, the reason is near issues or features of selinux realization in 64-bit versions RHEL7.

comment:4 Changed 3 years ago by anonymous

In case it helps, I am running 64 bit Centos and have this problem on trunk.

I have SELINUX=disabled. I also have selinux all, but removed:
[root@dev01 trunk]# rpm -qa | grep seli
libselinux-2.2.2-6.el7.x86_64
libselinux-devel-2.2.2-6.el7.x86_64

Despite disabled selinux, I do get some weird error messages:

[user00@dev01 trunk]$ ./scripts/feeds install -a
svn: /home/user00/openwrt/trunk/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
mkdir: /home/user00/openwrt/trunk/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user00/openwrt/trunk/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
find: /home/user00/openwrt/trunk/staging_dir/host/lib/liblzma.so.5: no version information available (required by /lib64/libselinux.so.1)
Installing all packages from feed packages.

comment:5 Changed 2 years ago by kd4yal@…

Having same issue any progress with solving this?

comment:6 Changed 2 years ago by kd4yal@…

Having same issue any progress with solving this?

comment:7 follow-up: Changed 2 years ago by tomxieup@…

I've found a workroud:
1 sudo yum install xz-libs.i686
2 ln -sf /lib/liblzma.so.5.0.99 #OPENWRT_ROOT#/staging_dir/host/lib/liblzma.so.5

comment:8 in reply to: ↑ 7 ; follow-up: Changed 2 years ago by anonymous

Replying to tomxieup@…:

I've found a workroud:
1 sudo yum install xz-libs.i686
2 ln -sf /lib/liblzma.so.5.0.99 #OPENWRT_ROOT#/staging_dir/host/lib/liblzma.so.5

thank you very much
it solve my proplem

comment:9 in reply to: ↑ 8 Changed 2 years ago by anonymous

Replying to anonymous:

Replying to tomxieup@…:

I've found a workroud:
1 sudo yum install xz-libs.i686
2 ln -sf /lib/liblzma.so.5.0.99 #OPENWRT_ROOT#/staging_dir/host/lib/liblzma.so.5

thank you very much
it solve my proplem

same error........ :(

comment:10 Changed 2 years ago by anonymous

And the same thing happens on F20.

comment:11 Changed 2 years ago by hauke

  • Resolution set to fixed
  • Status changed from new to closed

This should be fixed in trunk in r46603. I will try to backport this to CC.

comment:12 Changed 2 years ago by kd4yal@…

revision 46695 still broken

comment:13 Changed 2 years ago by kd4yal@…

revision 46695 still broken

comment:14 Changed 2 years ago by hauke

Could you please clean the build before (make dirclean) and build again. It could be that a clean build is needed for such a change. If you still see the error please post it here again. Are you using CentOS 7 or RedHat 7?

Last edited 2 years ago by hauke (previous) (diff)

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.