When I tried the patch :
tbk $ date -u
Tue Mar 3 22:56:36 GMT 2015
What sort of a Solaris machine is this ?
tbk $ uname -a
SunOS tbk 5.10 Generic_150401-20 i86pc i386 i86pc
tbk $ psrinfo -pv
The physical processor has 12 virtual processors (0-11)
x86 (chipid 0x0 AuthenticAMD family 16 model 9 step 1 clock 2100 MHz)
AMD Opteron(tm) Processor 6172
The physical processor has 12 virtual processors (12-23)
x86 (chipid 0x1 AuthenticAMD family 16 model 9 step 1 clock 2100 MHz)
AMD Opteron(tm) Processor 6172
Let's head to the build directory where I keep sources etc :
tbk $ pwd
/usr/local/build
Extract from source tarball :
tbk $ digest -a sha256 ../src/bison-3.0.4.tar.gz
b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e
tbk $ ls -l ../src/bison-3.0.4.tar.gz
-rw-r--r-- 1 dclarke devl 3354179 Jan 23 13:58 ../src/bison-3.0.4.tar.gz
tbk $ sx ../src/bison-3.0.4.tar.gz
star: 1948 blocks + 0 bytes (total of 19947520 bytes = 19480.00k).
NOTE: sx is an alias to a command which extracts compressed tarballs
rename the extracted directory and get to work :
tbk $ mv bison-3.0.4 bison-3.0.4_SunOS5.10_x86_64.002
tbk $ cd bison-3.0.4_SunOS5.10_x86_64.002
Save the system environment state :
tbk $ env | sort > ../bison-3.0.4_SunOS5.10_x86_64.002.env
Extract that patch :
tbk $ /usr/bin/gpatch --backup --verbose -p0 -i ../../src/bison-3.0.4_Sun_CC.patch
Hmm... Looks like a unified diff to me...
can't find file to patch at input line 22
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|commit 952416114729b95209dccfc4edacfc1ff13b4e82
|Author: Akim Demaille
|Date: Mon Jan 26 18:23:12 2015 +0100
|
| tests: c++: fix symbol lookup issue
|
| Sun C 5.13 SunOS_sparc 2014/10/20 reports errors on tests 430-432.
|
| Reported by Dennis Clarke.
|
|
| * tests/c++.at (Variants): Be sure to emit operator<< before using it:
| use "%code top" rather than "%code".
| Prefer std::vector to std::list.
| Do not define anything in std::, to avoid undefined behavior.
|
|diff --git a/tests/c++.at b/tests/c++.at
|index 55d7d40..60292f4 100644
|--- a/tests/c++.at
|+++ b/tests/c++.at
--------------------------
File to patch: tests/c++.at
Patching file tests/c++.at using Plan A...
Hunk #1 succeeded at 96.
Hunk #2 succeeded at 114.
Hunk #3 succeeded at 185.
Hunk #4 succeeded at 194.
Hunk #5 succeeded at 226.
Hunk #6 succeeded at 259.
Hmm... Ignoring the trailing garbage.
done
Run configure as per usual :
tbk $ ./configure --enable-dependency-tracking --enable-threads=posix \
> --without-libpth-prefix --with-libiconv-prefix=/usr/local \
> > ../bison-3.0.4_SunOS5.10_x86_64.002.config.log 2>&1
Which Make am I usging? GNU Make 3.82 :
tbk $ which gmake
/usr/local/bin/gmake
tbk $ gmake --version
GNU Make 3.82
..etc
Yes, it is 64-bit as is everything I do :
tbk $ file /usr/local/bin/gmake
/usr/local/bin/gmake: ELF 64-bit LSB executable AMD64 Version 1
[SSE2 SSE], dynamically linked, not stripped
tbk $ gmake > ../bison-3.0.4_SunOS5.10_x86_64.002.build.log 2>&1
That took about five minutes.
tbk $ date -u
Tue Mar 3 23:01:03 GMT 2015
Next problem is that the script tests/testsuite is not a Bourne
shell script. It must be bash. Thus :
tbk $ cp -p ./tests/testsuite ./tests/testsuite_backup
tbk $ vi ./tests/testsuite
tbk $ diff -h ./tests/testsuite ./tests/testsuite_backup
1c1
< #! /bin/bash
---
> #! /bin/sh
Now run the tests :
tbk $ /usr/bin/time -p /usr/local/bin/gmake check > \
> ../bison-3.0.4_SunOS5.10_x86_64.002.check.log 2>&1
The results are the same more or less :
## ------------- ##
## Test results. ##
## ------------- ##
ERROR: 484 tests were run,
4 failed unexpectedly.
9 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##
Please send `tests/testsuite.log' and all information you think might help:
To:
Subject: [GNU Bison 3.0.4] testsuite: 412 430 431 432 failed
You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point. Its output may
be found below `tests/testsuite.dir'.
gmake[3]: *** [check-local] Error 1
gmake[3]: Leaving directory `/usr/local/build/bison-3.0.4_SunOS5.10_x86_64.002'
gmake[2]: *** [check-am] Error 2
gmake[2]: Leaving directory `/usr/local/build/bison-3.0.4_SunOS5.10_x86_64.002'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/build/bison-3.0.4_SunOS5.10_x86_64.002'
gmake: *** [check] Error 2
real 2785.34
user 765.96
sys 487.31