Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 29, 2018, 16:23   #1
kandrc
Swordsman
 
Join Date: Dec 2007
Posts: 284
kandrc is on a distinguished road
Compilation issue with gfb594ca

I've been away from the game since early in the year. Did a pull this morning and then rebuilt.

The build generated a number of warnings. I'm using gcc 8.2.0 which has some new (or new-ish, I was previously using gcc 4.1) warnings about fall-throughs in switches. The warnings can be suppressed with a comment, "/* fall through */", where fall-throughs are desired. Here are the locations where I had to add them to get a clean compile:

Code:
effects.c:4805:                /* fall through */
obj-pile.c:535:                /* fall through */
player-birth.c:790:                        /* fall through */
ui-birth.c:1054:                                /* fall through */
ui-target.c:1122:                                        /* fall through */
I was a bit surprised that in effects.c I didn't need 4 separate comments.

GCC 8 comes with many annoyances. In one of my projects, it complained about space for snprintf() when converting ints; it assumes that all int conversions require 11 bytes (negative 2.1 billion), while my ints were constrained to 2 bytes. Had to use a hideous set of pragmas to suppress the warnings.
kandrc is offline   Reply With Quote
Old November 29, 2018, 20:27   #2
kandrc
Swordsman
 
Join Date: Dec 2007
Posts: 284
kandrc is on a distinguished road
Just had this crash:

Code:
Program received signal SIGSEGV, Segmentation fault.
0x000000000048b3b7 in tval_is_book_k (kind=0x0) at obj-tval.c:336
336             switch (kind->tval) {
(gdb) print kind
$1 = (const struct object_kind *) 0x0
(gdb) bt
#0  0x000000000048b3b7 in tval_is_book_k (kind=0x0) at obj-tval.c:336
#1  0x000000000047d047 in make_object (c=0xca3198, lev=38, good=true, 
    great=false, extra_roll=false, value=0x7fffffffd5fc, tval=25)
    at obj-make.c:1129
#2  0x0000000000436ade in place_object (c=0xca3198, y=18, x=144, level=38, 
    good=true, great=false, origin=5 '\005', tval=25) at gen-util.c:465
#3  0x000000000043194c in build_vault (c=0xca3198, y0=24, x0=154, v=0x99bcd8)
    at gen-room.c:1363
#4  0x0000000000431b1f in build_vault_type (c=0xca3198, y0=66, x0=188, 
    typ=0x50905c "Medium vault (new)") at gen-room.c:1403
#5  0x000000000043488e in build_medium_vault (c=0xca3198, y0=66, x0=188, 
    rating=0) at gen-room.c:2512
#6  0x0000000000435f26 in room_build (c=0xca3198, by0=0, bx0=0, profile=..., 
    finds_own_space=true) at gen-room.c:3076
#7  0x00000000004298f6 in modified_chunk (depth=35, height=66, width=188)
    at gen-cave.c:1720
#8  0x0000000000429e42 in modified_gen (p=0x959aa8, min_height=0, min_width=0)
    at gen-cave.c:1825
#9  0x0000000000424263 in cave_generate (p=0x959aa8, height=0, width=0)
    at generate.c:983
#10 0x00000000004254af in prepare_next_level (c=0x764ea0 <cave>, p=0x959aa8)
    at generate.c:1350
#11 0x0000000000421ec7 in run_game_loop () at game-world.c:1087
---Type <return> to continue, or q <return> to quit---
#12 0x00000000004c047c in play_game (new_game=false) at ui-game.c:435
#13 0x00000000004f96f4 in main (argc=1, argv=0x7fffffffdbb8) at main.c:528
Also, running doesn't seem to work with the roguelike keyset (using X11 interface).
kandrc is offline   Reply With Quote
Old November 29, 2018, 20:59   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,220
Donated: $60
Nick is on a distinguished road
Thanks for the reports. That crash looks like my fault; I'll have to chase down the precise problem, but the stack trace really helps.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sil: compilation of annoying deaths BlueFish Sil 170 July 16, 2017 01:58
FAangband - Compilation problem, need help. arsen12 Development 1 February 6, 2016 05:34
Compilation problem of game-cmd.c Azerath Development 5 June 29, 2011 23:47
Compilation problem (Windows 7) PowerWyrm Development 1 November 16, 2010 18:39
Compilation issues. Tiburon Silverflame Development 8 March 1, 2010 21:34


All times are GMT +1. The time now is 13:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.