Build problems with 1.0.0 on Fedora
Fri, 2019-10-11 02:02
So on the first build attempt I got an error about not being able to link with libatomic.so.1.2.0, which is a part of GCC so I added it to the build requirements (but didn't see anything in the release notes saying I needed to add it) and now I'm getting a new error:
Preprocessing 'uSound.pas'... pas2c: /builddir/build/BUILD/hedgewars-src-1.0.0/hedgewars/uSound.pas: hGetContents: invalid argument (invalid byte sequence)
Any hints? I don't find pascal to be terribly helpful with its error messages.
Thanks,
Richard
It turns out the following two files (and only those two) are encoded UTF-8 and the rest are ASCII so I fixed it this way:
for file in hedgewars/uSound.pas hedgewars/uStats.pas; do
iconv -f utf-8 -t ascii//TRANSLIT $file -o $file.tmp;
mv $file.tmp $file;
done
Thanks,
Richard
ugh. that bit us last release on distros using C locale for building. Somehow it snuck in again eh.
--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev
https://hg.hedgewars.org/hedgewars/shortlog/1.0.0 fixed on the branch. Guess we'll need a new source tarball.
--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev
Thanks for reporting! Yes, it was my fault. I keep forgetting that Unicode is taboo in our Pascal code.
I have updated the build instructions for Pas2C here:
https://hedgewars.org/kb/pas2CTutorial
Hi, I am a Hedgewars developer.