vercel-labs / vercel-labs/native

linux compiler error

Open
#37 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Zig
Stars
7.7k
Forks
314
Avg merge
5h
Merged PRs (30d)
13

Description

found 0 vulnerabilities
run
└─ run exe zditor
└─ compile exe zditor Debug native 2 errors
error: fatal linker error: unhandled relocation type R_X86_64_PC64 at offset 0x1c
note: in /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../lib/crt1.o:.sframe
error: fatal linker error: unhandled relocation type R_X86_64_PC64 at offset 0x2c
note: in /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../lib/crt1.o:.sframe
error: 2 compilation errors
failed command: /home/kaisa/.zigup/zig/zig/zig build-exe /usr/lib/node_modules/zero-native/src/platform/linux/gtk_host.c -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glycin-2 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/graphene-1.0 -I/usr/lib/graphene-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lvulkan -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -I/usr/include/webkitgtk-6.0 -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glycin-2 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/graphene-1.0 -I/usr/lib/graphene-1.0/include -I/usr/include/libsoup-3.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -lwebkitgtk-6.0 -lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lvulkan -lgraphene-1.0 -lsoup-3.0 -lgio-2.0 -lgmodule-2.0 -ljavascriptcoregtk-6.0 -lgobject-2.0 -lglib-2.0 -ODebug --dep zero-native --dep runner -Mroot=/home/kaisa/codes/zditor/src/main.zig -ODebug --dep geometry --dep assets --dep app_dirs --dep trace --dep app_manifest --dep diagnostics --dep platform_info --dep json -Mzero-native=/usr/lib/node_modules/zero-native/src/root.zig -ODebug --dep zero-native --dep build_options -Mrunner=/home/kaisa/codes/zditor/src/runner.zig -ODebug -Mgeometry=/usr/lib/node_modules/zero-native/src/primitives/geometry/root.zig -ODebug -Massets=/usr/lib/node_modules/zero-native/src/primitives/assets/root.zig -ODebug -Mapp_dirs=/usr/lib/node_modules/zero-native/src/primitives/app_dirs/root.zig -ODebug -Mtrace=/usr/lib/node_modules/zero-native/src/primitives/trace/root.zig -ODebug -Mapp_manifest=/usr/lib/node_modules/zero-native/src/primitives/app_manifest/root.zig -ODebug -Mdiagnostics=/usr/lib/node_modules/zero-native/src/primitives/diagnostics/root.zig -ODebug -Mplatform_info=/usr/lib/node_modules/zero-native/src/primitives/platform_info/root.zig -ODebug -Mjson=/usr/lib/node_modules/zero-native/src/primitives/json/root.zig -Mbuild_options=.zig-cache/c/bfaa01e0683b80072279f254e56cfba9/options.zig -lc --cache-dir .zig-cache --global-cache-dir /home/kaisa/.cache/zig --name zditor --zig-lib-dir /home/kaisa/.zigup/zig/zig/lib/ --listen=-

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the reported Linux command and the project entry points src/main.zig and src/runner.zig. Start by isolating the Zig, GCC, and crt1.o toolchain conditions that produce the R_X86_64_PC64 relocation errors. Done means the zditor executable builds successfully on the affected Linux setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, zig
Domain
build-system, desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.