Build problems with 1.0.0 on Fedora

4 replies [Last post]
Hobbes1069
User offline. Last seen 4 years 7 weeks ago. Offline
Joined: 2010-05-23
Posts: 45

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

Hobbes1069
User offline. Last seen 4 years 7 weeks ago. Offline
Joined: 2010-05-23
Posts: 45

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

nemo
nemo's picture
User offline. Last seen 19 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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

nemo
nemo's picture
User offline. Last seen 19 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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

Wuzzy
Wuzzy's picture
User offline. Last seen 25 weeks 5 hours ago. Offline
Joined: 2012-06-20
Posts: 1304

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. Smile

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]