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

add libdwarf #2906

Merged
merged 8 commits into from
Dec 4, 2023
Merged

add libdwarf #2906

merged 8 commits into from
Dec 4, 2023

Conversation

heheda123123
Copy link
Contributor

No description provided.

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


How to deal with this in mingw?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


When mingw is static, how can has_cfuncs look for function names starting with __imp_

finding libdwarf from xmake ..
{
  version = "0.8.0",
  sysincludedirs = {
    "/Users/runner/.xmake/packages/l/libdwarf/0.8.0/63e8873cfb7d47f9ab659c969fc0389f/include",
  },
  libfiles = {
    "/Users/runner/.xmake/packages/l/libdwarf/0.8.0/63e8873cfb7d47f9ab659c969fc0389f/lib/libdwarf.a",
  },
  static = true,
  links = {
    "dwarf",
  },
  linkdirs = {
    "/Users/runner/.xmake/packages/l/libdwarf/0.8.0/63e8873cfb7d47f9ab659c969fc0389f/lib",
  },
}

> /usr/local/opt/mingw-w64/bin/x86_64-w64-mingw32-gcc -c -m64 -isystem /Users/runner/.xmake/packages/l/libdwarf/0.8.0/63e8873cfb7d47f9ab659c969fc0389f/include -isystem /Users/runner/.xmake/packages/z/zlib/v1.3/53[133](https://github.com/xmake-io/xmake-repo/actions/runs/7084754964/job/19279653517?pr =2906#step:5:134)d16f2d44dd7be0d77742613f843/include -isystem /Users/runner/.xmake/packages/z/zstd/v1.5.5/e45c1621bca0480fba0590285eb561ae/include -o /var/folders/3s/vfzpb5r5 1gs6y328rmlgzm7c0000gn/T/.xmake501 /231204/_7349CFA5D8504C108A3C6AB7B54EF930.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/.xmake501/231204/_A327A81104184F189F4C2184C67AD B5F.c
> /usr/local/opt/mingw-w64/bin/x86_64-w64-mingw32-g++ -o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/.xmake501/231204/_7349CFA5D8504C108A3C6AB7B54EF930 .b /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn /T/.xmake501/231204/_7349CFA5D8504C108A3C6AB7B54EF930.o -m64 -L/Users/runner/.xmake/packages/l/libdwarf/0.8.0/63e8873cfb7d47f9ab659c969fc0389f/lib -L/Users/runner /.xmake/packages/z/ zlib/v1.3/53133d16f2d44dd7be0d77742613f843/lib -L/Users/runner/.xmake/packages/z/zstd/v1.5.5/e45c1621bca0480fba0590285eb561ae/lib -ldwarf -lz -lzstd
> checking for c includes(libdwarf/libdwarf.h)
> checking for c funcs(dwarf_debug_addr_by_index)
> checking for c links(dwarf, z, zstd)
> checking for c snippet(has_cfuncs)
checkinfo: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:273: /usr/local/Cellar/mingw-w64 /11.0.1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/.xmake501/231204/_7349CFA5D8504C108A3C6AB7B54EF930. o:_A327A81104184F189F4C2184C67ADB5F.c:(.text+0x17): undefined reference to `__imp_dwarf_debug_addr_by_index'
collect2: error: ld returned 1 exit status

@waruqi waruqi merged commit 72b076c into xmake-io:dev Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants