Discussion:
[cryptopp-users] Split validat*.cpp files
Jeffrey Walton
2018-07-28 14:33:01 UTC
Permalink
Hi Everyone,

It looks liek it is time for another split of some of the validat*.cpp
files. They are too large and often cause compiler crashes on arm
dev-boards. Sun Studio 12.6 is not crashing on them too, so it is about
time to act again.

$ wc -l validat*.cpp bench*.cpp
3732 validat0.cpp
3533 validat1.cpp
1367 validat2.cpp
2024 validat3.cpp
533 validat4.cpp
451 bench1.cpp
246 bench2.cpp
439 bench3.cpp
12325 total

It looks like validat0.cpp and validat1.cpp need to be split. I'll be doing
that shortly.

Hopefully that will stop SunCC compiler from crashing. If SunCC compiles
the files it often takes 20 or 30 minutes (if it does not crash first).
SUnCC is kind of interesting in a morbid sort of way. Sun's OS backs all
RAM with swap space and alloc/new only succeeds if there is swap space
available (this is a different strategy from Unix, Linux, OS X and Windows).

The problem we are seeing is, we have 4 GB RAM, 8 GB swap and 200+ GB free
disk space. SunCC appears to be grossly mismanaging resources and it is
crashing the compiler. Worse, it destabilizes the OS so we often need to
reboot after SunCC starts acting up.

Jeff
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeffrey Walton
2018-07-28 19:43:53 UTC
Permalink
Post by Jeffrey Walton
Hi Everyone,
It looks liek it is time for another split of some of the validat*.cpp
files. They are too large and often cause compiler crashes on arm
dev-boards. Sun Studio 12.6 is not crashing on them too, so it is about
time to act again.
$ wc -l validat*.cpp bench*.cpp
3732 validat0.cpp
3533 validat1.cpp
1367 validat2.cpp
2024 validat3.cpp
533 validat4.cpp
451 bench1.cpp
246 bench2.cpp
439 bench3.cpp
12325 total
The split occurred at
https://github.com/weidai11/cryptopp/commit/28fe1a6a4d51 . SunCC can
compile the test files without shitting all over itself.

Jeff
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeffrey Walton
2018-07-29 17:44:54 UTC
Permalink
Post by Jeffrey Walton
Post by Jeffrey Walton
Hi Everyone,
It looks like it is time for another split of some of the validat*.cpp
files. They are too large and often cause compiler crashes on arm
dev-boards. Sun Studio 12.6 is now crashing on them too, so it is about
time to act again.
$ wc -l validat*.cpp bench*.cpp
3732 validat0.cpp
3533 validat1.cpp
1367 validat2.cpp
2024 validat3.cpp
533 validat4.cpp
451 bench1.cpp
246 bench2.cpp
439 bench3.cpp
12325 total
The split occurred at
https://github.com/weidai11/cryptopp/commit/28fe1a6a4d51 . SunCC can
compile the test files without shitting all over itself.
Damn, this compiler is a pig...

/opt/developerstudio12.6/bin/CC -m64 -KPIC -template=no%extdef -c
validat0.cpp
/opt/developerstudio12.6/bin/CC -m64 -KPIC -template=no%extdef -c
validat1.cpp
/opt/developerstudio12.6/bin/CC -m64 -KPIC -template=no%extdef -c
validat2.cpp
/opt/developerstudio12.6/bin/CC -m64 -KPIC -template=no%extdef -c
validat3.cpp
/opt/developerstudio12.6/bin/CC -m64 -KPIC -template=no%extdef -c
validat4.cpp
/opt/developerstudio12.6/bin/CC -m64 -KPIC -template=no%extdef -c
validat5.cpp
Assembler: validat5.cpp
"<null>", line 1088175 : Trouble writing; probably out of temporary
file space

More refactoring...

Jeff
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeffrey Walton
2018-07-30 00:37:18 UTC
Permalink
Post by Jeffrey Walton
Post by Jeffrey Walton
Post by Jeffrey Walton
Hi Everyone,
It looks like it is time for another split of some of the validat*.cpp
files. They are too large and often cause compiler crashes on arm
dev-boards. Sun Studio 12.6 is now crashing on them too, so it is about
time to act again.
$ wc -l validat*.cpp bench*.cpp
3732 validat0.cpp
3533 validat1.cpp
1367 validat2.cpp
2024 validat3.cpp
533 validat4.cpp
451 bench1.cpp
246 bench2.cpp
439 bench3.cpp
12325 total
The split occurred at
https://github.com/weidai11/cryptopp/commit/28fe1a6a4d51 . SunCC can
compile the test files without shitting all over itself.
Damn, this compiler is a pig...
Another round of refactoring at
https://github.com/weidai11/cryptopp/commit/d51f701e0638.

Jeff
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew Marlow
2018-08-02 07:16:34 UTC
Permalink
Post by Jeffrey Walton
Hi Everyone,
Post by Jeffrey Walton
It looks like it is time for another split of some of the validat*.cpp
files. They are too large and often cause compiler crashes on arm
dev-boards. Sun Studio 12.6 is now crashing on them too, so it is about
time to act again.
Indeed, I have seen the Sun compiler do this loads of times, not only with
large files but also with large expressions, e.g. chained chevrons.

[snip]
Post by Jeffrey Walton
Another round of refactoring at
https://github.com/weidai11/cryptopp/commit/d51f701e0638.
Jeff
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeffrey Walton
2018-08-13 11:30:48 UTC
Permalink
Post by Andrew Marlow
Post by Jeffrey Walton
Hi Everyone,
Post by Jeffrey Walton
It looks like it is time for another split of some of the validat*.cpp
files. They are too large and often cause compiler crashes on arm
dev-boards. Sun Studio 12.6 is now crashing on them too, so it is about
time to act again.
Indeed, I have seen the Sun compiler do this loads of times, not only with
large files but also with large expressions, e.g. chained chevrons
Ouch, I did not know large expressions would crash the compiler, too.

Peter Gutmann warned me SunCC was a bunch of scripts pretending to be a
compiler...

Jeff
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...