Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

runtime/parrot/library/SDL/*.pir bitrot #601

Closed
coke opened this Issue Feb 28, 2010 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

coke commented Feb 28, 2010

$ make runtime/parrot/library/SDL/StopWatch.pbc./parrot -o runtime/parrot/library/SDL/StopWatch.pbc runtime/parrot/library/SDL/StopWatch.pir
error:imcc:The opcode 'setattribute_p_i_p' (setattribute<3>) was not found. Check the type and number of the arguments
        in file 'runtime/parrot/library/SDL/StopWatch.pir' line 78
make: *** [runtime/parrot/library/SDL/StopWatch.pbc] Error 2
$ make runtime/parrot/library/SDL/Surface.pbc./parrot -o runtime/parrot/library/SDL/Surface.pbc runtime/parrot/library/SDL/Surface.pir
error:imcc:syntax error, unexpected DOT ('.')
        in file 'runtime/parrot/library/SDL/Surface.pir' line 148
error:imcc:syntax error, unexpected DOT ('.')
        in file 'runtime/parrot/library/SDL/Surface.pir' line 152
error:imcc:syntax error, unexpected DOT ('.')
        in file 'runtime/parrot/library/SDL/Surface.pir' line 156
make: *** [runtime/parrot/library/SDL/Surface.pbc] Error 1

looks like none of the SDL pir files are built by default, or this would have been caught much sooner.

Originally http://trac.parrot.org/parrot/ticket/1485

@rurban rurban self-assigned this Mar 6, 2014

Member

rurban commented Mar 6, 2014

The biggest problem is the removal of the t nci signature, the rest was easily fixed.
But ncurses, Curses, SDL and postgres also need 234.
And ncurses requires b for two functions

e.g.

$ git grep dlfunc | egrep ", '.*[234]"
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'field_info', 'ip333333'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'dynamic_field_info', 'ip333'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'scale_form', 'ip33'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'addchnstr', 'i4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'addchstr', 'i4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'attr_get', 'i42p'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'color_content', 'is222'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'inchnstr', 'i4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'inchstr', 'i4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvaddchnstr', 'iii4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvaddchstr', 'iii4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvinchstr', 'iii4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvwaddchnstr', 'ipii4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvwaddchstr', 'ipii4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvwinchnstr', 'ipii4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mvwinchstr', 'ipii4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'pair_content', 'is22'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'waddchnstr', 'ip4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'waddchstr', 'ip4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'wattr_get', 'ip42p'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'winchnstr', 'ip4i'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mousemask', 'll4'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'wmouse_trafo', 'lp33l'
runtime/parrot/library/Curses.pir:dlfunc $P2, $P1, 'mouse_trafo', 'l33l'
runtime/parrot/library/SDL.pir:    dlfunc nci_sub, ttf_lib, 'TTF_SizeText', 'ipt33'
runtime/parrot/library/SDL.pir:    dlfunc nci_sub, ttf_lib, 'TTF_SizeUTF8', 'ipt33'
runtime/parrot/library/SDL.pir:    dlfunc nci_sub, ttf_lib, 'TTF_SizeUNICODE', 'ipt33'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'field_info', 'ip333333'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'dynamic_field_info', 'ip333'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'scale_form', 'ip33'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'addchnstr', 'i4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'addchstr', 'i4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'attr_get', 'i42p'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'color_content', 'is222'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'inchnstr', 'i4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'inchstr', 'i4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvaddchnstr', 'iii4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvaddchstr', 'iii4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvinchstr', 'iii4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvwaddchnstr', 'ipii4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvwaddchstr', 'ipii4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvwinchnstr', 'ipii4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mvwinchstr', 'ipii4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'pair_content', 'is22'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'waddchnstr', 'ip4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'waddchstr', 'ip4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'wattr_get', 'ip42p'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'winchnstr', 'ip4i'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mousemask', 'll4'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'wmouse_trafo', 'lp33l'
runtime/parrot/library/ncurses.pir:dlfunc $P2, $P1, 'mouse_trafo', 'l33l'
runtime/parrot/library/postgres.pir:# TODO $P2 = dlfunc $P1, 'PQsendQueryParams', 'iptiit33i'
runtime/parrot/library/postgres.pir:# TODO $P2 = dlfunc $P1, 'PQsendQueryPrepared', 'iptit33i'
runtime/parrot/library/postgres.pir:# TODO $P2 = dlfunc $P1, 'PQfn', 'ppi33ipi'
runtime/parrot/library/postgres.pir:# TODO $P2 = dlfunc $P1, 'PQescapeBytea', 'ppl4'
runtime/parrot/library/postgres.pir:# TODO $P2 = dlfunc $P1, 'PQunescapeBytea', 'pp4'
runtime/parrot/library/postgres.pir:    $P2 = dlfunc $P1, 'PQenv2encoding', 'i'

Work in branch rurban/SDL and rurban/t-nci-sig-gh601

@rurban rurban pushed a commit that referenced this issue Jan 13, 2015

Reini Urban ChangeLog for rurban/t-nci-sig
SDL is now usable again. #436, #601, #605
af352fd

@rurban rurban pushed a commit that referenced this issue Jan 13, 2015

Reini Urban SDL: fight bitrot: wrong library/ paths, find_global GH #601 2c68a01

@rurban rurban pushed a commit that referenced this issue Jan 13, 2015

Reini Urban nci: bring back t sig, for nci cstring support
WIP. needed in most external code. #601
26e92ab

@rurban rurban pushed a commit that referenced this issue Jan 13, 2015

Reini Urban nci: re-add old nci tests for t,2,3,4 [GH #601]
WIP
31c2a91

@rurban rurban pushed a commit that referenced this issue Jan 13, 2015

Reini Urban ChangeLog for rurban/t-nci-sig-gh601
SDL is now usable again. #436, #601, #605
492aaaf

@rurban rurban referenced this issue Jan 14, 2015

Closed

improved NCI/FFI #255

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban SDL: fight bitrot: wrong library/ paths, find_global GH #601 ba3c23e

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban nci: bring back t sig, for nci cstring support
WIP. needed in most external code. #601
1223615

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban nci: re-add old nci tests for t,2,3,4 [GH #601]
WIP
858fe73

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban ChangeLog for rurban/t-nci-sig-gh601
SDL is now usable again. #436, #601, #605
b6ae4c2

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban SDL: fight bitrot: wrong library/ paths, find_global GH #601 3ce48cf

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban nci: bring back t sig, for nci cstring support
WIP. needed in most external code. #601
721ca73

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban nci: re-add old nci tests for t,2,3,4 [GH #601]
WIP
d49cce7

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban ChangeLog for rurban/t-nci-sig-gh601
SDL is now usable again. #436, #601, #605
96b9985

@rurban rurban pushed a commit that referenced this issue Jan 14, 2015

Reini Urban SDL: fight bitrot: wrong library/ paths, find_global GH #601 0d3a067
Member

rurban commented Jan 14, 2015

Fixed all the nci issues (missing t234) and also fixed some old ops. There are some SDL problems going on, which will be fixed in subsequent tickets.

@rurban rurban closed this Jan 14, 2015

@rurban rurban pushed a commit that referenced this issue Jan 18, 2015

Reini Urban [nci] fix 234 call_ffi calculation for cornercases
failed on cygwin 32bit with INTVAL_SIZE=8, but probably also on
all other special --intval and pointer sizes.
Calculate the slack for INTVAL dynamically.
Use it internally +1 for the switch fallthru. Improves GH #601
1d934de

@rurban rurban pushed a commit that referenced this issue Jan 19, 2015

Reini Urban [nci] fix new libffi code for big-endian
wrong pointer for nci sigs 2, 3. See GH #601.
87bd85b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment