This seems to be a duplicate of #850191, please can you check if this is fixed
with  gcc-6-cross-ports 12?

On 21.01.2017 20:58, Christoph Biedl wrote:
> Package: binutils-hppa-linux-gnu
> Version: 2.27.90.20170118-1
> Severity: important
> 
> Dear Maintainer,
> 
> while trying to fix the palo package (#851792) I noticed I cannot
> crossbuild binaries for hppa in i386. On amd64, things look good.
> 
> Reproducer:
> 
>   hppa-linux-gnu-gcc -o hello.o hello.c
> 
> Expected (and also seen when building on amd64):
> 
> - No output
> - hello.o created
> 
> Actually seen:
> 
> | /usr/lib/gcc-cross/hppa-linux-gnu/6/libgcc.a: file not recognized: File 
> format not recognized
> | collect2: error: ld returned 1 exit status
> 
> According to strace, the process (reformatted)
> 
> execve("/usr/lib/gcc-cross/hppa-linux-gnu/6/../../../../hppa-linux-gnu/bin/ld",
>     ["/usr/lib/gcc-cross/hppa-linux-gnu/6/../../../../hppa-linux-gnu/bin/ld",
>     "-plugin",
>     "/usr/lib/gcc-cross/hppa-linux-gnu/6/liblto_plugin.so",
>     "-plugin-opt=/usr/lib/gcc-cross/hppa-linux-gnu/6/lto-wrapper",
>     "-plugin-opt=-fresolution=/tmp/ccuiWhDv.res",
>     "-plugin-opt=-pass-through=-lgcc",
>     "-plugin-opt=-pass-through=-lgcc_s",
>     "-plugin-opt=-pass-through=-lc",
>     "-plugin-opt=-pass-through=-lgcc",
>     "-plugin-opt=-pass-through=-lgcc_s",
>     "--sysroot=/",
>     "--build-id",
>     "--eh-frame-hdr",
>     "-dynamic-linker",
>     "/lib/ld.so.1",
>     "-o",
>     "hello.o",
>     
> "/usr/lib/gcc-cross/hppa-linux-gnu/6/../../../../hppa-linux-gnu/lib/crt1.o",
>     
> "/usr/lib/gcc-cross/hppa-linux-gnu/6/../../../../hppa-linux-gnu/lib/crti.o",
>     "/usr/lib/gcc-cross/hppa-linux-gnu/6/crtbegin.o",
>     "-L/usr/lib/gcc-cross/hppa-linux-gnu/6",
>     "-L/usr/lib/gcc-cross/hppa-linux-gnu/6/../../../../hppa-linux-gnu/lib",
>     "/tmp/ccAMlfsW.o",
>     "-lgcc",
>     "--as-needed",
>     "-lgcc_s",
>     "--no-as-needed",
>     "-lc",
>     "-lgcc",
>     "--as-needed",
>     "-lgcc_s",
>     "--no-as-needed",
>     "/usr/lib/gcc-cross/hppa-linux-gnu/6/crtend.o",
>     
> "/usr/lib/gcc-cross/hppa-linux-gnu/6/../../../../hppa-linux-gnu/lib/crtn.o"],
>     [/* 16 vars */] <unfinished ...>
> 
> opens the file "/usr/lib/gcc-cross/hppa-linux-gnu/6/libgcc.a" but does
> not like the content, resulting in the above message.
> 
> Find attached the output of the hppa-linux-gnu-gcc invocation with
> additional "--verbose --verbose", for both i386 and amd64.
> 
>     Christoph
> 
> -- System Information:
> Debian Release: 9.0
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 4.9.4 (SMP w/4 CPU cores)
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: unable to detect
> 
> Versions of packages binutils-hppa-linux-gnu depends on:
> ii  binutils  2.27.90.20170118-1
> ii  libc6     2.24-9
> ii  zlib1g    1:1.2.8.dfsg-4
> 
> binutils-hppa-linux-gnu recommends no packages.
> 
> Versions of packages binutils-hppa-linux-gnu suggests:
> pn  binutils-doc  <none>
> 
> -- no debconf information
> 

Reply via email to