Haiku build failure?

Hi
I’ve been having this failure since october i think? always with the same error:

/pci-header.awk:169: fatal error: internal error
Abort

Anyone seen this before? any hints?
For info, i’m building a pure gcc4 image on pure gcc4.

Khaled.

Please list your installed packages.

Here is the list of packages i have installed:

apr_util-1.5.4-1-x86.hpkg
apr-1.5.2-1-x86.hpkg
autoconf-2.69-6-x86.hpkg
automake-1.13.1-4-x86.hpkg
bash-4.3.42-1-x86.hpkg
beezer-0.99.hg-4-x86.hpkg
bepdf-1.2.0-1-x86.hpkg
binutils-2.25_12015_07_31-1-x86.hpkg
bison-2.6.5-1-x86.hpkg
bzip2_devel-1.0.6-5-x86.hpkg
bzip2-1.0.6-5-x86.hpkg
ca_root_certificates-2015_10_28-1-any.hpkg
cdrtools-3.01~a27-1-x86.hpkg
cmake-3.3.1-1-x86.hpkg
coreutils-8.24-1-x86.hpkg
cpio-2.10-1-x86.hpkg
ctags-5.8-3-x86.hpkg
curl_devel-7.45.0-2-x86.hpkg
curl-7.45.0-2-x86.hpkg
cvs-1.12.13.1-6-x86.hpkg
cvsps-2.2b1-1-x86.hpkg
dejavu-2.34-1-any.hpkg
diffutils-3.3-2-x86.hpkg
doxygen-1.8.10-2-x86.hpkg
expat_devel-2.1.0-1-x86.hpkg
expat-2.1.0-1-x86.hpkg
ffmpeg_devel-2.8.2-2-x86.hpkg
ffmpeg-2.8.2-2-x86.hpkg
findutils-4.4.2-3-x86.hpkg
flex-2.5.39-2-x86.hpkg
fontconfig_devel-2.11.94-1-x86.hpkg
fontconfig-2.11.94-1-x86.hpkg
freetype_devel-2.6-1-x86.hpkg
freetype-2.6-1-x86.hpkg
gawk-4.1.3-1-x86.hpkg
gcc_syslibs_devel-4.8.5_2015_07_11-2-x86.hpkg
gcc_syslibs-4.8.5_2015_07_11-2-x86.hpkg
gcc-4.8.5_2015_07_11-2-x86.hpkg
gettext_libintl-0.19.4-1-x86.hpkg
gettext-0.19.4-1-x86.hpkg
giflib-5.1.1-1-x86.hpkg
git_arch-2.2.2-3-x86.hpkg
git_cvs-2.2.2-3-x86.hpkg
git_daemon-2.2.2-3-x86.hpkg
git_email-2.2.2-3-x86.hpkg
git_svn-2.2.2-3-x86.hpkg
git-2.2.2-3-x86.hpkg
glib2_devel-2.38.1-5-x86.hpkg
glib2-2.38.1-5-x86.hpkg
glu_devel-9.0.0-3-x86.hpkg
glu-9.0.0-3-x86.hpkg
gperf-3.0.4-1-x86.hpkg
grep-2.21-1-x86.hpkg
groff-1.20.1-3-x86.hpkg
gutenprint-5.2.10-1-x86.hpkg
gzip-1.6-2-x86.hpkg
haiku_devel-r1~alpha4_pm_hrev49897-1-x86.hpkg
haiku_loader-r1~alpha4_pm_hrev49897-1-x86.hpkg
haiku-r1~alpha4_pm_hrev49897-1-x86.hpkg
haikuwebkit-1.5.1-1-x86.hpkg
icu_devel-55.1-5-x86.hpkg
icu-55.1-5-x86.hpkg
icu54-54.1-1-x86.hpkg
jam-2.5_2012_10_12-2-x86.hpkg
jasper-1.900.1-4-x86.hpkg
jpeg_devel-9a-1-x86.hpkg
jpeg-9a-1-x86.hpkg
less-458-1-x86.hpkg
lha-1.14i-2-x86.hpkg
libedit-2015_03_21_3.1-2-x86.hpkg
libexecinfo_devel-1.1-1-x86.hpkg
libexecinfo-1.1-1-x86.hpkg
libffi_devel-3.2.1-2-x86.hpkg
libffi-3.2.1-2-x86.hpkg
libicns-0.8.1-3-x86.hpkg
libiconv_devel-1.13.1-6-x86.hpkg
libiconv-1.13.1-6-x86.hpkg
liblayout-1.4.2-1-x86.hpkg
libmodplug-0.8.8.5-1-x86.hpkg
libogg_devel-1.3.0-2-x86.hpkg
libogg-1.3.0-2-x86.hpkg
libpcap-1.7.4-1-x86.hpkg
libpcre_devel-8.38-1-x86.hpkg
libpcre-8.38-1-x86.hpkg
libpng16_devel-1.6.18-1-x86.hpkg
libpng16-1.6.18-1-x86.hpkg
libqt4_devel-4.8.7-5-x86.hpkg
libqt4-4.8.7-5-x86.hpkg
libsanta-3.0.1-1-x86.hpkg
libsolv-0.3.0_haiku_2014_12_22-1-x86.hpkg
libtheora_devel-1.1.1-2-x86.hpkg
libtheora-1.1.1-2-x86.hpkg
libtool_libltdl-2.4.2-1-x86.hpkg
libtool-2.4.2-1-x86.hpkg
libvorbis_devel-1.3.5-1-x86.hpkg
libvorbis-1.3.5-1-x86.hpkg
libvpx_devel-1.0.0-2-x86.hpkg
libvpx-1.0.0-2-x86.hpkg
libwebp-0.4.1-2-x86.hpkg
libxml2_devel-2.9.3-2-x86.hpkg
libxml2-2.9.3-2-x86.hpkg
libxslt_devel-1.1.28-2-x86.hpkg
libxslt-1.1.28-2-x86.hpkg
m4-1.4.16-5-x86.hpkg
make-3.82-5-x86.hpkg
makefile_engine-r1~alpha4_pm_hrev49897-1-any.hpkg
man-1.6g-4-x86.hpkg
mercurial-2.9.2-1-x86.hpkg
mesa_devel-10.1.1-1-x86.hpkg
mesa_swrast-10.1.1-1-x86.hpkg
mesa-10.1.1-1-x86.hpkg
mkdepend-1.7-3-x86.hpkg
nano-2.4.2-1-x86.hpkg
nasm-2.11.08-1-x86.hpkg
ncurses_devel-5.9-10-x86.hpkg
ncurses-5.9-10-x86.hpkg
ncurses6-6.0-1-x86.hpkg
neon_devel-0.29.6-7-x86.hpkg
neon-0.29.6-7-x86.hpkg
netcat-1.10-1-x86.hpkg
openal_devel-1.13.0-2-x86.hpkg
openal-1.13.0-2-x86.hpkg
openssh-7.1p1-3-x86.hpkg
openssl_devel-1.0.2d-4-x86.hpkg
openssl-1.0.2d-4-x86.hpkg
p7zip-9.20.1-4-x86.hpkg
patch-2.7.5-1-x86.hpkg
pe-2.4.5-2-x86.hpkg
perl-5.18.2-2-x86.hpkg
pkgconfig-0.27.1-2-x86.hpkg
python-2.7.10-3-x86.hpkg
qrencode_devel-3.4.4-1-x86.hpkg
qrencode-3.4.4-1-x86.hpkg
qsystray-0.1-3-x86.hpkg
qupzilla-1.8.7-1-x86.hpkg
readline_devel-6.3.8-1-x86.hpkg
readline-6.3.8-1-x86.hpkg
ruby_devel-2.2.2-4-x86.hpkg
ruby-2.2.2-4-x86.hpkg
scons-2.3.1-4-x86.hpkg
sed-4.2.1-6-x86.hpkg
serf-1.3.8-2-x86.hpkg
sharutils-4.14-1-x86.hpkg
speex_devel-1.2~rc1-2-x86.hpkg
speex-1.2~rc1-2-x86.hpkg
sqlite-3.8.11.1-1-x86.hpkg
subversion-1.8.11-8-x86.hpkg
tar-1.27.1-2-x86.hpkg
tcpdump-4.7.4-2-x86.hpkg
texi2html-1.82-2-any.hpkg
texinfo-4.13a-7-x86.hpkg
tiff_devel-3.9.6-2-x86.hpkg
tiff-3.9.6-2-x86.hpkg
tiff4-4.0.6-1-x86.hpkg
unrar-5.3.2-1-x86.hpkg
unzip-6.0-2-x86.hpkg
vision-0.9.7.r949-3-x86.hpkg
vl_gothic-20141206-1-any.hpkg
webpositive-r1~alpha4_pm_hrev49897-1-x86.hpkg
wget-1.17.0-1-x86.hpkg
which-2.21-1-x86.hpkg
wpa_supplicant-2.0-4-x86.hpkg
xz_utils-5.0.8-2-x86.hpkg
yasm-1.3.0-1-x86.hpkg
zip-3.0-2-x86.hpkg
zlib_devel-1.2.8-4-x86.hpkg
zlib-1.2.8-4-x86.hpkg

Thanks. It could be a bug in pci-header awk script.
Please open a bug with your source tree revision, the content of your BuildConfig file.

Bye,

This time i tried to cross compile on linux(Mageia 5), after having successfully built the buildtools, i get the following error when running configure from the haiku root directory:

[root@localhost haiku]# ./configure --cross-tools-prefix cross-tools/bin/i586-pc-haiku- --use-xattr --use-gcc-pipe --distro-compatibility official
./configure: ligne 240: cross-tools/bin/i586-pc-haikugcc: Aucun fichier ou dossier de ce type
dirname: opérande manquant
Saisissez « dirname --help » pour plus d'informations.
./configure: ligne 243: cross-tools/bin/i586-pc-haikugcc: Aucun fichier ou dossier de ce type
./configure: ligne 244: cross-tools/bin/i586-pc-haikugcc: Aucun fichier ou dossier de ce type
Unsupported gcc target machine: 

Took a look at the lines 240, 243 & 244 in the configure script didn’t get me any wiser, anyone who knows what’s going on?

Make sure you give the correct cross-tools-prefix. The path you are giving to it here is not where you built the tools.

Actually there is more to it, you’re right that the path of the buildtools srcdir is not that one,but the compiled binaries’s path is right up to a certain point, the binaries are actualy put in a folder named “cross-tools-x86/bin/i586-pc-haiku-” in the generated folder, but what’s weird is even if i type this path manually i get the same error, but i found a workaround for this which is to start typing the beginning of the path and use the tab completion which stops at “bin/” subdir and then i type the “i586-pc-haiku-” part of the pah manaually.
The question is why does it behave this way?

PS:I forgot to mention that calling ./configure again using bash history, gets me the same error, so i need to use the workaround everyrime i call ./configure.

Hi khallebal,

This problem is a bug GAWK-4.1.3 in Haiku. This version AWK can not handle logical operators ‘||’ and ‘&&’ in expressions. I wrote a little work around this problem, but due to the long time of publication of amendments get yourself in the script according to the following recipe:

line 169 look like this:

if (be1 || be2 || be3) { printf something }

where be# is a boolean expression. You need to change these lines to the following:

if (be1) { printf ... countinue } if (be2) { printf ... countinue } if (be2) { printf ... countinue }

Best regards