Package Details: libtcod 1.15.0-1

Git Clone URL: https://aur.archlinux.org/libtcod.git (read-only, click to copy)
Package Base: libtcod
Description: Roguelike graphics/utility library
Upstream URL: https://github.com/libtcod/libtcod
Licenses: BSD
Submitter: feufochmar
Maintainer: feufochmar
Last Packager: feufochmar
Votes: 28
Popularity: 0.000097
First Submitted: 2012-08-31 18:06
Last Updated: 2019-11-10 20:50

Latest Comments

« First ‹ Previous 1 2 3

veox commented on 2012-09-19 21:35

Hmm, binutils just might be it. I'm using the same versions of all packages, but binutils is binutils-multilib.
Don't want to replace it just like that to see, since I need itj pretty often.
I say let's leave it at that.

feufochmar commented on 2012-09-19 10:24

veox : I also use pacman 4.0.3-3 and yaourt 1.1-1 and I don't reproduce your problem.
Your problem seems to be a link problem. You have a problem with ld invoked by collect2. See http://gcc.gnu.org/onlinedocs/gccint/Collect2.html
Can you check that the ld you are using is the one from binutils ?
Also, I'm up to date and using the following packages :
- gcc 4.7.1-6
- binutils 2.22-10
- glibc 2.16.0-4
- linux-api-headers 3.5.1-1

feufochmar commented on 2012-09-19 09:54

I've updated the PKGBUILD to remove the manual extraction of the sources.

veox commented on 2012-09-18 21:31

P.S. Also, you do not need to manually extract the sources.

veox commented on 2012-09-18 21:08

...but the upstream makefile only has the changes you have in your patchfile.

Since this builds for you, and actually for me, too, I'll just dump my procedure here in case someone encounters the same misconfiguration. ;)

To be more specific, I'm using yaourt-1.1-1 here, but this also happens if using makepkg-4.0.3-3 directly.

The error message is (preceded by two lines to build libtcodxx.so and libtcodgui.so):

./libtcod.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make: *** [libtcodxx.so] Error 1
make: *** Waiting for unfinished jobs....
./libtcod.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make: *** [libtcodgui.so] Error 1

libtcod.so file size is 400163 bytes.

I can build it manually, no problem:

cd src/libtcod-1.5.1
make -f makefiles/makefile-linux64 clean release TEMP=$PWD/../tmp

libtcod.so file size is the same.

It is using the 64-bit version makefile, I have verified that.

veox commented on 2012-09-18 20:31

OK, I'll try the upstream makefile now.

feufochmar commented on 2012-09-05 18:01

Strange. I am also on x86_64, and I have no problem to compile it :-/
The source package contains a 32 bit precompiled libs, and has a broken 64 bit makefile (that's why I added a patch). There are two makefile for linux (makefiles/makefile-linux is for 32 bit, makefiles/makefile-linux64 is for 64 bit)
The 64 bit makefile has been corrected upstream in the mercurial repository. Could you try to build the package with the last makefile from the mercurial repository ?
Also, the PKGBUILD do a "make clean release" (and not just a "make release") to force the rebuild.

veox commented on 2012-09-04 16:00

P.S. 64-bit here. Also, I was able to compile 'debug' instead of 'release' without problem.

veox commented on 2012-09-04 12:59

Cannot build. Error message:

./libtcod.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make: *** [libtcodxx.so] Error 1
make: *** Waiting for unfinished jobs....
./libtcod.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make: *** [libtcodgui.so] Error 1

libtcod.so is built, present in $srcdir/libtcod-1.5.1, size 400163.

I was able to build this package by manually issuing the make command, with a little voodoo. So I guess this might be a PKGBUILD/Makefile/path issue.