Please tell us which revision you have cloned and if you have any existing instalation of ruby, gcc or something like that.
Sorry for top posting. Sent from mobile.
Hello,
I'm having problems trying to compile it. I'm using windows 7 64bit.
This is my cmd:
*** Ruby Challenge Pack ***
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
Adding the DevKit to PATH...
Adding Knapsack (x86-windows) to the env...
*** Environment is ready! ***
C:\RubyChallenge>quick-compile.bat
---> Configuring
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
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 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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for ld... ld
checking whether the linker is GNU ld... yes
checking whether gcc -E accepts -o... yes
checking for ranlib... ranlib
checking for ar... ar
checking for as... as
checking for objdump... objdump
checking for objcopy... (cached) :
checking for windres... windres
checking for dllwrap... dllwrap
checking for mingw32 runtime DLL... msvcrt
checking for nm... nm
checking whether ln -s works... no, using cp -p
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for dot... no
checking for doxygen... no
checking for pkg-config... no
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 for cd using physical directory... cd
checking whether -Wno-unused-parameter is accepted as CFLAGS... yes
checking whether -Wno-parentheses is accepted as CFLAGS... yes
checking whether -Wno-long-long is accepted as CFLAGS... yes
checking whether -Wno-missing-field-initializers is accepted as CFLAGS... yes
checking whether -Wunused-variable is accepted as CFLAGS... yes
checking whether -Werror=pointer-arith is accepted as CFLAGS... yes
checking whether -Werror=write-strings is accepted as CFLAGS... yes
checking whether -Werror=declaration-after-statement is accepted as CFLAGS... yes
checking whether -Werror=shorten-64-to-32 is accepted as CFLAGS... no
checking whether -Wshorten-64-to-32 is accepted as CFLAGS... no
checking whether -Werror=implicit-function-declaration is accepted as CFLAGS... yes
checking whether -Wall -Wextra is accepted as CFLAGS... yes
checking whether -D_FORTIFY_SOURCE=2 is accepted as CFLAGS... yes
checking whether -fno-strict-overflow is accepted as CFLAGS... yes
checking whether -fvisibility=hidden is accepted as CFLAGS... yes
checking whether -Wl,-unexported_symbol,_Init_* is accepted as LDFLAGS... no
checking whether -fno-omit-frame-pointer is accepted as CFLAGS... yes
checking whether -fno-fast-math is accepted as CFLAGS... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking whether char is unsigned... no
checking for inline... inline
checking for working volatile... yes
checking for long long... yes
checking for off_t... (cached) yes
checking char bit... 8
checking size of int... 0
checking size of short... 2
checking size of long... 4
checking size of long long... 8
checking size of __int64... 8
checking size of off_t... (cached) 8
checking size of void*... 4
checking size of float... 4
checking size of double... 8
checking size of time_t... 4
checking for printf prefix for long long... I64
checking for pid_t... yes
checking for convertible type of pid_t... INT
checking for uid_t... no
checking for convertible type of uid_t... INT
checking for gid_t... no
checking for convertible type of gid_t... INT
checking for time_t... yes
checking for convertible type of time_t... LONG
checking for dev_t... yes
checking for convertible type of dev_t... UINT
checking for mode_t... yes
checking for convertible type of mode_t... UINT
checking for rlim_t... no
checking for convertible type of rlim_t... LONG
checking for prototypes... yes
checking token paste string... ansi
checking stringization... #expr
checking string literal concatenation... yes
checking for variable length prototypes and stdarg.h... yes
checking for variable length macro... yes
checking for noreturn function attribute... __attribute__ ((noreturn)) x
checking for deprecated function attribute... __attribute__ ((deprecated)) x
checking for noinline function attribute... __attribute__ ((noinline)) x
checking for stdcall function attribute... __attribute__ ((stdcall)) x
checking for cdecl function attribute... __attribute__ ((cdecl)) x
checking for fastcall function attribute... __attribute__ ((fastcall)) x
checking for function alias... alias
checking for atomic builtins... yes
checking for __builtin_unreachable... yes
checking for exported function attribute... __attribute__ ((visibility("default")))
checking whether sys_nerr is declared... yes
checking for crypt in -lcrypt... (cached) no
checking for dlopen in -ldl... (cached) no
checking for shl_load in -ldld... no
checking for socketpair in -lsocket... no
checking for clock_gettime in -lrt... no
checking for main in -lunicows... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... (cached) no
checking sys/syscall.h usability... no
checking sys/syscall.h presence... no
checking for sys/syscall.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/fcntl.h usability... yes
checking sys/fcntl.h presence... yes
checking for sys/fcntl.h... yes
checking for sys/select.h... (cached) no
checking for sys/time.h... (cached) no
checking for sys/times.h... (cached) no
checking for sys/param.h... (cached) no
checking syscall.h usability... no
checking syscall.h presence... no
checking for syscall.h... no
checking for pwd.h... (cached) no
checking grp.h usability... no
checking grp.h presence... no
checking for grp.h... no
checking for a.out.h... (cached) no
checking for utime.h... (cached) no
checking direct.h usability... yes
checking direct.h presence... yes
checking for direct.h... yes
checking for sys/resource.h... (cached) no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/utime.h usability... yes
checking sys/utime.h presence... yes
checking for sys/utime.h... yes
checking xti.h usability... no
checking xti.h presence... no
checking for xti.h... no
checking netinet/in_systm.h usability... no
checking netinet/in_systm.h presence... no
checking for netinet/in_systm.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking ucontext.h usability... no
checking ucontext.h presence... no
checking for ucontext.h... no
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking langinfo.h usability... no
checking langinfo.h presence... no
checking for langinfo.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/sendfile.h usability... no
checking sys/sendfile.h presence... no
checking for sys/sendfile.h... no
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for net/socket.h... (cached) no
checking for sys/socket.h... (cached) no
checking process.h usability... yes
checking process.h presence... yes
checking for process.h... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking for size_t... yes
checking size of size_t... 4
checking size of ptrdiff_t... 4
checking for printf prefix for size_t... NONE
checking for printf prefix for ptrdiff_t... NONE
checking for struct stat.st_blksize... no
checking for struct stat.st_blocks... no
checking for struct stat.st_rdev... yes
checking size of struct stat.st_size... SIZEOF_INT
checking for struct stat.st_atim... no
checking for struct stat.st_atimespec... no
checking for struct stat.st_atimensec... no
checking for struct stat.st_mtim... no
checking for struct stat.st_mtimespec... no
checking for struct stat.st_mtimensec... no
checking for struct stat.st_ctim... no
checking for struct stat.st_ctimespec... no
checking for struct stat.st_ctimensec... no
checking for struct timespec... no
checking for struct timezone... no
checking for clockid_t... no
(cached) checking for int8_t... yes
checking size of int8_t... 1
checking for uint8_t... yes
checking size of uint8_t... 1
checking for int16_t... yes
checking size of int16_t... 2
checking for uint16_t... yes
checking size of uint16_t... 2
checking for int32_t... yes
checking size of int32_t... 4
checking for uint32_t... yes
checking size of uint32_t... 4
checking for int64_t... yes
checking size of int64_t... 8
checking for uint64_t... yes
checking size of uint64_t... 8
checking for int128_t... no
checking for uint128_t... no
checking for intptr_t... yes
checking size of intptr_t... 4
checking for uintptr_t... yes
checking size of uintptr_t... 4
checking for ssize_t... yes
checking size of ssize_t... 4
checking for stack end address... no
checking for gc_mark and gc_children stack frame approximate size(word)... 29
checking for uid_t in sys/types.h... (cached) no
checking type of array argument to getgroups... int
checking return type of signal handlers... void
checking for working alloca.h... no
checking for alloca... yes
checking for dynamic size alloca... ok
checking for working memcmp... (cached) yes
checking for broken erfc of glibc-2.3.6 on IA64... no
checking for dup2... yes
checking for memmove... no
checking for strerror ... no
checking for strchr... no
checking for strstr... no
checking for crypt... no
checking for flock ... no
checking for isnan... (cached) yes
checking for finite... (cached) yes
checking for isinf... (cached) yes
checking for hypot... no
checking for acosh... no
checking for erf... no
checking for tgamma... no
checking for lgamma_r... no
checking for cbrt... no
checking for ... no
checking for strlcpy... no
checking for strlcat... no
checking for ffs... no
checking for setproctitle... no
checking for signbit... no
checking for fmod... no
checking for killpg... no
checking for wait4... no
checking for waitpid... (cached) yes
checking for fork... no
checking for spawnv... no
checking for syscall... no
checking for __syscall... no
checking for chroot... no
checking for getcwd... no
checking for eaccess... no
checking for truncate... no
checking for ftruncate... no
checking for ftello... no
checking for chsize... no
checking for times... (cached) yes
checking for utimes... no
checking for utimensat... no
checking for fcntl... (cached) yes
checking for lockf... no
checking for lstat... no
checking for truncate64... no
checking for ftruncate64... no
checking for ftello64... no
checking for fseeko... (cached) yes
checking for fseeko64... no
checking for link... (cached) yes
checking for symlink... no
checking for readlink... no
checking for readdir_r... no
checking for fsync... (cached) yes
checking for fdatasync... no
checking for fchown... no
checking for posix_fadvise... no
checking for setitimer... no
checking for setruid... no
checking for seteuid... no
checking for setreuid... no
checking for setresuid... no
checking for socketpair... no
checking for setrgid... no
checking for setegid... no
checking for setregid... no
checking for setresgid... no
checking for issetugid... no
checking for pause... no
checking for lchown... no
checking for lchmod... no
checking for getpgrp... no
checking for setpgrp... no
checking for getpgid... no
checking for setpgid... no
checking for initgroups... no
checking for getgroups... no
checking for setgroups... no
checking for getpriority... no
checking for getrlimit... no
checking for setrlimit... no
checking for sysconf... no
checking for close... no
checking for getpwnam_r... no
checking for getgrnam_r... no
checking for dlopen... no
checking for sigprocmask... no
checking for sigaction... no
checking for sigsetjmp... no
checking for _setjmp... no
checking for _longjmp... no
checking for setsid... no
checking for telldir... (cached) yes
checking for seekdir... (cached) yes
checking for fchmod... no
checking for cosh... no
checking for sinh... no
checking for tanh... no
checking for log2... no
checking for round... no
checking for llabs... no
checking for setuid... no
checking for setgid... no
checking for daemon... (cached) no
checking for select_large_fdset... no
checking for setenv... no
checking for unsetenv... no
checking for mktime... no
checking for timegm... no
checking for gmtime_r... (cached) yes
checking for clock_gettime... no
checking for gettimeofday... no
checking for poll... no
checking for ppoll... no
checking for pread... no
checking for sendfile... no
checking for shutdown... no
checking for sigaltstack... no
checking for dl_iterate_phdr... no
checking for dup3... no
checking for pipe2... no
checking for posix_memalign... no
checking for memalign... no
checking for ioctl... no
checking for unsetenv returns a value... no
checking for __builtin_setjmp... no
checking for setjmp type... setjmp
checking whether struct tm is in sys/time.h or time.h... sys/time.h
checking for struct tm.tm_zone... no
checking whether tzname is declared... no
checking for tzname... no
checking for struct tm.tm_gmtoff... no
checking for external int daylight... no
checking for external timezone... no
checking for external altzone... no
checking for timezone... no
checking for negative time_t for gmtime(3)... (cached) no
checking for localtime(3) overflow correctly... no
checking for sigsetmask... no
checking for BSD signal semantics... no
checking whether getpgrp requires zero arguments... (cached) no
checking whether right shift preserve sign bit... no
checking read count field in FILE structures... not found (OK if using GNU libc)
checking read buffer ptr field in FILE structures... not found
checking size of struct stat.st_ino... 0
checking whether struct dirent.d_name is too small... no
checking stack growing direction on i386... -1
checking for backtrace... no
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking whether ELF binaries are produced... (cached) no
checking whether OS depend dynamic link works... yes
checking for strip... strip
checking whether -Wl,--no-undefined is accepted as LDFLAGS... no
checking for prefix of external symbols... NONE
checking for nroff... no
checking for awf... no
.ext/include/i386-mingw32/ruby/config.h updated
verconf.h unchanged
ruby library version = 2.0.0
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.0.pc
---> Compiling
CC = gcc
LD = ld
LDSHARED = gcc -shared -s
CFLAGS = -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno
-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declara
tion-after-statement -Werror=implicit-function-declaration
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fvisibility=h
idden -DRUBY_EXPORT
CPPFLAGS = -DFD_SETSIZE=32767 -D_WIN32_WINNT=0x0501 -I. -I.ext/include/i386-mingw32 -I./include -I.
DLDFLAGS = -Wl,--enable-auto-image-base,--enable-auto-import -Wl,--out-implib=libmsvcrt-ruby200.dll.a msvcrt-rub
y200.def -Wl,--stack,0x00200000,--enable-auto-import
SOLIBS = msvcrt-ruby200.res.o -lshell32 -lws2_32 -limagehlp
compiling main.c
In file included from <command-line>:0:0:
.ext/include/i386-mingw32/ruby/config.h:127:9: error: macro names must be identifiers
.ext/include/i386-mingw32/ruby/config.h:129:9: error: macro names must be identifiers
.ext/include/i386-mingw32/ruby/config.h:131:9: error: macro names must be identifiers
.ext/include/i386-mingw32/ruby/config.h:133:9: error: macro names must be identifiers
In file included from <command-line>:0:0:
./include/ruby/missing.h:214:17: error: expected identifier or '(' before 'sizeof'
In file included from ./include/ruby.h:32:0,
from main.c:13:
./include/ruby/ruby.h:107:14: error: size of array 'ruby_check_sizeof_int' is negative
make: *** [main.o] Error 1
---> Something went wrong :-(
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyinstaller/-/Savy3v0Ike4J.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
On Tue, Jun 26, 2012 at 10:51 AM, lizzy leiz <liz...@gmail.com> wrote:
> El martes, 26 de junio de 2012 03:21:26 UTC-3, Luis Lavena escribió:
>>
>> Please tell us which revision you have cloned and if you have any existing
>> instalation of ruby, gcc or something like that.
>
> I cloned trunk from github.com/ruby/ruby, commit
> 9ac51c29930fa92a32186e7c217fa219915487c6. I go back in history about 10
> commits but it's the same.
>
I just tried the same commit and worked.
However, I took the output from your first message (the configure output)
And compared against my local build. Here is the diff:
https://gist.github.com/074f5fd3a4934161e575
You will notice that is failing to obtain the size of int, functions
like memmove and others.
This might indicate that there is something else interfering with the
configure process, which is resulting in broken information.
Do you have cygwin or another MinGW installation that is always in the PATH?
Do you have something like ANSICON installed in the AutoRun section?
(if you used ansicon -i)
Can you check the config.log for the first lines, when it check for
size of int, what is the command output?
If you can attach config.log (and not paste since is too big) will be great.