Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1102624 - latest gdb -15 build is FTBFS on aarch64
Summary: latest gdb -15 build is FTBFS on aarch64
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARM64, F-ExcludeArch-aarch64
TreeView+ depends on / blocked
 
Reported: 2014-05-29 10:42 UTC by Peter Robinson
Modified: 2014-05-30 20:58 UTC (History)
8 users (show)

Fixed In Version: gdb-7.7.1-16.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-30 20:58:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Robinson 2014-05-29 10:42:57 UTC
The gdb-7.7.1-15.fc21 build fails with the following errors. -15 built fine and it looks like the main change was to drop build with gcc-java so I'm not sure if there's another distro change coming into play here.

http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2357682

gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches      -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/..  -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber  -I../../gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wformat-nonliteral -Wno-unused  -c -o proc-service.o -MT proc-service.o -MMD -MP -MF .deps/proc-service.Tpo ../../gdb/proc-service.c
../../gdb/aarch64-linux-nat.c: In function 'aarch64_linux_set_debug_regs':
../../gdb/aarch64-linux-nat.c:311:29: error: storage size of 'regs' isn't known
   struct user_hwdebug_state regs;
                             ^
In file included from /usr/include/signal.h:342:0,
                 from ../../gdb/linux-nat.h:22,
                 from ../../gdb/aarch64-linux-nat.c:26:
../../gdb/aarch64-linux-nat.c:322:35: error: invalid use of undefined type 'struct user_hwdebug_state'
   iov.iov_len = (offsetof (struct user_hwdebug_state, dbg_regs[count - 1])
                                   ^
../../gdb/aarch64-linux-nat.c: In function 'aarch64_linux_get_debug_reg_capacity':
../../gdb/aarch64-linux-nat.c:784:29: error: storage size of 'dreg_state' isn't known
   struct user_hwdebug_state dreg_state;
                             ^
../../gdb/aarch64-linux-nat.c: In function '_initialize_aarch64_linux_nat':
../../gdb/aarch64-linux-nat.c:1539:37: warning: assignment from incompatible pointer type
   t->to_region_ok_for_hw_watchpoint =
                                     ^
../../gdb/aarch64-linux-nat.c:1541:27: warning: assignment from incompatible pointer type
   t->to_insert_watchpoint = aarch64_linux_insert_watchpoint;
                           ^
../../gdb/aarch64-linux-nat.c:1542:27: warning: assignment from incompatible pointer type
   t->to_remove_watchpoint = aarch64_linux_remove_watchpoint;
                           ^
../../gdb/aarch64-linux-nat.c:1545:38: warning: assignment from incompatible pointer type
   t->to_watchpoint_addr_within_range =
                                      ^
gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches      -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/..  -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber  -I../../gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wformat-nonliteral -Wno-unused  -c -o linux-thread-db.o -MT linux-thread-db.o -MMD -MP -MF .deps/linux-thread-db.Tpo ../../gdb/linux-thread-db.c
make[2]: *** [aarch64-linux-nat.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/builddir/build/BUILD/gdb-7.7.1/build-aarch64-redhat-linux-gnu/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/gdb-7.7.1/build-aarch64-redhat-linux-gnu'
make: *** [all] Error 2

Comment 1 Jan Kratochvil 2014-05-29 10:45:22 UTC
Where can I get aarch64 box?  I heard the Beaker ones do not install.

Comment 2 Peter Robinson 2014-05-29 11:14:23 UTC
>  Where can I get aarch64 box?  I heard the Beaker ones do not install.

I've heard the Beaker ones install just fine, please try them and if you have issues we'll revisit.

(not sure why the above comment appeared in email but not on the BZ)

Comment 3 Jan Kratochvil 2014-05-29 11:24:04 UTC
(In reply to Peter Robinson from comment #2)
> I've heard the Beaker ones install just fine, please try them and if you
> have issues we'll revisit.

Family Fedorarawhide: no aarch64 offered
Family Fedora20: no aarch64 offered
Family RedHatEnterpriseLinux7: no aarch64 offered
Family RedHatServerforARMDevelopmentPreview2:
  Distro Tree RHSA-2.0-20140529.n.0 Server aarch64:
    warning: No systems compatible with RHSA-2.0-20140529.n.0 Server aarch64
    https://beaker.engineering.redhat.com/jobs/661554
    Aborted:  Recipe ID 1373622 does not match any systems 


(In reply to Peter Robinson from comment #2)
> (not sure why the above comment appeared in email but not on the BZ)

Comment 1 is marked Private and you use non-Red Hat e-mail address.
Beaker Red Hat instance is a private system.

Comment 4 Peter Robinson 2014-05-29 11:37:53 UTC
Brendan can you sort this out?

Comment 5 Peter Robinson 2014-05-29 11:40:42 UTC
> Family Fedorarawhide: no aarch64 offered
> Family Fedora20: no aarch64 offered
> Family RedHatEnterpriseLinux7: no aarch64 offered
> Family RedHatServerforARMDevelopmentPreview2:
>   Distro Tree RHSA-2.0-20140529.n.0 Server aarch64:
>     warning: No systems compatible with RHSA-2.0-20140529.n.0 Server aarch64
>     https://beaker.engineering.redhat.com/jobs/661554
>     Aborted:  Recipe ID 1373622 does not match any systems 

I believe you can also run F-21 aarch64 in Mock on the other release

Comment 6 Jan Kratochvil 2014-05-29 11:43:19 UTC
To make it clear - I am unable to install any aarch64 OS version/variant.
I have not considered running some qemu CPU emulation.

Comment 7 Brendan Conoboy 2014-05-29 23:36:27 UTC
I have sent Jan email for how to access aarch64 rawhide hardware.


Note You need to log in before you can comment on or make changes to this bug.