https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95023

--- Comment #2 from Ye Luo <xw111luoye at gmail dot com> ---
I got the following error when building the new lib. Tried gcc 8 and 10 with
master and newlib-3.3.0. No difference

/home/yeluo/opt/build-amdgcn-gcc/./gcc/xgcc
-B/home/yeluo/opt/build-amdgcn-gcc/./gcc/ -nostdinc
-B/home/yeluo/opt/build-amdgcn-gcc/amdgcn-amdhsa/gfx900/newlib/ -isystem
/home/yeluo/opt/build-amdgcn-gcc/amdgcn-amdhsa/gfx900/newlib/targ-include
-isystem /home/yeluo/opt/gcc/newlib/libc/include
-B/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/bin/
-B/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/lib/ -isystem
/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/include -isystem
/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/sys-include  -march=gfx900
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"3.3.0\" -DPACKAGE_STRING=\"newlib\ 3.3.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../../gcc/newlib/libc/stdlib -fno-builtin -D__DYNAMIC_REENT__
-DMISSING_SYSCALL_NAMES -DHAVE_INIT_FINI      -g -O2  -march=gfx900 -c -o
lib_a-drand48.o `test -f 'drand48.c' || echo
'../../../../../../gcc/newlib/libc/stdlib/'`drand48.c
/tmp/ccY9rfDl.s:1082:2: error: changed section flags for .rodata.cst8,
expected: 0x12
        .section        .rodata.cst8
        ^
/tmp/ccY9rfDl.s:1082:2: /home/yeluo/opt/build-amdgcn-gcc/./gcc/xgcc
-B/home/yeluo/opt/build-amdgcn-gcc/./gcc/ -nostdinc
-B/home/yeluo/opt/build-amdgcn-gcc/amdgcn-amdhsa/gfx900/newlib/ -isystem
/home/yeluo/opt/build-amdgcn-gcc/amdgcn-amdhsa/gfx900/newlib/targ-include
-isystem /home/yeluo/opt/gcc/newlib/libc/include
-B/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/bin/
-B/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/lib/ -isystem
/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/include -isystem
/opt/gcc/gcc-10.1.0/amdgcn-amdhsa/sys-include  -march=gfx900
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"3.3.0\" -DPACKAGE_STRING=\"newlib\ 3.3.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../../gcc/newlib/libc/stdlib -fno-builtin -D__DYNAMIC_REENT__
-DMISSING_SYSCALL_NAMES -DHAVE_INIT_FINI      -g -O2  -march=gfx900 -c -o
lib_a-ecvtbuf.o `test -f 'ecvtbuf.c' || echo
'../../../../../../gcc/newlib/libc/stdlib/'`ecvtbuf.c
error: changed section entsize for .rodata.cst8, expected: 8
        .section        .rodata.cst8
        ^
Makefile:980: recipe for target 'lib_a-wcstod.o' failed
make[8]: *** [lib_a-wcstod.o] Error 1
make[8]: *** Waiting for unfinished jobs....
/tmp/ccptbvwm.s:4470:2: error: changed section flags for .rodata.cst8,
expected: 0x12
        .section        .rodata.cst8
        ^
/tmp/ccptbvwm.s:4470:2: error: changed section entsize for .rodata.cst8,
expected: 8
        .section        .rodata.cst8
        ^
/tmp/ccptbvwm.s:4661:2: error: changed section flags for .rodata.cst8,
expected: 0x12
        .section        .rodata.cst8
        ^
/tmp/ccptbvwm.s:4661:2: error: changed section entsize for .rodata.cst8,
expected: 8
        .section        .rodata.cst8
        ^

Reply via email to