Project

General

Profile

Actions

Bug #572

closed

Suricata git today (and v1.3.1) compilation fail on powerpc

Added by rmkml rmkml over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Hi,

Someone previously compiled Suricata git or v1.3.1 on powerpc linux plateform ?

Because it's failed for me:

uname -a
Linux mac 2.6.35-32-powerpc #67-Ubuntu Tue Mar 6 05:49:55 UTC 2012 ppc GNU/Linux

$ ./configure --disable-gccmarch-native
$ make
...
gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp    -g -O2 -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99 -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DREVISION="ee5d6fd" -MT
util-fmemopen.o -MD -MP -MF .deps/util-fmemopen.Tpo -c -o util-fmemopen.o util-fmemopen.c
mv -f .deps/util-fmemopen.Tpo .deps/util-fmemopen.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp    -g -O2 -Wextra -Wall -fno-strict-aliasing -fno-tree-pre -Wno-unused-parameter -std=gnu99 -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -DREVISION="ee5d6fd" -MT
util-cpu.o -MD -MP -MF .deps/util-cpu.Tpo -c -o util-cpu.o util-cpu.c
util-cpu.c: In function ‘UtilCpuGetTicks’:
util-cpu.c:193: error: unknown register name ‘%edx’ in ‘asm’
util-cpu.c:193: error: unknown register name ‘%ecx’ in ‘asm’
util-cpu.c:193: error: unknown register name ‘%eax’ in ‘asm’
util-cpu.c:209: error: unknown register name ‘%edx’ in ‘asm’
util-cpu.c:209: error: unknown register name ‘%ecx’ in ‘asm’
util-cpu.c:209: error: unknown register name ‘%eax’ in ‘asm’
make[3]: *** [util-cpu.o] Erreur 1
make[3]: quittant le répertoire « suricata-1.3.1_git28sep2012/src »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « suricata-1.3.1_git28sep2012/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « suricata-1.3.1_git28sep2012 »
make: *** [all] Erreur 2

$ more /proc/cpuinfo
processor       : 0
cpu             : 7447A, altivec supported
clock           : 1416.666661MHz
revision        : 1.2 (pvr 8003 0102)
bogomips        : 83.24
timebase        : 41620997
platform        : PowerMac
model           : PowerMac10,1
machine         : PowerMac10,1
motherboard     : PowerMac10,1 MacRISC3 Power Macintosh
detected as     : 287 (Mac mini)
pmac flags      : 00000010
L2 cache        : 512K unified
pmac-generation : NewWorld
Memory          : 512 MB

Regards
Rmkml

Actions #1

Updated by Victor Julien over 11 years ago

  • Status changed from New to Assigned
  • Assignee set to Victor Julien
  • Target version set to 1.4beta2
Actions #2

Updated by Victor Julien over 11 years ago

  • Description updated (diff)
Actions #3

Updated by Victor Julien over 11 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Fixed by:

commit 33b0b07107bd286b020490f7b1306edcffa26ca1
Author: Victor Julien <victor@inliniac.net>
Date:   Tue Oct 2 13:56:12 2012 +0200

    bug #572: make sure we use profiling fallback for all architectures except x86_64 and i386.

Also cherry-picked this commit for 1.3.x.

Actions

Also available in: Atom PDF