Skip to content

Conversation

@ivoanjo
Copy link

@ivoanjo ivoanjo commented Aug 15, 2024

Hey! Thanks a lot for harb, I'm using it to debug a few flaky tests that rely on garbage collection.

I ran into a few errors when trying to compile harb on Ubuntu 22.04 (gcc 11.4.0):

main.cc:35:3: error: ‘va_start’ was not declared in this scope
   35 |   va_start(args, fmt);
      |   ^~~~~~~~

ruby_heap_obj.h:132:25: error: ‘FILE’ has not been declared
  132 |   void print_ref_object(FILE *);
      |                         ^~~~

ruby_heap_obj.h:64:21: error: ‘uint64_t’ was not declared in this scope
   64 | typedef std::vector<uint64_t> RubyHeapAddrList;
      |                     ^~~~~~~~

Adding these headers fixes compilation.

I ran into a few errors when trying to compile harb on Ubuntu 22.04
(gcc 11.4.0):

```
main.cc:35:3: error: ‘va_start’ was not declared in this scope
   35 |   va_start(args, fmt);
      |   ^~~~~~~~

ruby_heap_obj.h:132:25: error: ‘FILE’ has not been declared
  132 |   void print_ref_object(FILE *);
      |                         ^~~~

ruby_heap_obj.h:64:21: error: ‘uint64_t’ was not declared in this scope
   64 | typedef std::vector<uint64_t> RubyHeapAddrList;
      |                     ^~~~~~~~
```

Adding these headers fixes compilation.
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.

1 participant