Minetest logo

IRC log for #minetest-dev, 2014-02-23

| Channels | #minetest-dev index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:08 daspork_ joined #minetest-dev
00:39 werwerwer joined #minetest-dev
01:19 OldCoder joined #minetest-dev
01:35 Taoki joined #minetest-dev
01:35 robmyers joined #minetest-dev
01:35 deltib joined #minetest-dev
01:35 sfan5 joined #minetest-dev
01:35 psedlak joined #minetest-dev
01:35 Weedy joined #minetest-dev
01:36 Weedy joined #minetest-dev
02:05 EvergreenTree joined #minetest-dev
02:07 EvergreenTree joined #minetest-dev
02:07 EvergreenTree joined #minetest-dev
02:30 Weedy joined #minetest-dev
02:45 Weedy joined #minetest-dev
03:06 farlepet joined #minetest-dev
03:48 ImQ009 joined #minetest-dev
04:12 iqualfragile joined #minetest-dev
04:52 OldCoder joined #minetest-dev
04:59 xyz_ joined #minetest-dev
05:00 ImQ009_ joined #minetest-dev
05:07 Taoki joined #minetest-dev
05:07 robmyers joined #minetest-dev
05:07 deltib joined #minetest-dev
05:07 sfan5 joined #minetest-dev
05:07 psedlak joined #minetest-dev
05:10 Miner_48er joined #minetest-dev
05:26 xyz_ joined #minetest-dev
05:26 VanessaE joined #minetest-dev
05:26 darkrose joined #minetest-dev
05:26 harrison joined #minetest-dev
05:26 xiong joined #minetest-dev
05:26 Kray joined #minetest-dev
05:26 Garmine joined #minetest-dev
05:26 blaise joined #minetest-dev
05:35 book` joined #minetest-dev
05:49 Weedy joined #minetest-dev
05:49 Weedy joined #minetest-dev
06:47 nore joined #minetest-dev
06:55 Miner_48er joined #minetest-dev
07:08 PenguinDad joined #minetest-dev
07:15 nore thoughts on #1119?
07:15 ShadowBot https://github.com/minetest/minetest/issues/1119 -- Fix rendering glitches when far from the center of the map by Novatux
07:28 PenguinDad joined #minetest-dev
07:36 darkrose joined #minetest-dev
07:36 darkrose joined #minetest-dev
07:36 ImQ009 joined #minetest-dev
07:56 e1z0 joined #minetest-dev
08:04 celeron55 joined #minetest-dev
08:21 Calinou joined #minetest-dev
08:41 tomreyn joined #minetest-dev
08:52 Exio4 joined #minetest-dev
09:42 Exio4 joined #minetest-dev
09:56 Selat joined #minetest-dev
10:27 lanxu joined #minetest-dev
11:31 restcoser joined #minetest-dev
11:31 PilzAdam joined #minetest-dev
11:32 Guest34412 joined #minetest-dev
11:37 Kray_ joined #minetest-dev
11:40 e1z0_ joined #minetest-dev
11:40 Garmine` joined #minetest-dev
11:41 blais3 joined #minetest-dev
11:41 Garmine` joined #minetest-dev
11:41 Garmine` joined #minetest-dev
11:43 Garmine joined #minetest-dev
11:44 Jordach joined #minetest-dev
11:44 Garmine joined #minetest-dev
11:44 Garmine joined #minetest-dev
11:45 Garmine joined #minetest-dev
11:45 PenguinDad joined #minetest-dev
11:45 Garmine joined #minetest-dev
11:47 celeron55 joined #minetest-dev
11:47 darkrose joined #minetest-dev
11:47 darkrose joined #minetest-dev
12:01 e1z0 joined #minetest-dev
12:03 sapier joined #minetest-dev
12:03 SmugLeaf joined #minetest-dev
12:03 harrison___ joined #minetest-dev
12:03 nore joined #minetest-dev
12:03 xiong joined #minetest-dev
12:03 Garmine joined #minetest-dev
12:03 ImQ009_ joined #minetest-dev
12:20 sapier did anyone ever mention android c library beeing a nightmare about temporarys and memory usage? if not now it's done
12:21 sfan5 one more reason to compile in a static libc
12:21 sapier well that's exactly what I do
12:21 sfan5 which libc do you use?
12:21 sapier still memory is messed up to an extent hard to believe it does even run
12:22 sapier the one supplied with ndk
12:23 sapier e.g. if I supply L"Some button text" to a button I see the text in gui, if I pass a pointer to allocated memory containing same text I don't see anything ... not even if I don't ever free that pointer
12:24 sapier and to make it even worse this happens on real device only but not in emulator
12:33 kahrl joined #minetest-dev
12:38 sfan5 sapier: fix please, https://github.com/minetest/minetest/issues/1152
12:43 sapier hmm that's strange sfan according to the testcode 2.0.2 is not denied
12:44 sapier do you have multiple versions of luajit installed sfan5?
12:45 sapier https://github.com/minetest/minete​st/blob/master/src/CMakeLists.txt L231 I did only prevent some versions, unknown ones are allowed
12:45 sfan5 not that I know of
12:46 sfan5 I read the code
12:46 sapier I don't see what could be wrong there, maybe you find the bug. You could try compiling that piece of code manually and see it's result
12:47 sfan5 $ dpkg -l | grep luajit | awk '{ print $2 }'
12:47 sfan5 libluajit-5.1-2:amd64
12:47 sfan5 libluajit-5.1-common
12:47 sfan5 libluajit-5.1-dev:amd64
12:47 Jordach sapier, because the emulator uses the native C lib, instead of the Android one
12:48 sfan5 Jordach: how would ARM code use the native libc?
12:48 Jordach sfan5, define emulator
12:48 sfan5 also it runs the whole linux kernel in qemu
12:50 sfan5 sapier: it works with gcc but not with clang
13:01 sapier ok what does clang do?
13:04 sapier well I expect android arm emulator to behave same as real device especially on STATIC linked lib
13:04 sapier obviously I'm wrong about this
13:12 harrison joined #minetest-dev
13:40 sfan5 sapier: seems like clang isn't the problem
13:41 sfan5 it fails with gcc randomly too
13:42 sapier random errors?
13:44 sapier I'd have expected code that simple to result in deterministic behaviour ;-)
13:48 sapier left #minetest-dev
13:49 werwerwer_ joined #minetest-dev
13:54 proller joined #minetest-dev
14:49 celeron55 joined #minetest-dev
14:54 proller joined #minetest-dev
15:11 iqualfragile joined #minetest-dev
15:23 rsiska joined #minetest-dev
15:47 kahrl sapier: src/CMakeLists.txt:243, are you sure the sizeof does what you think it does?
15:47 kahrl 242*
15:50 proller joined #minetest-dev
15:53 werwerwer joined #minetest-dev
15:58 Calinou joined #minetest-dev
16:25 rubenwardy joined #minetest-dev
16:27 hmmmm joined #minetest-dev
16:40 sfan5 kahrl: correcting that does not help either, seems like cmake is broken
16:41 kahrl weird
16:43 sfan5 my code: http://ix.io/aGt
16:43 sfan5 works with both clang + gcc when doing manually
16:44 sfan5 but it seems like cmake does not even get to run it
16:44 kahrl sfan5: broken_luajit_versions is not an array
16:44 kahrl it's a pointer
16:45 sfan5 it is used here too: https://github.com/minetest/minetest​/blob/master/src/daynightratio.h#L45
16:46 kahrl yes but "values" is an actual array so it works there
16:48 kahrl ARRAYSIZE(broken_luajit_versions) is 1 on my gcc
16:48 kahrl do this: static char* broken_luajit_versions[] = (char *[]) {
16:48 kahrl then ARRAYSIZE(broken_luajit_versions) is 7
16:51 hmmmm you don't need that cast at all btw
16:51 kahrl right
16:51 hmmmm why is it there in the first place
16:51 sfan5 still doesn't work
16:51 sfan5 hm
16:51 hmmmm also how could sapier F something up so horribly
16:52 hmmmm also in ARRAYSIZE you should have (a)[0], not a[0]
16:56 VanessaE joined #minetest-dev
16:56 proller joined #minetest-dev
16:57 sfan5 I have http://ix.io/aGu now, how come it still says my lua is broken?
16:59 hmmmm now, I don't know much about cmake, but from my understanding that takes the return code of that program and sets VALID_LUAJIT_VERSION to that
17:00 hmmmm and you check if (VALID_LUAJIT_VERSION) right below, as in, if VALID_LUAJIT_VERSION is a non-zero value then do this
17:00 hmmmm but a return code of 1 means it's an invalid version
17:00 hmmmm I don't know if this is the problem or not but it's just something that looks fishy
17:02 kahrl hmmmm: I checked /usr/share/cmake/Modules/CheckCSourceRuns.cmake, it compares the exit code to 0 and if so sets VAR to 1, and otherwise sets VAR to 0
17:02 hmmmm oh.
17:02 hmmmm hmmm.
17:02 kahrl it's more complicated than that because of cross compiling so there might be a bug
17:02 kahrl or something I overlooked
17:03 sfan5 nope
17:03 sfan5 switching the return codes around does not make it work
17:04 kahrl what does if("${VAR}" MATCHES "^${VAR}$") do?
17:04 kahrl it's a test in CHECK_C_SOURCE_RUNS that could prevent the program from being run
17:05 sfan5 it does not try to compile it in the first place when cross-compiling is used
17:05 xyz joined #minetest-dev
17:08 proller joined #minetest-dev
17:13 kahrl sfan5: shouldn't the elseif(CMAKE_CROSSCOMPILING) be else(CMAKE_CROSSCOMPILING)?
17:13 sfan5 yes it should
17:14 sfan5 ahhhhh
17:14 sfan5 works now
17:16 kahrl it doesn't find my luajit.h for some reason
17:16 sfan5 mine is at /usr/include/luajit-2.0/luajit.h and it works just fine
17:17 kahrl I have LUA_INCLUDE_DIR=/usr/include/luajit and luajit.h is in there
17:18 kahrl oh wait, it's -2.0 as on your system
17:18 kahrl but why doesn't it give an error earlier?
17:21 sfan5 https://github.com/minetest/minetest/pull/1156
17:22 kahrl sfan5: looks good
17:25 kahrl it seems my troubles with luajit.h were because of an outdated cmake cache, nevermind
17:28 sfan5 can I merge it?
17:29 troller joined #minetest-dev
17:29 Exio4 joined #minetest-dev
17:30 kahrl sfan5: yes
17:30 sfan5 done
17:31 farlepet joined #minetest-dev
17:36 proller__ joined #minetest-dev
17:43 Hiradur joined #minetest-dev
17:55 proller__ joined #minetest-dev
17:57 EvergreenTree joined #minetest-dev
17:57 EvergreenTree joined #minetest-dev
18:08 Selat joined #minetest-dev
18:33 PenguinDad joined #minetest-dev
18:45 Miner_48er joined #minetest-dev
19:03 NakedFury joined #minetest-dev
19:09 nore btw: did someone look at #1119?
19:09 ShadowBot https://github.com/minetest/minetest/issues/1119 -- Fix rendering glitches when far from the center of the map by Novatux
19:12 Taoki_1 joined #minetest-dev
19:14 Taoki_1 joined #minetest-dev
19:22 PilzAdam joined #minetest-dev
19:36 sapier joined #minetest-dev
19:41 tomasbrod joined #minetest-dev
19:45 EvergreenTree joined #minetest-dev
19:45 EvergreenTree joined #minetest-dev
19:48 celeron55_ joined #minetest-dev
19:48 Taoki joined #minetest-dev
20:00 Kray joined #minetest-dev
20:18 zat joined #minetest-dev
20:41 SmugLeaf joined #minetest-dev
20:41 SmugLeaf joined #minetest-dev
20:52 zat joined #minetest-dev
21:36 zat joined #minetest-dev
22:03 zat joined #minetest-dev
22:54 sapier left #minetest-dev
23:02 SmugLeaf joined #minetest-dev
23:03 SmugLeaf joined #minetest-dev
23:04 SmugLeaf joined #minetest-dev
23:04 SmugLeaf joined #minetest-dev
23:05 SmugLeaf joined #minetest-dev
23:06 SmugLeaf joined #minetest-dev
23:06 SmugLeaf joined #minetest-dev
23:06 SmugLeaf joined #minetest-dev
23:06 SmugLeaf joined #minetest-dev
23:08 rsiska joined #minetest-dev
23:08 proller joined #minetest-dev
23:08 SpeedProg joined #minetest-dev
23:36 EvergreenTree joined #minetest-dev
23:36 EvergreenTree joined #minetest-dev
23:38 farlepet joined #minetest-dev
23:41 proller joined #minetest-dev
23:56 EvergreenTree joined #minetest-dev
23:56 EvergreenTree joined #minetest-dev

| Channels | #minetest-dev index | Today | | Google Search | Plaintext