[Bug 1836064] Re: linux-5.2 (?) breaks the c-t-b builds

Seth Forshee seth.forshee+lp at canonical.com
Wed Jul 10 13:47:11 UTC 2019


I can confirm that a definition of __NR_osf_shmat was added during the
5.1 cycle:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=12b57c5c70f397a9410411d4e348096edada20f9

Looks like a fix has been applied to upstream glibc:

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d5ecee822e72a2fd156338ab2be2f2e70a1da55a

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1836064

Title:
  linux-5.2 (?) breaks the c-t-b builds

Status in glibc package in Ubuntu:
  New
Status in linux package in Ubuntu:
  Incomplete

Bug description:
  as seen in 
  https://launchpad.net/ubuntu/+source/cross-toolchain-base-ports/30ubuntu2/+build/17249410

  the c-t-b-ports package ftbfs:

  /bin/bash ../scripts/move-if-change /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/gnu/lib-names.T /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/gnu/lib-names.h
  touch /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/gnu/lib-names.stmp
  if test -r /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/csu/abi-tag.h.new; then mv -f /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/csu/abi-tag.h.new /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/csu/abi-tag.h; \
  else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
  In file included from <stdin>:1:
  ../sysdeps/unix/sysv/linux/alpha/sysdep.h:54: error: "__NR_osf_shmat" redefined [-Werror]
   #define __NR_osf_shmat  209
   
  In file included from ../sysdeps/unix/sysv/linux/sys/syscall.h:24,
                   from ../sysdeps/unix/sysdep.h:20,
                   from ../sysdeps/unix/alpha/sysdep.h:19,
                   from ../sysdeps/unix/sysv/linux/alpha/sysdep.h:29,
                   from <stdin>:1:
  /<<PKGBUILDDIR>>/glibc-2.29/debian/include/asm/unistd.h:8: note: this is the location of the previous definition
   #define __NR_osf_shmat __NR_shmat
   
  cc1: all warnings being treated as errors
  Traceback (most recent call last):
    File "../scripts/gen-as-const.py", line 120, in <module>
      main()
    File "../scripts/gen-as-const.py", line 116, in main
      consts = glibcextract.compute_c_consts(sym_data, args.cc)
    File "/<<PKGBUILDDIR>>/glibc-2.29/scripts/glibcextract.py", line 62, in compute_c_consts
      subprocess.check_call(cmd, shell=True)
    File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command 'alpha-linux-gnu-gcc-8 -no-pie -fno-PIE -std=gnu11 -fgnu89-inline  -pipe -O2 -g -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes -Wold-style-definition -fmath-errno -mlong-double-128 -mieee -mfp-rounding-mode=d    -ftls-model=initial-exec   -U_FORTIFY_SOURCE -isystem /<<PKGBUILDDIR>>/glibc-2.29/debian/include  -I../include -I/<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/csu  -I/<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc  -I../sysdeps/unix/sysv/linux/alpha/alpha  -I../sysdeps/unix/sysv/linux/alpha/fpu  -I../sysdeps/alpha/fpu  -I../sysdeps/unix/sysv/linux/alpha  -I../sysdeps/alpha/nptl  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/ieee754/ldbl-64-128  -I../sysdeps/ieee754/ldbl-opt  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/alpha  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/alpha  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754/ldbl-128  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /<<PKGBUILDDIR>>/debian/tmp.alpha/usr/bin/../lib/gcc-cross/alpha-linux-gnu/8/include -isystem /<<PKGBUILDDIR>>/debian/tmp.alpha/usr/bin/../lib/gcc-cross/alpha-linux-gnu/8/include-fixed -isystem /<<PKGBUILDDIR>>/glibc-2.29/debian/include  -D_LIBC_REENTRANT -include /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -DTOP_NAMESPACE=glibc -DGEN_AS_CONST_HEADERS                -MD -MP -MF /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/tcb-offsets.h.dT                  -MT '/<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/tcb-offsets.h.d /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/tcb-offsets.h' -S -o /tmp/tmpq06grbcg/test.s -x c - < /tmp/tmpq06grbcg/test.c' returned non-zero exit status 1.
  make[4]: *** [../Makerules:271: /<<PKGBUILDDIR>>/glibc-2.29/build-tree/alpha-libc/tcb-offsets.h] Error 1
  make[4]: Leaving directory '/<<PKGBUILDDIR>>/glibc-2.29/csu'
  make[3]: *** [Makefile:275: csu/subdir_lib] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1836064/+subscriptions



More information about the foundations-bugs mailing list