<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/bugzilla.dtd">

<bugzilla version="4.0.10"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>14447</bug_id>
          
          <creation_ts>2012-08-10 05:54:00 +0000</creation_ts>
          <short_desc>building for hppa fails with cfi errors in syscall wrappers</short_desc>
          <delta_ts>2012-11-29 14:56:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>glibc</product>
          <component>ports</component>
          <version>2.15</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.17</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Frysinger">vapier</reporter>
          <assigned_to name="Not yet assigned to anyone">unassigned</assigned_to>
          <cc>carlos</cc>
    
    <cc>carlos_odonell</cc>
    
    <cc>roland</cc>
    
    <cc>toolchain</cc>
          <cf_gcchost>hppa2.0-linux-gnu</cf_gcchost>
          <cf_gcctarget></cf_gcctarget>
          <cf_gccbuild></cf_gccbuild>
          

      

      

      

          <long_desc isprivate="0">
            <commentid>56817</commentid>
            <who name="Mike Frysinger">vapier</who>
            <bug_when>2012-08-10 05:54:57 +0000</bug_when>
            <thetext>using:
GNU assembler (GNU Binutils) 2.22
hppa2.0-unknown-linux-gnu-gcc (Gentoo 4.5.3-r2 p1.0, pie-0.4.7) 4.5.3

building glibc-2.15 as well as current git tree fails with:
$ ../../configure --host=hppa2.0-unknown-linux-gnu --prefix=/usr
$ make -j4
(echo &apos;#define SYSCALL_NAME pause&apos;; \
 echo &apos;#define SYSCALL_NARGS 0&apos;; \
 echo &apos;#define SYSCALL_SYMBOL __libc_pause&apos;; \
 echo &apos;#define SYSCALL_CANCELLABLE 1&apos;; \
 echo &apos;#include &lt;syscall-template.S&gt;&apos;; \
 echo &apos;weak_alias (__libc_pause, pause)&apos;; \
 echo &apos;libc_hidden_weak (pause)&apos;; \
) | hppa2.0-unknown-linux-gnu-gcc -c -U_FORTIFY_SOURCE   -I../include -I/usr/local/src/gnu/glibc/build/hppa/posix -I/usr/local/src/gnu/glibc/build/hppa -I../ports/sysdeps/unix/sysv/linux/hppa/nptl -I../ports/sysdeps/unix/sysv/linux/hppa -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../ports/sysdeps/hppa/hppa1.1 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../ports/sysdeps/hppa/fpu -I../ports/sysdeps/hppa/nptl -I../ports/sysdeps/hppa -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DASSEMBLER      -o /usr/local/src/gnu/glibc/build/hppa/posix/pause.o -x assembler-with-cpp - -MD -MP -MF /usr/local/src/gnu/glibc/build/hppa/posix/pause.o.dt -MT /usr/local/src/gnu/glibc/build/hppa/posix/pause.o 
../sysdeps/unix/syscall-template.S: Assembler messages:
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
../sysdeps/unix/syscall-template.S:81: Error: CFI instruction used without previous .cfi_startproc
make: *** [/usr/local/src/gnu/glibc/build/hppa/posix/pause.o] Error 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>56819</commentid>
            <who name="joseph@codesourcery.com">joseph</who>
            <bug_when>2012-08-10 11:53:50 +0000</bug_when>
            <thetext>As of 2.16 the hppa port is out of date in at least the 25 ways I listed 
at &lt;http://sourceware.org/ml/libc-ports/2012-06/msg00048.html&gt;; this may 
be a 26th.  In addition or since 2.16, it needs c++-types data, TLS 
configure checks removed, and __ASSUME_LWS_CAS definition / conditionals 
removed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>58822</commentid>
            <who name="Carlos O&apos;Donell">carlos_odonell</who>
            <bug_when>2012-11-29 14:56:56 +0000</bug_when>
            <thetext>Fixed by:

commit 236bb0623dba86582ded9f89b8d79f362404f7a1
Author: Carlos O&apos;Donell &lt;carlos@systemhalted.org&gt;
Date:   Mon Oct 29 23:31:55 2012 -0400

    hppa: Add cfi direcvtives.

    We add cfi directives to the syscall assembly.


 2012-10-29  Carlos O&apos;Donell  &lt;carlos@systemhalted.org&gt;

+       * sysdeps/unix/sysv/linux/hppa/sysdep.h (ENTRY): Add cfi_startproc.
+       Use .cfi_offset for rp store.
+       (ENTRY_LEAF): Likewise.
+       (END) Add cfi_Endproc.
+       (DO_CALL): Add cfi directives.
+

and:

commit 77a13b85e36160e47c49886195d1af64a417074d
Author: Carlos O&apos;Donell &lt;carlos@systemhalted.org&gt;
Date:   Thu Nov 29 10:08:31 2012 -0500

    hppa: Add BZ#14447 to NEWS and ChangeLog.hppa.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>