Skip to content

compile test failed on v3.2.6 #1194

@daeho-ro

Description

@daeho-ro

Hello, this is a homebrew maintainer and we got error during our small test to complie main.c.

  ==> /usr/bin/gcc-12 main.c -L/home/linuxbrew/.linuxbrew/Cellar/mimalloc/3.2.6/lib -lmimalloc -o test
  main.c: In function ‘test_theap’:
  main.c:6:23: warning: implicit declaration of function ‘mi_theap_new’; did you mean ‘mi_heap_new’? [-Wimplicit-function-declaration]
      6 |   mi_theap_t* theap = mi_theap_new();
        |                       ^~~~~~~~~~~~
        |                       mi_heap_new
  main.c:6:23: warning: initialization of ‘mi_theap_t *’ {aka ‘struct mi_theap_s *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  main.c:10:3: warning: implicit declaration of function ‘mi_theap_destroy’; did you mean ‘mi_heap_destroy’? [-Wimplicit-function-declaration]
     10 |   mi_theap_destroy(theap);
        |   ^~~~~~~~~~~~~~~~
        |   mi_heap_destroy
  /usr/bin/ld: /var/tmp/cchtvkOa.o: in function `test_theap':
  main.c:(.text+0x16): undefined reference to `mi_theap_new'
  /usr/bin/ld: main.c:(.text+0x63): undefined reference to `mi_theap_destroy'
  collect2: error: ld returned 1 exit status

I have realized that the test code related to mi_theap_*are commented out but it only remains inmain.c`.

Should I skip this test?
Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions