public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114910] New: can't build a c6x cross compiler
@ 2024-05-01 16:24 dkm at gcc dot gnu.org
  2024-05-01 17:04 ` [Bug target/114910] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dkm at gcc dot gnu.org @ 2024-05-01 16:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114910
           Summary: can't build a c6x cross compiler
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dkm at gcc dot gnu.org
  Target Milestone: ---

Hello,

I'm building a c6x cross compiler using crosstool-ng (with newlib).

Configured with:

configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu
--target=tic6x-elf --prefix=/root/crosstool-scratch/tic6x-elf
--exec_prefix=/root/crosstool-scratch/tic6x-elf
--with-local-prefix=/root/crosstool-scratch/tic6x-elf/tic6x-elf
--with-headers=/root/crosstool-scratch/tic6x-elf/tic6x-elf/include
--with-newlib --enable-threads=no --disable-shared
--with-pkgversion=crosstool-NG 1.26.0.72_810021d --enable-__cxa_atexit
--disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp
--disable-libquadmath --disable-libquadmath-support
--with-gmp=/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/buildtools
--with-mpfr=/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/buildtools
--with-mpc=/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/buildtools
--with-isl=/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/buildtools --enable-lto
--enable-target-optspace --disable-nls --enable-multiarch
--enable-languages=c,c++


The failing command:
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/build/build-cc-gcc-final/./gcc/xgcc
-B/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/build/build-cc-gcc-final/./gcc/
-B/root/crosstool-scratch/tic6x-elf/tic6x-elf/bin/
-B/root/crosstool-scratch/tic6x-elf/tic6x-elf/lib/ -isystem
/root/crosstool-scratch/tic6x-elf/tic6x-elf/include -isystem
/root/crosstool-scratch/tic6x-elf/tic6x-elf/sys-include    -g -O2 -idirafter
/root/crosstool-scratch/tic6x-elf/tic6x-elf/include -g -Os -mbig-endian -O2  -g
-O2  -idirafter /root/crosstool-scratch/tic6x-elf/tic6x-elf/include -g -Os
-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include  -msdata=none -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector  -msdata=none -I. -I. -I../../.././gcc
-I/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc
-I/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/.
-I/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/../gcc
-I/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/../include 
-DHAVE_CC_TLS -DUSE_EMUTLS  -o hardcfr.o -MT hardcfr.o -MD -MP -MF hardcfr.dep 
-c /mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c
-fvisibility=hidden -DHIDE_EXPORTS -save-temps --verbose-asm
hardcfr.s: Assembler messages:                                                  
hardcfr.s:164: Error: label not at start of execute packet                      
hardcfr.s:335: Error: label not at start of execute packet                      
hardcfr.s:340: Error: label not at start of execute packet                      
hardcfr.s:357: Error: label not at start of execute packet                      
hardcfr.s:381: Error: label not at start of execute packet  

with corresponding assembly:

 161   │     .loc 1 165 3 is_stmt 0
 162   │         callp   .s2 (consume_seq), B3   ;#
 163   │ .LVL9:
 164   │     ||  stw .d1t1   A7, *A4 ;# cfg_it__lsm.31, *cfg_it_8(D)
 165   │ ;#
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c:167:  
return true;
 166   │     .loc 1 167 9

 335   │     ||  add .l1x    12, B15, A4 ;#,,
 336   │ ;#
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c:287:   
consume_seq (&cfg_it);
 337   │     .loc 1 287 4
 338   │         callp   .s2 (consume_seq), B3   ;#
 339   │ .LVL15:
 340   │     ||  add .l1x    12, B15, A4 ;#,,
 341   │ .L14:
 342   │ .LBE66:
 343   │     .loc 1 274 35 is_stmt 1 discriminator 2
 344   │ .LVL16:
 345   │         b   .s1 .L12    ;#
 346   │     ||  add .d1 A10, 1, A10 ;# i,, i
 347   │         nop 5   ;#
 348   │     ;; jump to .L12 occurs  ;#
 349   │ .LVL17:
 350   │ .L13:
 351   │ .LBB67:
 352   │     .loc 1 292 4
 353   │ ;#
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c:292:    if
(!check_seq (visited, &cfg_it))
 354   │     .loc 1 292 9 is_stmt 0
 355   │         callp   .s2 (check_seq), B3 ;#
 356   │ .LVL18:
 357   │     ||  add .l2 12, B15, B4 ;#,,
 358   │     ||  mv  .d1 A15, A4 ;# visited,
 359   │ ;#
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c:292:    if
(!check_seq (visited, &cfg_it))
 360   │     .loc 1 292 7 discriminator 1
 361   │         extu    .s1 A4, 24, 24, A0  ;# tmp129, _1
 362   │     [A0]    b   .s1 .L15    ;#
 363   │         nop 5   ;#
 364   │     ;; condjump to .L15 occurs  ;#
 365   │ .LVL19:
 366   │ .L16:
 367   │     .loc 1 293 6 is_stmt 1
 368   │ .LBB64:
 369   │ .LBB65:
 370   │     .loc 1 262 3
 371   │         callp   .s2 (abort), B3 ;#
 372   │ .LVL20:
 373   │ .L15:
 374   │ .LBE65:
 375   │ .LBE64:
 376   │     .loc 1 296 4
 377   │ ;#
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c:296:    if
(!check_seq (visited, &cfg_it))
 378   │     .loc 1 296 9 is_stmt 0
 379   │         callp   .s2 (check_seq), B3 ;#
 380   │ .LVL21:
 381   │     ||  add .l2 12, B15, B4 ;#,,
 382   │     ||  mv  .d1 A15, A4 ;# visited,
 383   │ ;#
/mnt/dkm/git/crosstool-ng/.build/tic6x-elf/src/gcc/libgcc/hardcfr.c:296:    if
(!check_seq (visited, &cfg_it))

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-03 11:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-01 16:24 [Bug target/114910] New: can't build a c6x cross compiler dkm at gcc dot gnu.org
2024-05-01 17:04 ` [Bug target/114910] " pinskia at gcc dot gnu.org
2024-05-01 22:46 ` pinskia at gcc dot gnu.org
2024-05-01 22:51 ` pinskia at gcc dot gnu.org
2024-05-02  7:19 ` dkm at gcc dot gnu.org
2024-05-02 13:22 ` mikpelinux at gmail dot com
2024-05-02 17:00 ` dkm at gcc dot gnu.org
2024-05-02 23:52 ` mikpelinux at gmail dot com
2024-05-03 11:12 ` mikpelinux at gmail dot com
2024-05-03 11:53 ` dkm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).