public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* building glibc 2.27 with gcc 12.2.0
@ 2023-03-17  9:17 Paul Zimmermann
  2023-03-17  9:58 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Zimmermann @ 2023-03-17  9:17 UTC (permalink / raw)
  To: libc-alpha

       Hi,

for a scientific article I am writing with some colleagues, I need to build
glibc 2.27 with a recent version of gcc. (The reason is that glibc 2.27 is the
last version which contained the full MathLib correctly-rounded functions,
with the slow path.)

I am using this way to configure/build glibc 2.27:

$ tar xf glibc-2.27.tar.bz2
$ cd glibc-2.27
$ mkdir build
$ cd build
$ ../configure --prefix=/tmp CFLAGS="-Wno-error -O2 -fcommon" CC="gcc -no-pie"
$ make -j12

However the build fails with:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `dlsym@GLIBC_2.34'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `dlclose@GLIBC_2.34'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `lstat64@GLIBC_2.33'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `stat@GLIBC_2.33'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `fstat@GLIBC_2.33'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `lstat@GLIBC_2.33'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `dlerror@GLIBC_2.34'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `gettid@GLIBC_2.30'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `dlopen@GLIBC_2.34'

Any idea how I can avoid this?

Thank you in advance,
Paul

PS: I am under Debian GNU/Linux bookworm/sid, on a Intel(R) Core(TM) i7-8700,
with gcc 12.2.0.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building glibc 2.27 with gcc 12.2.0
  2023-03-17  9:17 building glibc 2.27 with gcc 12.2.0 Paul Zimmermann
@ 2023-03-17  9:58 ` Andreas Schwab
  2023-03-17 10:13   ` Paul Zimmermann
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2023-03-17  9:58 UTC (permalink / raw)
  To: Paul Zimmermann via Libc-alpha; +Cc: Paul Zimmermann

This has nothing to do with gcc, just configure with --without-selinux.  

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: building glibc 2.27 with gcc 12.2.0
  2023-03-17  9:58 ` Andreas Schwab
@ 2023-03-17 10:13   ` Paul Zimmermann
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Zimmermann @ 2023-03-17 10:13 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-alpha

thank you (again) Andreas, this works perfectly!

Paul

> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Paul Zimmermann <Paul.Zimmermann@inria.fr>
> Date: Fri, 17 Mar 2023 10:58:55 +0100
> 
> This has nothing to do with gcc, just configure with --without-selinux.  
> 
> -- 
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-17 10:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17  9:17 building glibc 2.27 with gcc 12.2.0 Paul Zimmermann
2023-03-17  9:58 ` Andreas Schwab
2023-03-17 10:13   ` Paul Zimmermann

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).