Jump to content
  • 0

Compiling rAthena on ARM (raspberry pi)


Triplus

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

Hello

 

I am working on compiling+installing rAthena on my raspberry pi, i know i could just do it on my desktop pc, but it's more about the challenge than the actual server (i might play around with it but w/e).

 

I have found this (http://rathena.org/board/topic/78187-raspberry-ro/?hl=raspberry) topic, and it actually worked.

 

This is where i am so far:

I am able to compile the server without errors, but I know something is wrong: Starting up the server stops at the following screen: (I also pressed crtl+c because it waited a long time already and nothing happened, no CPU/RAM usage, ...)

 

Naamloos_zps33761757.png

 

Full server log

root@raspberrypi:/home/rAthena/rAthena# [Status]: Memory manager initialised: log/char-server_sql.leaks
[Status]: Memory manager initialised: log/map-server_sql.leaks
[Status]: Memory manager initialised: log/login-server_sql.leaks


                   rAthena Development Team presents
                      ___   __  __
                _____/   | / /_/ /_  ___  ____  ____ _
               / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/
              / /  / ___ / /_/ / / /  __/ / / / /_/ /
             /_/  /_/  |_\__/_/ /_/\___/_/ /_/\__,_/

                     http://rathena.org/board/

[Warning]: You are running rAthena with root privileges, it is not necessary.


                   rAthena Development Team presents
                      ___   __  __
                _____/   | / /_/ /_  ___  ____  ____ _
               / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/
              / /  / ___ / /_/ / / /  __/ / / / /_/ /
             /_/  /_/  |_\__/_/ /_/\___/_/ /_/\__,_/

                     http://rathena.org/board/

[Warning]: You are running rAthena with root privileges, it is not necessary.


                   rAthena Development Team presents
                      ___   __  __
                _____/   | / /_/ /_  ___  ____  ____ _
               / ___/ /| |/ __/ __ \/ _ \/ __ \/ __ `/
              / /  / ___ / /_/ / / /  __/ / / / /_/ /
             /_/  /_/  |_\__/_/ /_/\___/_/ /_/\__,_/

                     http://rathena.org/board/

[Warning]: You are running rAthena with root privileges, it is not necessary.
[Info]: Server supports up to '1024' concurrent connections.
[Info]: Server supports up to '1024' concurrent connections.
[Info]: Server supports up to '1024' concurrent connections.
[Info]: Finished reading conf/msg_conf/login_msg.conf.
[Info]: Finished reading conf/import/inter_conf.txt.
[Info]: Finished reading conf/inter_athena.conf.
[Info]: Finished reading conf/import/login_conf.txt.
[Info]: Finished reading conf/login_athena.conf.
[Info]: Char Server IP Address : 'localhost' -> '127.0.0.1'.
[Info]: Map Server IP Address : '192.168.1.10' -> '192.168.1.10'.
[Info]: Finished reading conf/msg_conf/char_msg.conf.
[Status]: Login server IP address : localhost -> 127.0.0.1
[Status]: Character server IP address : 192.168.1.10 -> 192.168.1.10
[Info]: Done reading conf/import/char_conf.txt.
[Info]: Done reading conf/char_athena.conf.
[Info]: Done reading conf/import/inter_conf.txt.
[Info]: Done reading conf/inter_athena.conf.
[Info]: Done reading conf/import/inter_conf.txt.
[Info]: Done reading conf/inter_athena.conf.
[Info]: Connect Character DB server.... (Character Server)
[Status]: Done reading '50' entries in 'db/re/exp_guild.txt'.
[Status]: Done reading '0' entries in 'db/import/exp_guild.txt'.
[Status]: The login-server is ready (Server is listening on the port 6900).

[Status]: Finished Reading GeoIP Database.
[Status]: The char-server is ready (Server is listening on the port 6121).

[Status]: Using SQL dbs: no
[Info]: Logging item transactions to table 'picklog'.
[Info]: Logging commands to table 'atcommandlog'.
[Info]: Logging Cash transactions to table 'cashlog'.
[Info]: Connecting to the Map DB Server....
[Status]: Connect success! (Map Server Connection)
[Info]: [SQL]: Connecting to the Log Database rAthena_log At localhost...
[Status]: [SQL]: Successfully 'connected' to Database 'rAthena_log'.
[Status]: Loading maps (using db/re/map_cache.dat as map cache)...
[Info]: Attempt to connect to login-server...
[Status]: Connecting to 127.0.0.1:6900
[Info]: Connection request of the char-server 'TriplusRO' @ 192.168.1.10:6121 (account: 'rAthena', pass: 'fire3plus', ip: '127.0.0.1')
[Notice]: Authentication accepted (account: rAthena, id: 1, ip: 127.0.0.1)
[Status]: Connection of the char-server 'TriplusRO' accepted.
[Status]: Connected to login-server (connection #5).
[Status]: Awaiting maps from map-server.
[Info]: Successfully loaded '862' maps.
[Info]: Finished reading conf/msg_conf/map_msg.conf.
[Status]: Done reading '64' command aliases in 'conf/atcommand_athena.conf'.
[Status]: Done reading '11' entries in 'db/re/instance_db.txt'.
[Status]: Done reading '0' entries in 'db/import/instance_db.txt'.
[Status]: Done reading '4' channels in 'conf/channels.conf'.
[Status]: Done reading '951' entries in 'packet_db.txt'.
[Status]: Done reading '951' entries in 'packet_db.txt'.
[Status]: Using default packet version: 45.
[Status]: Done reading '8658' entries in 're/item_db.txt'.
[Status]: Done reading '0' entries in 'import/item_db.txt'.
[Status]: Done reading '1' entries in 'db/item_avail.txt'.
[Status]: Done reading '10' entries in 'db/item_stack.txt'.
[Status]: Done reading '124' entries in 'db/item_nouse.txt'.
[Status]: Done reading '1022' entries in 'db/re/item_bluebox.txt'.
[Status]: Done reading '923' entries in 'db/re/item_violetbox.txt'.
[Status]: Done reading '440' entries in 'db/re/item_cardalbum.txt'.
[Status]: Done reading '20' entries in 'db/item_findingore.txt'.
[Status]: Done reading '617' entries in 'db/re/item_giftbox.txt'.
[Status]: Done reading '1161' entries in 'db/re/item_misc.txt'.
[Status]: Done reading '2610' entries in 'db/re/item_package.txt'.
[Status]: Done reading '0' entries in 'db/re/item_group_db.txt'.
[Status]: Done reading '249' entries in 'db/re/item_combo_db.txt'.
[Status]: Done reading '50' entries in 'db/re/item_noequip.txt'.
[Status]: Done reading '1909' entries in 'db/re/item_trade.txt'.
[Status]: Done reading '21' entries in 'db/re/item_delay.txt'.
[Status]: Done reading '1057' entries in 'db/re/item_buyingstore.txt'.
[Status]: Done reading '0' entries in 'db/import/item_avail.txt'.
[Status]: Done reading '0' entries in 'db/import/item_stack.txt'.
[Status]: Done reading '0' entries in 'db/import/item_nouse.txt'.
[Status]: Done reading '0' entries in 'db/import/item_group_db.txt'.
[Status]: Done reading '0' entries in 'db/import/item_combo_db.txt'.
[Status]: Done reading '0' entries in 'db/import/item_noequip.txt'.
[Status]: Done reading '0' entries in 'db/import/item_trade.txt'.
[Status]: Done reading '0' entries in 'db/import/item_delay.txt'.
[Status]: Done reading '0' entries in 'db/import/item_buyingstore.txt'.
[Status]: Done reading '0' entries in 're/item_cash_db.txt'.
[Status]: Done reading '0' entries in 'import/item_cash_db.txt'.
[Status]: Done reading '1094' entries in 'db/re/skill_db.txt'.
[Status]: Done reading '864' entries in 'db/re/skill_require_db.txt'.
[Status]: Done reading '811' entries in 'db//re/skill_cast_db.txt'.
[Status]: Done reading '40' entries in 'db/re/skill_castnodex_db.txt'.
[Status]: Done reading '144' entries in 'db/re/skill_unit_db.txt'.
[Status]: Done reading '104' entries in 'db/re/skill_nocast_db.txt'.
[Status]: Done reading '264' entries in 'db//produce_db.txt'.
[Status]: Done reading '136' entries in 'db//create_arrow_db.txt'.
[Status]: Done reading '155' entries in 'db//abra_db.txt'.
[Status]: Done reading '17' entries in 'db//spellbook_db.txt'.
[Status]: Done reading '23' entries in 'db//magicmushroom_db.txt'.
[Status]: Done reading '133' entries in 'db//skill_copyable_db.txt'.
[Status]: Done reading '25' entries in 'db//skill_improvise_db.txt'.
[Status]: Done reading '75' entries in 'db//skill_changematerial_db.txt'.
[Status]: Done reading '2' entries in 'db//skill_nonearnpc_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_require_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_castnodex_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_unit_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_nocast_db.txt'.
[Status]: Done reading '0' entries in 'db/import/produce_db.txt'.
[Status]: Done reading '0' entries in 'db/import/create_arrow_db.txt'.
[Status]: Done reading '0' entries in 'db/import/abra_db.txt'.
[Status]: Done reading '0' entries in 'db/import/spellbook_db.txt'.
[Status]: Done reading '0' entries in 'db/import/magicmushroom_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_copyable_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_improvise_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_changematerial_db.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_nonearnpc_db.txt'.
[Status]: Done reading '0' entries in 'db//mob_item_ratio.txt'.
[Status]: Done reading '40' entries in 'db//mob_chat_db.txt'.
[Status]: Done reading '1316' entries in 'db/re/mob_db.txt'.
[Status]: Done reading '7979' entries in 'db/re/mob_skill_db.txt'.
[Status]: Done reading '0' entries in 'db//mob_avail.txt'.
[Status]: Done reading '6' entries in 'db/re/mob_race2_db.txt'.
[Status]: Done reading '0' entries in 'db/import/mob_item_ratio.txt'.
[Status]: Done reading '0' entries in 'db/import/mob_chat_db.txt'.
[Status]: Done reading '0' entries in 'db/import/mob_db.txt'.
[Status]: Done reading '0' entries in 'db/import/mob_skill_db.txt'.
[Status]: Done reading '0' entries in 'db/import/mob_avail.txt'.
[Status]: Done reading '0' entries in 'db/import/mob_race2_db.txt'.
[Status]: Done reading '480' entries in 're/mob_branch.txt'.
[Status]: Done reading '14' entries in 're/mob_poring.txt'.
[Status]: Done reading '47' entries in 're/mob_boss.txt'.
[Status]: Done reading '331' entries in 'mob_pouch.txt'.
[Status]: Done reading '25' entries in 'mob_classchange.txt'.
[Status]: Done reading '0' entries in 'import/mob_branch.txt'.
[Status]: Done reading '0' entries in 'import/mob_poring.txt'.
[Status]: Done reading '0' entries in 'import/mob_boss.txt'.
[Status]: Done reading '0' entries in 'import/mob_pouch.txt'.
[Status]: Done reading '0' entries in 'import/mob_classchange.txt'.
[Status]: Done reading '5316' entries in 'db/re/skill_tree.txt'.
[Status]: Done reading '0' entries in 'db/import/skill_tree.txt'.
[Status]: Done reading '37' entries in 'db/re/level_penalty.txt'.
[Status]: Done reading '0' entries in 'db/import/level_penalty.txt'.
[Status]: Done reading '175' entries in 'db/restatpoint.txt'.
[Status]: Done reading '134' entries in 'db//re/job_db1.txt'.
[Status]: Done reading '133' entries in 'db//job_db2.txt'.
[Status]: Done reading '17' entries in 'db/re/job_exp.txt'.
[Status]: Done reading '0' entries in 'db/re/job_param_db.txt'.
[Status]: Done reading '1' entries in 'db/importstatpoint.txt'.
[Status]: Done reading '0' entries in 'db/import/job_db2.txt'.
[Status]: Done reading '0' entries in 'db/import/job_exp.txt'.
[Status]: Done reading '0' entries in 'db/import/job_param_db.txt'.
[Status]: Done reading '1' entries in 'conf/motd.txt'.
[Status]: Done reading '8' groups in 'conf/groups.conf'.
[Status]: Done reading '4' entries in 'db/re/attr_fix.txt'.
[Status]: Done reading '3' entries in 'db//size_fix.txt'.
[Status]: Done reading '5' entries in 'db/re/refine_db.txt'.
[Status]: Done reading '0' entries in 'db/import/attr_fix.txt'.
[Status]: Done reading '0' entries in 'db/import/size_fix.txt'.
[Status]: Done reading '0' entries in 'db/import/refine_db.txt'.
[Status]: Done reading '34' entries in 'db//castle_db.txt'.
[Status]: Done reading '15' entries in 'db//guild_skill_tree.txt'.
[Status]: Done reading '0' entries in 'db/import//castle_db.txt'.
[Status]: Done reading '0' entries in 'db/import//guild_skill_tree.txt'.
[Status]: Done reading '58' pets in 'pet_db.txt'.
[Status]: Done reading '0' pets in 'import/pet_db.txt'.
[Status]: Done reading '13' entries in 'db/re/homunculus_db.txt'.
[Status]: Done reading '0' entries in 'db/import/homunculus_db.txt'.
[Status]: Done reading '150' levels in 're/exp_homun.txt'.
[Status]: Done reading '150' levels in 'import/exp_homun.txt'.
[Status]: Done reading '82' entries in 'db/homun_skill_tree.txt'.
[Status]: Done reading '0' entries in 'db/import/homun_skill_tree.txt'.
[Status]: Done reading '61' entries in 'db/mercenary_db.txt'.
[Status]: Done reading '0' entries in 'db/import/mercenary_db.txt'.
[Status]: Done reading '153' entries in 'db/mercenary_skill_db.txt'.
[Status]: Done reading '0' entries in 'db/import/mercenary_skill_db.txt'.
[Status]: Done reading '12' elementals in 'db/elemental_db.txt'.
[Status]: Done reading '36' entries in 'db/elemental_skill_db.txt'.
[Status]: Done reading '2670' entries in 'db/quest_db.txt'.
[Status]: Done reading '0' entries in 'db/import/quest_db.txt'.
[Status]: Loading NPCs...

New as far as i know the problem is in /src/common/atomic.h since it had no build-in ARM functions, It compiled because i removed some checks but of course that won't work because the functions don't work...

 

Also in nullpo.c i changed the NULL return to an empty va_list, which i think shouldn't be a problem...

 

Any help on this?

 

Thanks

Joren C.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  133
  • Reputation:   189
  • Joined:  05/20/12
  • Last Seen:  

I'm not really intimate with this, but maybe it runs out of memory during the loading progress? I see the original RP model has 256 megabytes of RAM, which is pretty abysmal even for an ARM device. Either way you could disable all NPC entries and see if it will finish.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

I have model B, so i have 512mb ram :)

 

And how would i start on deleting NPC entries, just deleting them in the file? (after backup ofc)

 

And i think the actual problem has something to do with sourcecode that is not compatible with ARM, but i could be wrong

Edited by Triplus
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  133
  • Reputation:   189
  • Joined:  05/20/12
  • Last Seen:  

OK, worth a check I guess. Comment out includes in npc/*.conf to disable NPCs.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

Hmm ye try without npc, but also it seem you had a segfault could that produce a coredump so we could look where it failed ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

I commented evrything out using /* ... */ (i think this should work, or should i put // before every line?

^Ctatus]: Loading NPCs...
[3]+  Segmentation fault      ./map-server_sql

Still getting this.

 

And do you know where i can find a coredump? somewhere in log files or log database? I'm not really sure where to look

 

Anyway i'm off to bed, I come back tomorrow. Thanks for the help already guys!

 

 

EDIT: Maybe it is worth noting that i used MAKE instead of the ./configure. I don't think this should change a lot tho.

I'm using this command to start the server: ./login-server_sql & ./char-server_sql & ./map-server_sql &


root@raspberrypi:/home/rAthena/rAthena# gdb ./map-server_sql ./core
GNU gdb (GDB) 7.6.1 (Raspbian 7.6.1-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rAthena/rAthena/map-server_sql...(no debugging symbols found)...done.
[New LWP 3006]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `./map-server_sql'.
Program terminated with signal 11, Segmentation fault.
#0  strlen () at ../ports/sysdeps/arm/strlen.S:28
28      ../ports/sysdeps/arm/strlen.S: No such file or directory.

I think this is what you are looking for? Am i right?

Edited by Triplus
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

yes now do a 'bt full', want to see wich strlen failed on our emu, maybe a string not terminating with '/0' make him crash.


EDIT: Maybe it is worth noting that i used MAKE instead of the ./configure. I don't think this should change a lot tho.

Do you mean cmake ?

You either have the cmake or configure option.

Cmake : mkdir build && cd build && cmake -G"Unix Makefiles" -DINSTALL_TO_SOURCE=ON .. && make install

Configure : ./configure && make clean sql

They both work in the same way producing their makefile then compiling with those rule if you have done "make clean sql" without ./configure that mean you have copyed those "Makefile" wich mean you only have bypass OS check... (configure check for library and if gcc support some option => produce CC_FLAG)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

Yes, i meant Cmake, sorry, i was confused by the make install.

 

I never did make clean sql, since that gave me something like no rule to make sql (or something similar).

 

 

Cmake : mkdir build && cd build && cmake -G"Unix Makefiles" -DINSTALL_TO_SOURCE=ON .. && make install

 

This is exactly what i did, But i don't know if u read my first post correctly but i removed 

#if !defined(__x86_64__) && !defined(__i386__)
#error Your Target Platfrom is not supported
#endif

from atomic.h because i was getting stuck since I have ARM and no other platform. So i think the error lies there.

 

And i honestly don't know how to do a 'bt full'. I've never developped/ compiled anything on linux, so i'm learning aswell, sorry :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

Oh ok sorry bt full is a gdb function, when you looked the dump with : 'gdb ./map-server_sql ./core'

just do a 'bt full' following it.

I just read the other topic, I'm interest in seeing why the zlib search failed, is that the case even if you specify the zlib.h path with :

./configure --with-zlib=/my/dir/path/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

First i'll start with the zlib:

This is the output after running your command:

root@raspberrypi:/home/rAthena/rAthena# ./configure --with-zlib=/usr/include/zlib.h
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether make sets $(MAKE)... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for ar... /usr/bin/ar
checking whether byte ordering is bigendian... no
checking whether gcc produces 32bit code... yes
checking whether gcc supports __thread specifier (TLS)... no
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -flto... no
checking whether gcc supports -Wno-pointer-sign... no
checking whether gcc supports -Wno-switch... no
checking whether gcc supports -fPIC... no
checking whether gcc supports -fno-strict-aliasing... no
checking whether gcc supports -Wconversion... no
checking for setrlimit... no
checking for strnlen... no
checking for uselocale... no
checking for newlocale... no
checking for freelocale... no
checking xlocale.h usability... no
checking xlocale.h presence... yes
configure: WARNING: xlocale.h: present but cannot be compiled
configure: WARNING: xlocale.h:     check for missing prerequisite headers?
configure: WARNING: xlocale.h: see the Autoconf documentation
configure: WARNING: xlocale.h:     section "Present But Cannot Be Compiled"
configure: WARNING: xlocale.h: proceeding with the compiler's result
checking for xlocale.h... no
checking for inflateEnd in -lz... no
configure: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping

Proof it's there:

Naamloos_zps152c8cdf.png

 

I'll be testing the other part now!

 

 

EDIT: output of the 'bt full'

root@raspberrypi:/home/rAthena/rAthena# gdb ./map-server_sql ./core
GNU gdb (GDB) 7.6.1 (Raspbian 7.6.1-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rAthena/rAthena/map-server_sql...(no debugging symbols found)...done.
/home/rAthena/rAthena/./core: No such file or directory.
(gdb) bt full
No stack.
(gdb)

is this what i'm supposed to do?

Edited by Triplus
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

It's a directory where asking for, you have given him the fullpath =(, remove the filename in it.

[lighta@localhost rathena]$ ls /usr/include/ | grep zlib.h
zlib.h
[lighta@localhost rathena]$ ./configure --with-zlib=/usr/include/

altought since I suppose you're on a 32bit add --disable-64bit into your configure as option. giving you to execute :

./configure --with-zlib=/usr/include/ --disable-64bit

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  


root@raspberrypi:/home/rAthena/rAthena# ./configure --with-zlib=/usr/include/ --disable-64bit

checking for gcc... gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking whether make sets $(MAKE)... yes

checking for gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking how to run the C preprocessor... gcc -E

checking for ar... /usr/bin/ar

checking whether byte ordering is bigendian... no

checking whether pointers can be stored in ints (old code)... yes

checking whether gcc produces 32bit code... yes

checking whether gcc supports __thread specifier (TLS)... no

checking whether gcc supports -Wno-unused-parameter... yes

checking whether gcc supports -flto... no

checking whether gcc supports -Wno-pointer-sign... no

checking whether gcc supports -Wno-switch... no

checking whether gcc supports -fPIC... no

checking whether gcc supports -fno-strict-aliasing... no

checking whether gcc supports -Wconversion... no

checking for setrlimit... no

checking for strnlen... no

checking for uselocale... no

checking for newlocale... no

checking for freelocale... no

checking xlocale.h usability... no

checking xlocale.h presence... yes

configure: WARNING: xlocale.h: present but cannot be compiled

configure: WARNING: xlocale.h: check for missing prerequisite headers?

configure: WARNING: xlocale.h: see the Autoconf documentation

configure: WARNING: xlocale.h: section "Present But Cannot Be Compiled"

configure: WARNING: xlocale.h: proceeding with the compiler's result

checking for xlocale.h... no

checking for inflateEnd in -lz... no

configure: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

ok /sadface, I'd have fix the configure.in for that but I ain't have raspberry yet.

For the bt full you need to compile with -g flag on, idk how to do this with cmake yet.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

Is there any way u could use mine to test things on? I don't have port forwarding setup unfortunattely, but i would be happy to assist if i can :)


EDIT: I also found this on the internet, are u looking for something like this?

 

 

If you want to build for debug (including source information, i.e. -g) when compiling, use

cmake -DCMAKE_BUILD_TYPE=Debug <path>

(http://stackoverflow.com/questions/10005982/how-do-you-set-gdb-debug-flag-with-cmake)


EDIT2;

I re-added this

#if !defined(__x86_64__) && !defined(__i386__)
#error Your Target Platfrom is not supported
#endif

To atomic.h... smart or not?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

hmm yeah we could try, could give me the result of the 'bt full' ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  12/28/13
  • Last Seen:  

Sorry i am in exams and didn't check back. U mean the file that gets generated, or the actual output in (ssh) console?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...