dellelce / mkit

build software from (latest available) source
1 stars 2 forks source link

add latest gcc builds #58

Open dellelce opened 1 year ago

dellelce commented 1 year ago

gcc11 & gcc12 should be built (required by cmake)

dellelce commented 7 months ago

build fails in the following function:

struct objalloc *
objalloc_create (void)
{
  struct objalloc *ret;
  struct objalloc_chunk *chunk;

  ret = (struct objalloc *) malloc (sizeof *ret);
  if (ret == NULL)
    return NULL;

  ret->chunks = (PTR) malloc (CHUNK_SIZE);
  if (ret->chunks == NULL)
    {
      free (ret);
      return NULL;
    }

  chunk = (struct objalloc_chunk *) ret->chunks;
  chunk->next = NULL;
  chunk->current_ptr = NULL;

  ret->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE;
  ret->current_space = CHUNK_SIZE - CHUNK_HEADER_SIZE;

  return ret;
}
dellelce commented 7 months ago

see also: PR https://github.com/dellelce/mkit/pull/59

dellelce commented 7 months ago

disabling the build of libiberty I get:

make[3]: *** No rule to make target `../libiberty/libiberty.a', needed by `full-stamp'.  Stop.