Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plv8 fails to build #134190

Closed
jtojnar opened this issue Aug 15, 2021 · 1 comment
Closed

plv8 fails to build #134190

jtojnar opened this issue Aug 15, 2021 · 1 comment

Comments

@jtojnar
Copy link
Contributor

jtojnar commented Aug 15, 2021

Describe the bug

The v8 derivation used by plv8 fails to link:

[1013/1112] LINK ./mksnapshotampstampp[K[KK.oter.o[K
FAILED: mksnapshot 
python "../../build/toolchain/gcc_link_wrapper.py" --output="./mksnapshot" -- g++ -pie -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -m64 -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -Wl,-O1 -Wl,--gc-sections -o "./mksnapshot" -Wl,--start-group @"./mksnapshot.rsp" ./libv8_libbase.so ./libv8_libplatform.so ./libicui18n.so ./libicuuc.so -Wl,--end-group   -ldl -lpthread -lrt 
/nix/store/hy3lz2vfv9qq2v5jz9nzlx6mmiaq79rj-binutils-2.35.1/bin/ld.gold: warning: /nix/store/cvr0kjg2q7z2wwhjblx6c73rv422k8cm-glibc-2.33-47/lib/Scrt1.o: unknown program property type 0xc0008002 in .note.gnu.property section
/nix/store/hy3lz2vfv9qq2v5jz9nzlx6mmiaq79rj-binutils-2.35.1/bin/ld.gold: error: treating warnings as errors
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Steps To Reproduce

  1. nix-build -A postgresqlPackages.plv8

Notify maintainers

cc @volth @marsam

Metadata

Using 6fc5211.

Hydra job: https://hydra.nixos.org/job/nixpkgs/trunk/postgresqlPackages.plv8.x86_64-linux

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: postgresqlPackages.plv8
# a list of nixos modules affected by the problem
module:
@jtojnar
Copy link
Contributor Author

jtojnar commented Aug 15, 2021

jtojnar added a commit to jtojnar/nixpkgs that referenced this issue Aug 15, 2021
Backport patch from 2.36 so that gold can succeed in linking programs without complaining
unknown program property type 0xc0008002 in .note.gnu.property section

Should fix: NixOS#134190
@jtojnar jtojnar closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant