public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: Ying Huang <ying.huang@oss.cipunited.com>
Cc: "Andreas K. Huettel" <dilfridge@gentoo.org>,
	Mark Wielaard <mark@klomp.org>,
	Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>,
	Libc-alpha <libc-alpha@sourceware.org>,
	yunqiang.su@oss.cipunited.com
Subject: Re: [PATCH v6] MIPS: Sync elf.h from binutils
Date: Sat, 22 Jul 2023 16:36:24 +0200	[thread overview]
Message-ID: <ZLvpaP6AK5jHbYda@aurel32.net> (raw)
In-Reply-To: <5120281.n0HT0TaD9V@pinacolada>

[-- Attachment #1: Type: text/plain, Size: 4073 bytes --]

Hi,

On 2023-07-22 13:02, Andreas K. Huettel via Libc-alpha wrote:
> Am Samstag, 22. Juli 2023, 11:37:41 CEST schrieb Mark Wielaard:
> > Hi,
> > 
> > On Tue, Jul 18, 2023 at 10:17:09AM +0800, Ying Huang wrote:
> > > ping
> > > 
> > > Because I did not have commit permissions,  could you help commit?
> > 
> > I am happy to commit this for you. But even though it is a constants
> > only patch at this point it should probably get an OK from Andreas,
> > the release manager.
> 
> OK from me, looks well-separated enough.
> Last feature add-on of the month. :o)
> 

Unfortunately this commit breaks building glibc on at list
mips64el-linux-gnuabi64, unless --disable-werror is used, due to
preprocessor redefinitions:

mips64el-linux-gnuabi64-gcc-13 -mabi=64 init-first.c -c -std=gnu11 -fgnu89-inline  -pipe -O2 -g -fdebug-prefix-map=/home/aurel32/glibc-2.38=. -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fstack-protector-strong -fno-common -Wp,-U_FORTIFY_SOURCE -Wstrict-prototypes -Wold-style-definition -fmath-errno    -fPIE    -fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0 -Wa,-execstack   -ftls-model=initial-exec   -isystem /home/aurel32/glibc-2.38/debian/include  -I../include -I/home/aurel32/glibc-2.38/build-tree/mips64el-libc/csu  -I/home/aurel32/glibc-2.38/build-tree/mips64el-libc  -I../sysdeps/unix/sysv/linux/mips/mips64/n64  -I../sysdeps/unix/sysv/linux/mips/mips64  -I../sysdeps/unix/sysv/linux/mips  -I../sysdeps/mips/nptl  -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/mips/mips64  -I../sysdeps/unix/mips  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/mips/mips64/n64/fpu  -I../sysdeps/mips/mips64/n64  -I../sysdeps/mips/ieee754  -I../sysdeps/ieee754/ldbl-128  -I../sysdeps/mips/mips64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/mips/include -I../sysdeps/mips  -I../sysdeps/wordsize-64  -I../sysdeps/mips/fpu  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/mips64el-linux-gnuabi64/13/include -isystem /home/aurel32/glibc-2.38/debian/include -D_LIBC_REENTRANT -include /home/aurel32/glibc-2.38/build-tree/mips64el-libc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -o /home/aurel32/glibc-2.38/build-tree/mips64el-libc/csu/init-first.o -MD -MP -MF /home/aurel32/glibc-2.38/build-tree/mips64el-libc/csu/init-first.o.dt -MT /home/aurel32/glibc-2.38/build-tree/mips64el-libc/csu/init-first.o
In file included from ../sysdeps/gnu/ldsodefs.h:46,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/unix/sysv/linux/mips/ldsodefs.h:22,
                 from init-first.c:29:
../sysdeps/mips/ldsodefs.h:128: error: "ELF64_MIPS_R_TYPE" redefined [-Werror]
  128 | #define ELF64_MIPS_R_TYPE(i) \
      | 
In file included from ../include/elf.h:2,
                 from ../sysdeps/mips/stackinfo.h:24,
                 from ../include/stackinfo.h:24,
                 from ../include/alloca.h:7,
                 from ../stdlib/stdlib.h:706,
                 from ../include/stdlib.h:16,
                 from init-first.c:20:
../elf/elf.h:681: note: this is the location of the previous definition
  681 | #define ELF64_MIPS_R_TYPE(i)            ((i) & 0xff)
      | 
cc1: all warnings being treated as errors
make[3]: *** [../o-iterator.mk:9: /home/aurel32/glibc-2.38/build-tree/mips64el-libc/csu/init-first.o] Error 1
make[3]: Leaving directory '/home/aurel32/glibc-2.38/csu'
make[2]: *** [Makefile:501: csu/subdir_lib] Error 2
make[2]: Leaving directory '/home/aurel32/glibc-2.38'
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/home/aurel32/glibc-2.38/build-tree/mips64el-libc'


Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2023-07-22 14:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-15  7:50 Ying Huang
2023-07-06 12:31 ` Mark Wielaard
2023-07-11  6:48 ` Ying Huang
2023-07-18  2:17   ` Ying Huang
2023-07-22  9:37     ` Mark Wielaard
2023-07-22 11:02       ` Andreas K. Huettel
2023-07-22 11:29         ` 黄莺
2023-07-22 12:28           ` Mark Wielaard
2023-07-22 14:36         ` Aurelien Jarno [this message]
2023-07-22 14:42           ` Andreas K. Huettel
2023-07-22 14:59             ` Mark Wielaard
2023-07-23  4:16               ` YunQiang Su
2023-08-06  8:52               ` Maciej W. Rozycki
2023-07-24 11:39           ` Florian Weimer
2023-07-24 18:04             ` Adhemerval Zanella Netto
2023-07-22 11:27       ` 黄莺

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZLvpaP6AK5jHbYda@aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=dilfridge@gentoo.org \
    --cc=libc-alpha@sourceware.org \
    --cc=mark@klomp.org \
    --cc=maxim.kuvyrkov@linaro.org \
    --cc=ying.huang@oss.cipunited.com \
    --cc=yunqiang.su@oss.cipunited.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).