Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue on Windows #38

Open
axtens opened this issue Apr 30, 2021 · 1 comment
Open

Installation issue on Windows #38

axtens opened this issue Apr 30, 2021 · 1 comment
Labels
windows Windows-specific issues

Comments

@axtens
Copy link

axtens commented Apr 30, 2021

  • installed ruby using scoop.
  • navigated to the bin directory and executed ridk install and chose to install and update MSYS2 and the toolchain
  • issued install for sup
  • ncursesw failed to build
current directory: C:/Users/bugma/scoop/apps/ruby/3.0.1-1/lib/ruby/gems/3.0.0/gems/ncursesw-1.4.10
C:/Users/bugma/scoop/apps/ruby/3.0.1-1/bin/ruby.exe -I C:/Users/bugma/scoop/apps/ruby/3.0.1-1/lib/ruby/3.0.0 -r ./siteconf20210430-32832-hb06tz.rb extconf.rb
checking for pkg-config... yes
checking for unistd.h... yes
checking for locale.h... yes
checking for ncursesw/curses.h... yes
checking for wmove() in -lncursesw... yes
checking for newscr()... yes
checking for TABSIZE()... yes
checking for ESCDELAY()... yes
checking for keybound()... yes
checking for curses_version()... yes
checking for tigetstr()... yes
checking for getwin()... yes
checking for putwin()... yes
checking for ungetmouse()... yes
checking for mousemask()... yes
checking for wenclose()... yes
checking for mouseinterval()... yes
checking for wmouse_trafo()... yes
checking for mcprint()... yes
checking for has_key()... yes
checking for delscreen()... yes
checking for define_key()... yes
checking for keyok()... yes
checking for resizeterm()... yes
checking for use_default_colors()... yes
checking for use_extended_names()... yes
checking for wresize()... yes
checking for attr_on()... yes
checking for attr_off()... yes
checking for attr_set()... yes
checking for chgat()... yes
checking for color_set()... yes
checking for filter()... yes
checking for intrflush()... yes
checking for mvchgat()... yes
checking for mvhline()... yes
checking for mvvline()... yes
checking for mvwchgat()... yes
checking for mvwhline()... yes
checking for mvwvline()... yes
checking for noqiflush()... yes
checking for putp()... yes
checking for qiflush()... yes
checking for scr_dump()... yes
checking for scr_init()... yes
checking for scr_restore()... yes
checking for scr_set()... yes
checking for slk_attr_off()... yes
checking for slk_attr_on()... yes
checking for slk_attr()... yes
checking for slk_attr_set()... yes
checking for slk_color()... yes
checking for tigetflag()... yes
checking for tigetnum()... yes
checking for use_env()... yes
checking for vidattr()... yes
checking for vid_attr()... yes
checking for wattr_on()... yes
checking for wattr_off()... yes
checking for wattr_set()... yes
checking for wchgat()... yes
checking for wcolor_set()... yes
checking for getattrs()... yes
checking for ncursesw (wide char) functions...
checking for wget_wch()... yes
checking for add_wch()... yes
checking for get_wch()... yes
checking which debugging functions to wrap...
checking for _tracef()... no
checking for _tracedump()... no
checking for _nc_tracebits()... no
checking for _traceattr()... no
checking for _traceattr2()... no
checking for _tracechar()... no
checking for _tracechtype()... no
checking for _tracechtype2()... no
checking for _tracemouse()... no
checking for other functions that appeared after ncurses version 5.0...
checking for assume_default_colors()... yes
checking for attr_get()... yes
checking for the panel library...
checking for panel.h... yes
checking for panel_hidden() in -lpanelw... yes
checking for the form library...
checking for form.h... yes
checking for new_form() in -lformw... yes
checking for form_driver_w() in -lformw... yes
checking for the menu library...
checking for menu.h... yes
checking for new_menu() in -lmenu... no
checking for various ruby and standard functions..
checking for rb_thread_fd_select()... yes
checking for clock_gettime()... yes
checking for sys/time.h... yes
creating Makefile

current directory: C:/Users/bugma/scoop/apps/ruby/3.0.1-1/lib/ruby/gems/3.0.0/gems/ncursesw-1.4.10
make DESTDIR\= clean

current directory: C:/Users/bugma/scoop/apps/ruby/3.0.1-1/lib/ruby/gems/3.0.0/gems/ncursesw-1.4.10
make DESTDIR\=
generating ncursesw_bin-x64-mingw32.def
compiling form_wrap.c
In file included from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/missing.h:34,
                 from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/defines.h:80,
                 from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/ruby.h:23,
                 from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby.h:38,
                 from form_wrap.h:37,
                 from form_wrap.c:35:
C:/Users/bugma/scoop/apps/msys2/current/mingw64/x86_64-w64-mingw32/include/sys/time.h:42:13: error: conflicting types for 'gettimeofday'
   42 | int __cdecl gettimeofday(struct timeval *__restrict__,
      |             ^~~~~~~~~~~~
In file included from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/internal/dosish.h:38,
                 from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/defines.h:79,
                 from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/ruby.h:23,
                 from C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby.h:38,
                 from form_wrap.h:37,
                 from form_wrap.c:35:
C:/Users/bugma/scoop/apps/ruby/3.0.1-1/include/ruby-3.0.0/ruby/win32.h:304:12: note: previous declaration of 'gettimeofday' was here
  304 | extern int gettimeofday(struct timeval *, struct timezone *);
      |            ^~~~~~~~~~~~
form_wrap.c: In function 'wrap_field':
form_wrap.c:261:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  261 |   VALUE field_adress  = INT2NUM((long)(field));
      |                                 ^
form_wrap.c: In function 'wrap_fieldtype':
form_wrap.c:291:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  291 |   VALUE fieldtype_adress  = INT2NUM((long)(fieldtype));
      |                                     ^
form_wrap.c: In function 'wrap_form':
form_wrap.c:321:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  321 |   VALUE form_adress  = INT2NUM((long)(form));
      |                                ^
form_wrap.c: In function 'get_proc':
form_wrap.c:374:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  374 |   VALUE owner_adress  = INT2NUM((long)(owner));
      |                                 ^
form_wrap.c: In function 'reg_proc':
form_wrap.c:388:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  388 |   VALUE owner_address  = INT2NUM((long)(owner));
      |                                  ^
form_wrap.c: In function 'rbncurs_c_free_form':
form_wrap.c:417:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  417 |   VALUE form_adress  = INT2NUM((long)(form));
      |                                ^
form_wrap.c: In function 'rbncurs_c_free_field':
form_wrap.c:549:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  549 |   VALUE field_adress  = INT2NUM((long)(field));
      |                                 ^
make: *** [Makefile:255: form_wrap.o] Error 1

make failed, exit code 2
@danc86 danc86 transferred this issue from sup-heliotrope/sup Apr 17, 2022
@danc86
Copy link

danc86 commented Apr 17, 2022

Thanks for reporting this. Unfortunately I don't know anything about Windows nor how the build is supposed to work there. Patches would be welcome.

@danc86 danc86 added the windows Windows-specific issues label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Windows-specific issues
Projects
None yet
Development

No branches or pull requests

2 participants