mateczek |
» 2016-03-29 08:43:55 jeśli chodzi o pierwszą część to jest dla mnie zagadka dropsa bo skoro w terminalu gcc Ci widzi a skrypt configure go nie wykrywa to jest dla mnie conajmniej dziwne!
niewidoczność "make" wynika pewnie z jego niezainstalowania. więc musisz jeszcze raz odpalić instalator cygwina i wyszukać make i doinstalować :(
no chyba, że skusisz się na Ubuntu linux :P http://www.ubuntu.com/download/desktop |
|
j23 |
» 2016-03-29 11:23:30 @osobliwy_nick, przenieś kompilator do innego katalogu, tak żeby nie było spacji w ścieżce. Jeśli to nie zadziała, zamiast Cygwina użyj MSYS. |
|
mateczek |
» 2016-03-29 12:57:25 Postanowiłem to sprawdzić na widnowsie i potwierdzam radę j23 !!! O ile widoczność kompilatora nie stanowiła u mnie problemu (mingw IDE do Qt C:\Qt\Qt5.5.1\Tools\mingw492_32) o tyle w cygwin później pojawia się inny problem z symlinkami dość trudny do obejścia. http://stackoverflow.com/questions/15972462/build-gmp-on-windows-32-bit Przesiadka na msys rozwiązuje problem i biblioteka się kompiluje ./configure --prefix=${gmp_install} --enable-shared --disable-static --enable-cxx
--enable-cxx - włączenie wsparcia dla c++ |
|
osobliwy_nick Temat założony przez niniejszego użytkownika |
» 2016-03-29 18:44:51 Przeniosłem tego Cygwina i zaczęło się kompilować do czasu:
$ ./configure --prefix=${gmp_install} checking build system type... i686-pc-cygwin checking host system type... i686-pc-cygwin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking whether make supports nested variables... no checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=32 checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... yes checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer has sizeof(long)== 4... yes checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro ... yes checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro... yes 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 whether gcc understands -c and -o together... yes checking for gcc option to accept ISO C99... -std=gnu99 checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu 99 checking how to run the C preprocessor... gcc -std=gnu99 -E checking build system compiler gcc -std=gnu99... yes checking for build system preprocessor... gcc -std=gnu99 -E checking for build system executable suffix... .exe checking whether build system compiler is ANSI... yes checking for build system compiler math library... -lm checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E using ABI="32" CC="gcc -std=gnu99" CFLAGS="-m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=p entiumpro" CPPFLAGS="" MPN_PATH=" x86/p6 x86 generic" checking whether assembler supports --noexecstack option... no checking for ar... ar checking for BSD- or MS-compatible name lister (nm)... /cygdrive/c/Program Files (x86)/Dev-Cpp/MinGW64/bin/nm -B checking the name lister (/cygdrive/c/Program Files (x86)/Dev-Cpp/MinGW64/bin/nm -B) interface... BSD nm checking for as... as checking for dlltool... dlltool checking for objdump... objdump checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc -std=gnu99... C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/bin/ld.exe checking if the linker (C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... no checking whether ln -s works... yes checking the maximum length of command line arguments... 8192 checking how to convert i686-pc-cygwin file names to i686-pc-cygwin format... fu nc_convert_file_noop checking how to convert i686-pc-cygwin file names to toolchain format... func_co nvert_file_noop checking for C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/bin/ld.exe option to reload object file s... -r checking for objdump... (cached) objdump checking how to recognize dependent libraries... file_magic ^x86 archive import| ^x86 DLL checking for dlltool... (cached) dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_imp lib checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /cygdrive/c/Program Files (x86)/Dev-Cpp/MinGW64/bin/nm -B output from gcc -std=gnu99 object... failed checking for sysroot... no checking for a working dd... ./configure: line 14302: cmp: command not found
checking how to truncate binary pipes... /usr/bin/sed -e 4q checking for mt... no checking if : is a manifest tool... 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 for dlfcn.h... no checking for objdir... .libs checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... ./configure: li ne 16102: diff: command not found no checking for gcc -std=gnu99 option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc -std=gnu99 static flag -static works... yes checking if gcc -std=gnu99 supports -c -o file.o... yes checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -std=gnu99 linker (C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries.. . yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking invent.h usability... no checking invent.h presence... no checking for invent.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 nl_types.h usability... no checking nl_types.h presence... no checking for nl_types.h... no checking sys/attributes.h usability... no checking sys/attributes.h presence... no checking for sys/attributes.h... no checking sys/iograph.h usability... no checking sys/iograph.h presence... no checking for sys/iograph.h... no checking sys/mman.h usability... no checking sys/mman.h presence... no checking for sys/mman.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/processor.h usability... no checking sys/processor.h presence... no checking for sys/processor.h... no checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking sys/sysinfo.h usability... no checking sys/sysinfo.h presence... no checking for sys/sysinfo.h... no checking sys/syssgi.h usability... no checking sys/syssgi.h presence... no checking for sys/syssgi.h... no checking sys/systemcfg.h usability... no checking sys/systemcfg.h presence... no checking for sys/systemcfg.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... no checking sys/times.h presence... no checking for sys/times.h... no checking for sys/resource.h... no checking for sys/sysctl.h... no checking for machine/hal_sysinfo.h... no checking whether fgetc is declared... yes checking whether fscanf is declared... yes checking whether optarg is declared... yes checking whether ungetc is declared... yes checking whether vfprintf is declared... yes checking whether sys_errlist is declared... no checking whether sys_nerr is declared... no checking return type of signal handlers... void checking for intmax_t... yes checking for long double... yes checking for long long... yes checking for ptrdiff_t... yes checking for quad_t... no checking for uint_least32_t... yes checking for intptr_t... yes checking for working volatile... yes checking for C/C++ restrict keyword... __restrict checking whether gcc __attribute__ ((const)) works... yes checking whether gcc __attribute__ ((malloc)) works... yes checking whether gcc __attribute__ ((mode (XX))) works... yes checking whether gcc __attribute__ ((noreturn)) works... yes checking whether gcc hidden aliases work... yes checking for inline... inline checking for working alloca.h... no checking for alloca (via gmp-impl.h)... yes checking how to allocate temporary memory... alloca checking whether byte ordering is bigendian... no checking format of `double' floating point... IEEE little endian checking for alarm... yes checking for attr_get... no checking for clock... yes checking for cputime... no checking for getpagesize... yes checking for getrusage... no checking for gettimeofday... yes checking for getsysinfo... no checking for localeconv... yes checking for memset... yes checking for mmap... no checking for mprotect... yes checking for nl_langinfo... no checking for obstack_vprintf... no checking for popen... yes checking for processor_info... no checking for pstat_getprocessor... no checking for raise... yes checking for read_real_time... no checking for sigaction... no checking for sigaltstack... no checking for sigstack... no checking for syssgi... no checking for strchr... yes checking for strerror... yes checking for strnlen... yes checking for strtol... yes checking for strtoul... yes checking for sysconf... no checking for sysctl... no checking for sysctlbyname... no checking for times... no checking for library containing clock_gettime... none required checking for vsnprintf... yes checking whether vsnprintf works... no checking whether sscanf needs writable input... no checking for struct pst_processor.psp_iticksperclktick... no checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). configure: WARNING: cache variable lt_cv_path_LD contains a newline
|
|
mateczek |
» 2016-03-29 19:19:52 Jak już napisałem sprawdziłem tą kompilację na windows. Narazie brakuje Ci programu m4 (macro processo) możesz zainstalować z poziomu instalatora cygwin(odpal instalator wyszukaj m4 a następnie doinstaluj makro-procesor m4) potem jeszcze "make" będzie Ci brakować (z make tak samo jak z m4) Na koniec sypnie się synklinami link do problemu podałem wyżej(a tego nie wiem jak obejść :P) msys w wersji http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe poradził sobie z kompilacją tej biblioteki
|
|
osobliwy_nick Temat założony przez niniejszego użytkownika |
» 2016-03-30 07:36:29 W MSYS też mam jakiś problem.
$ ./configure --prefix=${gmp_install} m.AllocationBase 0x0, m.BaseAddress 0x71110000, m.RegionSize 0xD0000, m.State 0x10000 C:\msys\1.0\bin\sed.exe: *** Couldn't reserve space for cygwin's heap (0x71110000 <0xBE0000>) in child, Win32 error 0 m.AllocationBase 0x0, m.BaseAddress 0x71110000, m.RegionSize 0xD0000, m.State 0x10000 C:\msys\1.0\bin\ls.exe: *** Couldn't reserve space for cygwin's heap (0x71110000 <0xE60000>) in child, Win32 error 0 configure: error: working directory cannot be determined
Swoją drogą czy w PATH powinienem też podawać jakieś ścieżki do MSYS lub Cygwina?
EDIT:
Za drugim razem poszło dalej. Napiszę później, czy się udało ;)
EDIT2:
Chyba znowu nie dobrnęło do końca:
checking how to switch to read-only data section... .section .rdata,"dr" checking for assembler .type directive... checking for assembler .size directive... checking for assembler local label prefix... configure: WARNING: "/c/Program Files (x86)/Dev-Cpp/MinGW64/bin/nm -B" failure configure: WARNING: cannot determine local label, using default L L checking for assembler byte directive... .byte checking how to define a 32-bit word... ./configure: line 26265: /c/Program: No such file or directory ./configure: line 26265: /c/Program: No such file or directory configure: error: cannot determine how to define a 32-bit word configure: WARNING: cache variable lt_cv_path_LD contains a newline m.AllocationBase 0x0, m.BaseAddress 0x71110000, m.RegionSize 0xD0000, m.State 0x10000 C:\msys\1.0\bin\sort.exe: *** Couldn't reserve space for cygwin's heap (0x71110000 <0xC20000>) in child, Win32 error 0
|
|
j23 |
» 2016-03-30 14:41:51 Dziwne, może antywirus coś miesza. Wyłącz go na czas kompilacji. |
|
osobliwy_nick Temat założony przez niniejszego użytkownika |
» 2016-03-30 17:49:20 Wyłączyłem i teraz kończy się na tym:
checking how to switch to read-only data section... .section .rdata,"dr" checking for assembler .type directive... checking for assembler .size directive... checking for assembler local label prefix... configure: WARNING: "/c/Program Files (x86)/Dev-Cpp/MinGW64/bin/nm -B" failure configure: WARNING: cannot determine local label, using default L L checking for assembler byte directive... .byte checking how to define a 32-bit word... ./configure: line 26265: /c/Program: No such file or directory ./configure: line 26265: /c/Program: No such file or directory configure: error: cannot determine how to define a 32-bit word configure: WARNING: cache variable lt_cv_path_LD contains a newline |
|
1 2 « 3 » 4 5 6 7 8 |