dellelce / mkit

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

Add latest Gcc #59

Open dellelce opened 1 year ago

dellelce commented 1 year ago

build for latest gcc (12) does not work so trying to build gcc11 with current (old) image based on alpine 3.8

dellelce commented 1 year ago

build issue happens both with gcc 4.8.5 and 9.2.0:

gcc -c -DHAVE_CONFIG_H -I/root/projects/mkit/tmp/251222_gcc11/i/include  -I. -I/root/projects/mkit/tmp/251222_gcc11/b/mkit_workdir/src_1325_251222/gcc11/gcc-11.3.0/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE -fcf-protection /root/projects/mkit/tmp/251222_gcc11/b/mkit_workdir/src_1325_251222/gcc11/gcc-11.3.0/libiberty/objalloc.c -o objalloc.o
/root/projects/mkit/tmp/251222_gcc11/b/mkit_workdir/src_1325_251222/gcc11/gcc-11.3.0/libiberty/objalloc.c: In function 'objalloc_create':
/root/projects/mkit/tmp/251222_gcc11/b/mkit_workdir/src_1325_251222/gcc11/gcc-11.3.0/libiberty/objalloc.c:95:18: error: 'PTR' undeclared (first use in this function)
   95 |   ret->chunks = (PTR) malloc (CHUNK_SIZE);
      |                  ^~~