Bug#890432: suricata: FTBFS on ia64

2018-02-14 Thread Jason Duerstock
Source: suricata
Severity: normal
Tags: patch
User: debian-ia64@lists.debian.org
Usertags: ia64

Dear Maintainer,

>From 
>https://buildd.debian.org/status/fetch.php?pkg=suricata=ia64=1%3A4.0.4-1=1518609275=0

gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  
-I/usr/lib/ia64-linux-gnu/htp/include -I/usr/include/nspr -I/usr/include/nspr 
-I/usr/include/nss -I/usr/include/nspr -I/usr/include/nss -I/usr/include  
-Wextra -Werror-implicit-function-declaration  -fstack-protector 
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -I/usr/include 
-DLOCAL_STATE_DIR=\"/var\" -std=gnu99 -Wall -Wno-unused-parameter 
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wwrite-strings 
-Wbad-function-cast -Wformat-security -Wno-format-nonliteral 
-Wmissing-format-attribute -funsigned-char  -g -O2 
-fdebug-prefix-map=/<>=. -specs=/usr/share/dpkg/pie-compile.specs 
-Wformat -Werror=format-security -c -o conf-yaml-loader.o conf-yaml-loader.c
cc1: warning: -fstack-protector not supported for this target
In file included from /usr/include/ia64-linux-gnu/bits/siginfo-consts.h:184:0,
 from /usr/include/signal.h:58,
 from suricata-common.h:152,
 from conf-yaml-loader.c:27:
/usr/include/ia64-linux-gnu/bits/siginfo-consts-arch.h:39:17: error: 
'TRAP_TRACE' undeclared here (not in a function); did you mean '_SC_TRACE'?
   TRAP_BRANCH = TRAP_TRACE + 1,
 ^~
 _SC_TRACE
Makefile:1687: recipe for target 'conf-yaml-loader.o' failed
make[4]: *** [conf-yaml-loader.o] Error 1
make[4]: *** Waiting for unfinished jobs
make[4]: Leaving directory '/<>/src'
Makefile:1131: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/<>/src'
Makefile:494: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/<>'
Makefile:422: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/<>'
dh_auto_build: make -j2 returned exit code 2
debian/rules:57: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2

Patch attached.

-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: ia64

Kernel: Linux 3.14-0.bpo.2-mckinley (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
--- src/suricata-common.h.orig  2018-02-14 12:27:29.727546789 -0500
+++ src/suricata-common.h   2018-02-14 12:27:43.135478812 -0500
@@ -34,7 +34,6 @@
 #define FALSE  0
 
 #define _GNU_SOURCE
-#define __USE_GNU
 
 #if HAVE_CONFIG_H
 #include 


Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2, mckinley, rx2620)

2018-02-14 Thread James Clarke
On 14 Feb 2018, at 07:52, Pedro Miguel Teixeira  wrote:
> 
>  
> Hi Emeric.
>  
> The machine has no iLO card, so it can’t be because of it. As far as I can 
> tell, either ELILO never gets to pass control to the kernel, or the kernel 
> never gets to output the 1st message.

Apologies if you've already tried this or it doesn't apply in your case, but
have you tried the advice in [1]?

James

[1] https://lists.debian.org/debian-ia64/2004/05/msg00051.html

> _
> Pedro
>  
> From: Émeric MASCHINO
> Sent: Tuesday, February 13, 2018 23:43
> To: Pedro Miguel Teixeira
> Cc: Jason Duerstock; Gatis Visnevskis; Ivan Zakharyaschev; debian-ia64; 
> gle...@altlinux.org
> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2, 
> mckinley, rx2620)
>  
> Well, problem is then likely with iLO card or serial console.
> Indeed, I'm daily using a zx6000 workstation for years, being with
> Debian for more than a decade, now with Gentoo since Debian has killed
> the plug on ia64 in 2013.
> I have no problem booting/using it locally (GNOME 3.24 desktop
> environment) with kernels 4.9.76 and 4.12.12. Kernels were compiled
> either with GCC 4.5.4 (because of a nasty error with GDB that
> sometimes segfaults when kernels i compiled with GCC > 4.5) or 6.2.0.
> 
> 2018-02-14 1:41 GMT+01:00 Pedro Miguel Teixeira :
> >
> >
> > Hi Jason.
> >
> >
> >
> > That was close – I was really about to send the zx6000 onto the tech
> > recycle.
> >
> >
> >
> > The following is all I get coming out from the console (Serial A, since the
> > zx6000 does not have a management card / iLO). After the initrd line shows,
> > a good 5 seconds pass. Then the front panel becomes all red and the cryptic
> > modem-style sounds come out. I’ve wondered about the health of both my ELILO
> > and Kernel, but my rx2660 boots fine with the exact the same two.
> >
> >
> >
> >
> >
> > EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.31 [4411]
> >
> >
> >
> > Loading device drivers
> >
> >
> >
> > Loading.: Auxiliary Floating Point Driver
> >
> > Load of Auxiliary Floating Point Driver failed: Not Found
> >
> > EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.31 [4411]
> >
> >
> >
> > Please select a boot option
> >
> >
> >
> > Windows Boot Manager
> >
> > Debian
> >
> > EFI Shell [Built-in]
> >
> > Removable Media
> >
> > Boot Option Maintenance Menu
> >
> > System Configuration Menu
> >
> >
> >
> >
> >
> > Use ^ and v to change option(s). Use Enter to select an option
> >
> > Loading.: Debian
> >
> > Starting: Debian
> >
> > ELILO v3.14 for EFI/IA-64
> >
> > ..
> >
> > Uncompressing Linux... done
> >
> > Loading file \EFI\debian\initrd.img...done
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _
> > Pedro
> >
> >
> >
> > From: Jason Duerstock
> > Sent: Friday, February 9, 2018 04:01
> > To: Pedro Miguel Teixeira
> > Cc: Gatis Visnevskis; Ivan Zakharyaschev; debian-ia64; gle...@altlinux.org
> >
> >
> > Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2,
> > mckinley, rx2620)
> >
> >
> >
> > Hi Pedro,
> >
> > Can you file a separate bug for this, and include a boot log?
> >
> > Thanks,
> >
> > Jason
> >
> >
> > On Fri, Feb 9, 2018 at 6:24 AM, Pedro Miguel Teixeira 
> > wrote:
> >>
> >>
> >> The latest kernel available from Debian does work fine on my Montvale
> >> rx2660. However, I cannot boot my McKinley zx6000 with it. It will MCA
> >> really early in the boot process.
> >>
> >>
> >>
> >> Linux b777 3.2.0-4-mckinley #1 SMP Debian 3.2.78-1 ia64 GNU/Linux
> >>
> >>
> >>
> >>
> >>
> >> _
> >> Pedro
> >>
> >>
> >>
> >> From: Gatis Visnevskis
> >> Sent: Friday, February 9, 2018 03:13
> >> To: Ivan Zakharyaschev
> >> Cc: Jason Duerstock; debian-ia64; gle...@altlinux.org
> >> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64
> >> (itanium2,
> >> mckinley, rx2620)
> >>
> >>
> >>
> >> Hi all
> >>
> >> I got working 3.2.0 kernel after some work. Without recompilation.
> >> HP rx4640. That was 2 years ago. Server switched off for cost saving :(
> >>
> >> Started to install toolchain for compilation, but not finished.
> >> Internal disks were too small, some 36 gb i think.
> >>
> >> It seems that i have to boot my server, and try again, as there is some
> >> light in end of tunnel. I was hoping to get LXC working on ia64 some
> >> day.
> >>
> >> Gasha
> >>
> >> On Fri, 9 Feb 2018 11:33:16 +0300 (MSK)
> >> Ivan Zakharyaschev  wrote:
> >>
> >>> Hi,
> >>>
> >>> On Wed, 7 Feb 2018, Ivan Zakharyaschev wrote:
> >>>
> >>> > On Sun, 4 Feb 2018, Jason Duerstock wrote:
> >>> >
> >>> >>  Does the kernel from here work for you?:
> >>> >>
> >>> >>  https://people.debian.org/~jrtc27/wheezy-backports-ia64/
> >>> >>
> >>> >>  Specifically
> >>> >>
> >>> >>
> >>> >> https://people.debian.org/~jrtc27/wheezy-backports-ia64/linux-image-3.16.0-0.bpo.4-mckinley_3.16.39-1+deb8u1~bpo70+1+gcc4.4_ia64.deb
> >>> >
> >>> > (As I've 

Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2, mckinley, rx2620)

2018-02-14 Thread Jason Duerstock
Hi Pedro,

Can you try booting this ISO and let us know what happens?
http://distfiles.gentoo.org/releases/ia64/autobuilds/20180201T031003Z/install-ia64-minimal-20180201T031003Z.iso

Thanks,

Jason




On Wed, Feb 14, 2018 at 2:52 AM, Pedro Miguel Teixeira  wrote:
>
>
> Hi Emeric.
>
>
>
> The machine has no iLO card, so it can’t be because of it. As far as I can
> tell, either ELILO never gets to pass control to the kernel, or the kernel
> never gets to output the 1st message.
>
>
>
> _
> Pedro
>
>
>
> From: Émeric MASCHINO
> Sent: Tuesday, February 13, 2018 23:43
> To: Pedro Miguel Teixeira
> Cc: Jason Duerstock; Gatis Visnevskis; Ivan Zakharyaschev; debian-ia64;
> gle...@altlinux.org
>
>
> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2,
> mckinley, rx2620)
>
>
>
> Well, problem is then likely with iLO card or serial console.
> Indeed, I'm daily using a zx6000 workstation for years, being with
> Debian for more than a decade, now with Gentoo since Debian has killed
> the plug on ia64 in 2013.
> I have no problem booting/using it locally (GNOME 3.24 desktop
> environment) with kernels 4.9.76 and 4.12.12. Kernels were compiled
> either with GCC 4.5.4 (because of a nasty error with GDB that
> sometimes segfaults when kernels i compiled with GCC > 4.5) or 6.2.0.
>
> 2018-02-14 1:41 GMT+01:00 Pedro Miguel Teixeira :
>>
>>
>> Hi Jason.
>>
>>
>>
>> That was close – I was really about to send the zx6000 onto the tech
>> recycle.
>>
>>
>>
>> The following is all I get coming out from the console (Serial A, since
>> the
>> zx6000 does not have a management card / iLO). After the initrd line
>> shows,
>> a good 5 seconds pass. Then the front panel becomes all red and the
>> cryptic
>> modem-style sounds come out. I’ve wondered about the health of both my
>> ELILO
>> and Kernel, but my rx2660 boots fine with the exact the same two.
>>
>>
>>
>>
>>
>> EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.31 [4411]
>>
>>
>>
>> Loading device drivers
>>
>>
>>
>> Loading.: Auxiliary Floating Point Driver
>>
>> Load of Auxiliary Floating Point Driver failed: Not Found
>>
>> EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.31 [4411]
>>
>>
>>
>> Please select a boot option
>>
>>
>>
>> Windows Boot Manager
>>
>> Debian
>>
>> EFI Shell [Built-in]
>>
>> Removable Media
>>
>> Boot Option Maintenance Menu
>>
>> System Configuration Menu
>>
>>
>>
>>
>>
>> Use ^ and v to change option(s). Use Enter to select an option
>>
>> Loading.: Debian
>>
>> Starting: Debian
>>
>> ELILO v3.14 for EFI/IA-64
>>
>> ..
>>
>> Uncompressing Linux... done
>>
>> Loading file \EFI\debian\initrd.img...done
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _
>> Pedro
>>
>>
>>
>> From: Jason Duerstock
>> Sent: Friday, February 9, 2018 04:01
>> To: Pedro Miguel Teixeira
>> Cc: Gatis Visnevskis; Ivan Zakharyaschev; debian-ia64; gle...@altlinux.org
>>
>>
>> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64
>> (itanium2,
>> mckinley, rx2620)
>>
>>
>>
>> Hi Pedro,
>>
>> Can you file a separate bug for this, and include a boot log?
>>
>> Thanks,
>>
>> Jason
>>
>>
>> On Fri, Feb 9, 2018 at 6:24 AM, Pedro Miguel Teixeira 
>> wrote:
>>>
>>>
>>> The latest kernel available from Debian does work fine on my Montvale
>>> rx2660. However, I cannot boot my McKinley zx6000 with it. It will MCA
>>> really early in the boot process.
>>>
>>>
>>>
>>> Linux b777 3.2.0-4-mckinley #1 SMP Debian 3.2.78-1 ia64 GNU/Linux
>>>
>>>
>>>
>>>
>>>
>>> _
>>> Pedro
>>>
>>>
>>>
>>> From: Gatis Visnevskis
>>> Sent: Friday, February 9, 2018 03:13
>>> To: Ivan Zakharyaschev
>>> Cc: Jason Duerstock; debian-ia64; gle...@altlinux.org
>>> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64
>>> (itanium2,
>>> mckinley, rx2620)
>>>
>>>
>>>
>>> Hi all
>>>
>>> I got working 3.2.0 kernel after some work. Without recompilation.
>>> HP rx4640. That was 2 years ago. Server switched off for cost saving :(
>>>
>>> Started to install toolchain for compilation, but not finished.
>>> Internal disks were too small, some 36 gb i think.
>>>
>>> It seems that i have to boot my server, and try again, as there is some
>>> light in end of tunnel. I was hoping to get LXC working on ia64 some
>>> day.
>>>
>>> Gasha
>>>
>>> On Fri, 9 Feb 2018 11:33:16 +0300 (MSK)
>>> Ivan Zakharyaschev  wrote:
>>>
 Hi,

 On Wed, 7 Feb 2018, Ivan Zakharyaschev wrote:

 > On Sun, 4 Feb 2018, Jason Duerstock wrote:
 >
 >>  Does the kernel from here work for you?:
 >>
 >>  https://people.debian.org/~jrtc27/wheezy-backports-ia64/
 >>
 >>  Specifically
 >>
 >>
 >>
 >> https://people.debian.org/~jrtc27/wheezy-backports-ia64/linux-image-3.16.0-0.bpo.4-mckinley_3.16.39-1+deb8u1~bpo70+1+gcc4.4_ia64.deb
 >
 > (As I've already said, this kernel works for our machine.)
 >
 > How to reproduce this build? Have you published the 

RE: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2, mckinley, rx2620)

2018-02-14 Thread Pedro Miguel Teixeira

Hi Emeric.

The machine has no iLO card, so it can’t be because of it. As far as I can 
tell, either ELILO never gets to pass control to the kernel, or the kernel 
never gets to output the 1st message.

_
Pedro

From: Émeric MASCHINO
Sent: Tuesday, February 13, 2018 23:43
To: Pedro Miguel Teixeira
Cc: Jason Duerstock; Gatis 
Visnevskis; Ivan 
Zakharyaschev; 
debian-ia64; 
gle...@altlinux.org
Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2, 
mckinley, rx2620)

Well, problem is then likely with iLO card or serial console.
Indeed, I'm daily using a zx6000 workstation for years, being with
Debian for more than a decade, now with Gentoo since Debian has killed
the plug on ia64 in 2013.
I have no problem booting/using it locally (GNOME 3.24 desktop
environment) with kernels 4.9.76 and 4.12.12. Kernels were compiled
either with GCC 4.5.4 (because of a nasty error with GDB that
sometimes segfaults when kernels i compiled with GCC > 4.5) or 6.2.0.

2018-02-14 1:41 GMT+01:00 Pedro Miguel Teixeira :
>
>
> Hi Jason.
>
>
>
> That was close – I was really about to send the zx6000 onto the tech
> recycle.
>
>
>
> The following is all I get coming out from the console (Serial A, since the
> zx6000 does not have a management card / iLO). After the initrd line shows,
> a good 5 seconds pass. Then the front panel becomes all red and the cryptic
> modem-style sounds come out. I’ve wondered about the health of both my ELILO
> and Kernel, but my rx2660 boots fine with the exact the same two.
>
>
>
>
>
> EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.31 [4411]
>
>
>
> Loading device drivers
>
>
>
> Loading.: Auxiliary Floating Point Driver
>
> Load of Auxiliary Floating Point Driver failed: Not Found
>
> EFI Boot Manager ver 1.10 [14.61]  Firmware ver 2.31 [4411]
>
>
>
> Please select a boot option
>
>
>
> Windows Boot Manager
>
> Debian
>
> EFI Shell [Built-in]
>
> Removable Media
>
> Boot Option Maintenance Menu
>
> System Configuration Menu
>
>
>
>
>
> Use ^ and v to change option(s). Use Enter to select an option
>
> Loading.: Debian
>
> Starting: Debian
>
> ELILO v3.14 for EFI/IA-64
>
> ..
>
> Uncompressing Linux... done
>
> Loading file \EFI\debian\initrd.img...done
>
>
>
>
>
>
>
>
>
> _
> Pedro
>
>
>
> From: Jason Duerstock
> Sent: Friday, February 9, 2018 04:01
> To: Pedro Miguel Teixeira
> Cc: Gatis Visnevskis; Ivan Zakharyaschev; debian-ia64; gle...@altlinux.org
>
>
> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64 (itanium2,
> mckinley, rx2620)
>
>
>
> Hi Pedro,
>
> Can you file a separate bug for this, and include a boot log?
>
> Thanks,
>
> Jason
>
>
> On Fri, Feb 9, 2018 at 6:24 AM, Pedro Miguel Teixeira 
> wrote:
>>
>>
>> The latest kernel available from Debian does work fine on my Montvale
>> rx2660. However, I cannot boot my McKinley zx6000 with it. It will MCA
>> really early in the boot process.
>>
>>
>>
>> Linux b777 3.2.0-4-mckinley #1 SMP Debian 3.2.78-1 ia64 GNU/Linux
>>
>>
>>
>>
>>
>> _
>> Pedro
>>
>>
>>
>> From: Gatis Visnevskis
>> Sent: Friday, February 9, 2018 03:13
>> To: Ivan Zakharyaschev
>> Cc: Jason Duerstock; debian-ia64; gle...@altlinux.org
>> Subject: Re: Bug#711135: Re: compiling a bootable kernel for ia64
>> (itanium2,
>> mckinley, rx2620)
>>
>>
>>
>> Hi all
>>
>> I got working 3.2.0 kernel after some work. Without recompilation.
>> HP rx4640. That was 2 years ago. Server switched off for cost saving :(
>>
>> Started to install toolchain for compilation, but not finished.
>> Internal disks were too small, some 36 gb i think.
>>
>> It seems that i have to boot my server, and try again, as there is some
>> light in end of tunnel. I was hoping to get LXC working on ia64 some
>> day.
>>
>> Gasha
>>
>> On Fri, 9 Feb 2018 11:33:16 +0300 (MSK)
>> Ivan Zakharyaschev  wrote:
>>
>>> Hi,
>>>
>>> On Wed, 7 Feb 2018, Ivan Zakharyaschev wrote:
>>>
>>> > On Sun, 4 Feb 2018, Jason Duerstock wrote:
>>> >
>>> >>  Does the kernel from here work for you?:
>>> >>
>>> >>  https://people.debian.org/~jrtc27/wheezy-backports-ia64/
>>> >>
>>> >>  Specifically
>>> >>
>>> >>
>>> >> https://people.debian.org/~jrtc27/wheezy-backports-ia64/linux-image-3.16.0-0.bpo.4-mckinley_3.16.39-1+deb8u1~bpo70+1+gcc4.4_ia64.deb
>>> >
>>> > (As I've already said, this kernel works for our machine.)
>>> >
>>> > How to reproduce this build? Have you published the corresponding
>>> > rules?
>>> >
>>> > I tried:
>>> >
>>> > $ apt-get source linux-image-3.16.0-0.bpo.4-mckinley
>>> > $ cd linux-3.16.39/
>>> > $ sed -e 's/gcc-4.6/gcc-4.4/g' debian/config/ia64/defines -i
>>> > $ debuild -b -us -uc
>>> > $ debuild -j2 -b -us -uc
>>> > ...
>>> >   Kernel: vmlinux.gz is ready
>>> > ERROR: