Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compilation error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Djynn62
n00b
n00b


Joined: 21 Jan 2023
Posts: 7
Location: France

PostPosted: Sun Jan 22, 2023 9:57 am    Post subject: Kernel compilation error Reply with quote

Hello everyone...

During kernel compilation i got this error 2

[code]

HOSTCC arch/powerpc/boot/addnote
arch/powerpc/boot/addnote.c: In the ��main�� function:
arch/powerpc/boot/addnote.c:71:47: warning: d�calation counter to the right >= � the width of the type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in the macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in the macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in the macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in the macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the expansion of the macro
��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:179:17: note: in macro expansion ��PUT_64��
179 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in the macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in the macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in the macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: d�calations counter to the right >= � the width of the type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in the macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in the macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:184:17: note: in macro expansion ��PUT_64��
184 | PUT_64(ph + PH_FILESZ, nnote);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in the macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in the macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in the macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in the macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in the macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:202:17: note: in macro expansion ��PUT_64��
202 | PUT_64(ph + PH_OFFSET, ns);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in the macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in the macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:68:39: note: in the d�finition of the macro ��PUT_16BE��
68 | #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the macro expansion ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in the macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:71:47: caution: rightward d�calation counter >= � the width of type [-Wshift-count-overflow]
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~
arch/powerpc/boot/addnote.c:69:44: note: in the d�finition of the macro ��PUT_16BE��
69 | buf[(off) + 1] = (v) & 0xff)
| ^
arch/powerpc/boot/addnote.c:71:27: note: in the expansion of the macro ��PUT_32BE��
71 | #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:90:50: note: in the macro expansion ��PUT_64BE��
90 | #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in the macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in the macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:78:39: note: in the d�finition of the macro ��PUT_16LE��
78 | #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
arch/powerpc/boot/addnote.c:81:73: caution: rightward d�calation counter >= � the width of the type [-Wshift-count-overflow]
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~
arch/powerpc/boot/addnote.c:79:46: note: in the d�finition of the macro ��PUT_16LE��
79 | buf[(off) + 1] = ((v) >> 8) & 0xff)
| ^
arch/powerpc/boot/addnote.c:81:49: note: in the macro expansion ��PUT_32LE��
81 | #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:91:26: note: in the macro expansion ��PUT_64LE��
91 | PUT_64LE(off, v))
| ^~~~~~~~
arch/powerpc/boot/addnote.c:207:17: note: in macro expansion ��PUT_64��
207 | PUT_64(ph + PH_FILESZ, nnote2);
| ^~~~~~
HOSTCC arch/powerpc/boot/hack-coff
HOSTCC arch/powerpc/boot/mktree
WRAP arch/powerpc/boot/zImage.chrp
ld�: �mulation mode not recognized�: -T
�mulations supported�: elf32ppclinux elf32ppc elf32ppcsim elf32lppclinux elf32lppc elf32lppcsim elf64ppc elf64lppc
make[1]: *** [arch/powerpc/boot/Makefile:392 : arch/powerpc/boot/zImage.chrp] Error 1
make: *** [arch/powerpc/Makefile:259 : zImage] Error 2

/code]

Someone have an idea?
Back to top
View user's profile Send private message
Djynn62
n00b
n00b


Joined: 21 Jan 2023
Posts: 7
Location: France

PostPosted: Sun Jan 22, 2023 7:06 pm    Post subject: Reply with quote

Quote:
/usr/src/linux # emerge --info
Portage 3.0.43 (python 3.10.9-final-0, default/linux/ppc/17.0, gcc-11, glibc-2.36-r5, 5.15.80-gentoo-ppc32-ppc ppc)
=================================================================
Système uname : Linux-5.15.80-gentoo-ppc32-ppc-ppc-7455,_altivec_supported-with-glibc2.36
Mémoire KiB : 1538348 total, 38264 libre
KiB Swap : 1507068 total, 1492864 libre
Horodatage du dépôt gentoo : Sat, 21 Jan 2023 17:30:01 +0000
Head commit du dépôt gentoo : 199e4bde07788a60b18c0cd10dde492955d0ba6c
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils : 1.3.5::gentoo
app-shells/bash : 5.1_p16-r2::gentoo
dev-lang/perl : 5.36.0-r1::gentoo
dev-lang/python : 3.10.9::gentoo, 3.11.1::gentoo
dev-util/meson : 0.64.1::gentoo
sys-apps/baselayout : 2.9::gentoo
sys-apps/openrc : 0.45.2-r2::gentoo
sys-apps/sandbox : 2.29::gentoo
sys-devel/autoconf : 2.71-r5::gentoo
sys-devel/automake : 1.16.5::gentoo
sys-devel/binutils : 2.39-r4::gentoo
sys-devel/binutils-config : 5.4.1::gentoo
sys-devel/gcc: 11.3.1_p20221209::gentoo
sys-devel/gcc-config : 2.8::gentoo
sys-devel/libtool : 2.4.7::gentoo
sys-devel/make : 4.3::gentoo
sys-kernel/linux-headers : 5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc : 2.36-r5::gentoo
Dépôts :

gentoo
emplacement : /var/db/repos/gentoo
sync-type : rsync
sync-uri : rsync://rsync.gentoo.org/gentoo-portage
priorité : -1000
volatile : True
sync-rsync-extra-opts :
sync-rsync-verify-metamanifest : yes
sync-rsync-verify-max-age : 24
sync-rsync-verify-jobs : 1

ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="*"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network- sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/"
LANG="fr_FR.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl big-endian bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd ncurses nls nptl openmp pam pcre ppc readline seccomp split-usr ssl test-rust unicode xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter- console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8- 0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev mga r128 radeon dummy v4l" XTABLES_ADDONS= "quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset : ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Back to top
View user's profile Send private message
GreenNeonWhale
n00b
n00b


Joined: 30 Mar 2016
Posts: 52

PostPosted: Tue Jan 24, 2023 5:15 am    Post subject: perhaps its your kernel config? Reply with quote

I'm not sure exactly why your kernel compile is failing. I think it might have to do with your kernel config (/usr/src/linux/.config). However, I've successfully compiled a number of PPC32 kernels, so I've got some ideas on things to check and try.
1) Before trying any of my ideas, please backup your current kernel's config. The file is .config stored at the top level of the kernel source directory (/usr/src/linux)
2) Make sure you have the packages installed that you'll need to compile a kernel:
virtual/libelf
sys-devel/bc
sys-devel/bison
sys-devel/flex
dev-util/pkgconf
3) Reset your entire kernel source directory. Using one of the two techniques:
a) Erase, move, or rename old directory. Untar / Extract the kernel tarball again
b) In the kernel source directory: make distclean
4) Start your kernel config from scratch. In your freshly extracted kernel source directory run:
rm .config
make pmac32_defconfig
This will configure the kernel with all the ppc32 powermac defaults
5) Then run menuconfig to further configure your kernel.
6) Attempt to compile the kernel.

Did any of that help?

Can your system successfully compile and install any other packages?

I'll be keeping an eye on this thread, if you want to reply. I hope my post helps.
Back to top
View user's profile Send private message
Djynn62
n00b
n00b


Joined: 21 Jan 2023
Posts: 7
Location: France

PostPosted: Tue Jan 24, 2023 11:09 am    Post subject: Reply with quote

Thanks i will try,
But it's a fresh first installation. Normally, it should work
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 19726

PostPosted: Tue Jan 24, 2023 3:19 pm    Post subject: Reply with quote

It looks like your build tried to pick a mulation mode of -T, but the only supported mulations are various elf*ppc* configurations. How did you set the mulation to -T? Is the output more useful if you use verbose mode to show the commands? Also, please use code tags for program output. I edited your post once to do this, but you seem to have reverted the edit.
Back to top
View user's profile Send private message
GreenNeonWhale
n00b
n00b


Joined: 30 Mar 2016
Posts: 52

PostPosted: Tue Jan 24, 2023 3:34 pm    Post subject: Reply with quote

My pleasure.
I agree, normally it should work. However, sometimes, for whatever reason, it doesn't. That's how I came about my little list of packages to install before compiling a kernel. For whatever reason, occasionally, they weren't included in the stage3 tarball, or, I somehow uninstalled them.
Another thing you could try, is backup your current attempt, and reset the entire stage3 and try again. Before resetting the stage3, you could check if there is an updated stage3 tarball available and try that too. I've had to do these kinds of things occasionally too.
Sorry I can't nail down the exact reason it isn't working for you.
If you do get it to work, please let us all know what fixed it for you.
Best of luck in getting things working. I'll keep checking this thread to see if I can help further.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum