Skip to contentSkip to conversation

New: libpcap 1.8.x and 1.7x does not compile on PPC

Buildroot bugzilla at busybox.net 1 participant 9 messages Oct 23, 2017 – Oct 31, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=10451

Bug ID: 10451
Summary: libpcap 1.8.x and 1.7x does not compile on PPC
Product: buildroot
Version: 2017.08
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: mail at kkrach.de
CC: buildroot at uclibc.org
Target Milestone: ---

Created attachment 7321
--> https://bugs.busybox.net/attachment.cgi?id=7321&action=edit
Compile output

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

https://bugs.busybox.net/show_bug.cgi?id=10451

--- Comment #1 from Karl Krach <[email protected]> ---

Libpcap in version 1.8.1 and 1.7.4 doesn't compile with PPC gcc 7.2.0. When downgrading to 1.6.2 the compilation succeeds.

Buildroot is version 2017.08.

Full GCC Version:

./output/host/bin/powerpc-buildroot-linux-uclibcspe-gcc --version powerpc-buildroot-linux-uclibcspe-gcc.br_real (Buildroot 2017.08-dirty) 7.2.0 Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10451

Karl Krach <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

               Host|                            |Debian GNU/Linux 9
                   |                            |(stretch)
             Target|                            |powerpc-buildroot-linux-ucl
                   |                            |ibcspe-
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10451

Karl Krach <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |mail at kkrach.de
              Build|                            |Linux 4.9.0-4-amd64 #1 SMP
                   |                            |Debian 4.9.51-1
                   |                            |(2017-09-28) x86_64
                   |                            |GNU/Linux
               Host|Debian GNU/Linux 9          |
                   |(stretch)                   |
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10451

--- Comment #2 from Karl Krach <[email protected]> --- The compiler error is:

output/host/bin/powerpc-buildroot-linux-uclibcspe-gcc -fvisibility=hidden -fpic
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mabi=spe
-mfloat-gprs=double -Wa,-me500x2 -O3 -I. -I/home/kkr/Projects/aseries-axos-c2m/system/buildroot-2017.08/output/host/powerpc-buildroot-linux-uclibcspe/sysroot/usr/include/dbus-1.0 -I/home/kkr/Projects/aseries-axos-c2m/system/buildroot-2017.08/output/host/powerpc-buildroot-linux-uclibcspe/sysroot/usr/lib/dbus-1.0/include
-DBUILDING_PCAP -DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mabi=spe
-mfloat-gprs=double -Wa,-me500x2 -O3 -c ./pcap.c

./pcap.c: In function 'pcap_create_common':
./pcap.c:590:1: error: unrecognizable insn:
}
^
(insn 58 57 59 9 (set (subreg:SI (reg:V2SI 181) 0)

        (unspec:SI [
                (symbol_ref:SI ("pcap_cant_set_rfmon") [flags 0x3]
<function_decl 0x7eff366c4c00 pcap_cant_set_rfmon>)
                (reg:SI 30 30)
            ] UNSPEC_MOVSI_GOT)) "./pcap.c":570 -1
     (nil))

./pcap.c:590:1: internal compiler error: in extract_insn, at recog.c:2311

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10451

--- Comment #4 from Karl Krach <[email protected]> --- Doesn't compile with GCC 6.4 either:

output/host/bin/powerpc-buildroot-linux-uclibcspe-gcc --version powerpc-buildroot-linux-uclibcspe-gcc.br_real (Buildroot 2017.08-dirty) 6.4.0 Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10451

--- Comment #5 from Arnout Vandecappelle <[email protected]> --- Internal compiler error, so ideally you should report this to upstream GCC. I would first of all try playing with the command line options like -O3 and -fpic (replace with e.g. -fPIC) and the -mfloat-gprs and -Wa,-me500x2 options. You can also try to strip down pcap.c to the minimal thing that exposes the issue - that is needed for reporting the bug to GCC.

I do assume that the patches in ../../projects/92107-110/br_patches do not affect libpcap or gcc?

You can also try with an unpatched GCC:
make host-gcc-final-dirclean
make host-gcc-final-extract
mv output/build/host-gcc-final-*/ /tmp/
make HOST_GCC_FINAL_OVERRIDE_SRCDIR=/tmp/host-gcc-final-* libpcap

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 10451] libpcap 1.8.x and 1.7x does not compile on PPC

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10451

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #6 from Thomas Petazzoni <[email protected]> --- I'm going to close this bug because this is not a Buildroot bug, but a gcc issue.

However, I don't think we caught this issue with our autobuilders, which means our coverage of PowerPC testing isn't great. Karl, would you mind reviewing
https://git.buildroot.org/buildroot/tree/support/config-fragments/autobuild and see if the set of PowerPC configurations is relevant or not ?

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.