Skip to content

Add latest Gcc#59

Open
dellelce wants to merge 6 commits intomasterfrom
gcc
Open

Add latest Gcc#59
dellelce wants to merge 6 commits intomasterfrom
gcc

Conversation

@dellelce
Copy link
Owner

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

@dellelce
Copy link
Owner Author

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);
      |                  ^~~

@dellelce dellelce mentioned this pull request Dec 3, 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.

1 participant