Package Details: glibc-eac 2.39-2

Git Clone URL: https://aur.archlinux.org/glibc-eac.git (read-only, click to copy)
Package Base: glibc-eac
Description: GNU C Library with DT_HASH patch for games using EAC
Upstream URL: https://www.gnu.org/software/libc
Licenses: GPL-2.0-or-later, LGPL-2.1-or-later
Conflicts: glibc
Provides: glibc
Submitter: MacTavishAO
Maintainer: MacTavishAO
Last Packager: MacTavishAO
Votes: 8
Popularity: 2.38
First Submitted: 2024-02-07 00:41 (UTC)
Last Updated: 2024-04-19 19:28 (UTC)

Dependencies (9)

Required by (6445)

Sources (7)

Latest Comments

1 2 Next › Last »

xiota commented on 2024-04-27 11:55 (UTC)

Try building in a clean chroot.

If that doesn't work, something may be wrong with the patch.

konradmoesch commented on 2024-04-27 11:41 (UTC) (edited on 2024-04-27 11:44 (UTC) by konradmoesch)

With ld I get: configure: error: --enable-multi-arch support requires assembler and linker support, with lld I also get

ld.lld: warning: unknown -z value: nomark-plt
ld.lld: error: version script assignment of 'GLIBC_2.4' to symbol '__stack_chk_guard' failed: symbol not defined
ld.lld: error: version script assignment of 'GLIBC_PRIVATE' to symbol '__nptl_set_robust_list_avail' failed: symbol not defined
ld.lld: error: version script assignment of 'GLIBC_PRIVATE' to symbol '__pointer_chk_guard' failed: symbol not defined
ld.lld: error: version script assignment of 'GLIBC_PRIVATE' to symbol '_dl_make_stack_executable' failed: symbol not defined
ld.lld: error: version script assignment of 'GLIBC_PRIVATE' to symbol '_dl_starting_up' failed: symbol not defined

So, which linker should I use to make this pkg?

xiota commented on 2024-04-27 10:54 (UTC)

mold: warning: unknown command line option: -z nomark-plt

@konradmoesch Don't use mold.

konradmoesch commented on 2024-04-27 07:46 (UTC)

I get strange errors:

make[2]: Entering directory '/home/user/.cache/yay/glibc-eac/src/glibc/elf'
gcc -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fuse-ld=mold  -nostdlib -nostartfiles -shared -o /home/user/.cache/yay/glibc-eac/src/glibc-build/elf/ld.so.new         \
      -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,nomark-plt -Wl,-z,defs -Wl,-z,now   \
      -Wl,-z,pack-relative-relocs \
      /home/user/.cache/yay/glibc-eac/src/glibc-build/elf/librtld.os -Wl,--version-script=/home/user/.cache/yay/glibc-eac/src/glibc-build/ld.map           \
      -Wl,-soname=ld-linux-x86-64.so.2
mold: warning: unknown command line option: -z nomark-plt
mold: warning: /home/user/.cache/yay/glibc-eac/src/glibc-build/ld.map: cannot assign version `GLIBC_2.4` to symbol `__stack_chk_guard`: symbol not found
mold: warning: /home/user/.cache/yay/glibc-eac/src/glibc-build/ld.map: cannot assign version `GLIBC_PRIVATE` to symbol `__nptl_set_robust_list_avail`: symbol not found
mold: warning: /home/user/.cache/yay/glibc-eac/src/glibc-build/ld.map: cannot assign version `GLIBC_PRIVATE` to symbol `__pointer_chk_guard`: symbol not found
mold: warning: /home/user/.cache/yay/glibc-eac/src/glibc-build/ld.map: cannot assign version `GLIBC_PRIVATE` to symbol `_dl_make_stack_executable`: symbol not found
mold: warning: /home/user/.cache/yay/glibc-eac/src/glibc-build/ld.map: cannot assign version `GLIBC_PRIVATE` to symbol `_dl_starting_up`: symbol not found

I did use --mflags "--nocheck", no effect

MacTavishAO commented on 2024-03-27 14:50 (UTC)

Pushed an update adressing this issue. Thanks @xiota.

xiota commented on 2024-03-27 12:10 (UTC) (edited on 2024-03-27 12:16 (UTC) by xiota)

@Levitating @MacTavishAO The problem is caused by LDFLAGS=${LDFLAGS/,-z,now/} on line 133. A couple weeks ago, makepkg.conf was changed. Previously, linker options were all grouped together:

-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

Now, the options are separated:

-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now

Removing ,-z,now leaves behind -Wl, which is not a valid option on its own.

I have not tested, but changing to LDFLAGS=${LDFLAGS/,-z,now/,-z,lazy} should fix the problem while working with both old and new config.

CucumberSpace commented on 2024-03-27 08:31 (UTC)

--mflags "--nocheck" if you use yay

MacTavishAO commented on 2024-03-26 22:02 (UTC) (edited on 2024-03-26 22:02 (UTC) by MacTavishAO)

I'm not sure why you get this error because this package is virtually one to one copy of glibc package from official repos with the patch.

Good news is that this fail comes from check() step so glibc is already built. You can pass --nocheck option to makepkg to skip this step.

Levitating commented on 2024-03-26 21:48 (UTC)

I am faced with this weird error

make[2]: Entering directory '/home/rein/.cache/paru/clone/glibc-eac/src/glibc'
gcc -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl          -Wl,-z,pack-relative-relocs  -shared -nostdlib -nostartfiles \
      -x assembler /dev/null -o /home/rein/.cache/paru/clone/glibc-eac/src/glibc-build/format.lds.so
gcc: error: unrecognized command-line option ‘-Wl’; did you mean ‘-W’?
make[2]: *** [Makerules:992: /home/rein/.cache/paru/clone/glibc-eac/src/glibc-build/format.lds] Error 1
make[2]: Leaving directory '/home/rein/.cache/paru/clone/glibc-eac/src/glibc'
make[1]: *** [Makefile:633: /home/rein/.cache/paru/clone/glibc-eac/src/glibc-build/testroot.pristine/install.stamp] Error 2
make: *** [Makefile:9: check] Error 2