Error Cannot Determine How To Define A 32-bit Word
[ subject ] [ author ] Hi, It was already reported here: http://gmplib.org/list-archives/gmp-bugs/2010-February/001848.html but it is still not fixed in the newest gmp release (5.0.2). How to reproduce: On a Linux/glibc/x86_64 system with coreutils 8.12 installed (it contains a program called 'link'), do $ tar xvfz gmp-5.0.2.tar.gz $ cd gmp-5.0.2 $ ./configure --host=x86_64-pc-linux-gnu ... checking for BSD- or MS-compatible name lister (nm)... no checking for x86_64-pc-linux-gnu-dumpbin... no checking for x86_64-pc-linux-gnu-link... no checking for dumpbin... no checking for link... link -dump -symbols checking the name lister (link -dump -symbols) interface... BSD nm ... checking if globals are prefixed by underscore... link: invalid option -- 'd' Try `link --help' for more information. unknown configure: WARNING: +---------------------------------------------------------- configure: WARNING: | Cannot determine global symbol prefix. configure: WARNING: | link -dump -symbols output doesn't contain a global data symbol. configure: WARNING: | Will proceed with no underscore. configure: WARNING: | If this is wrong then you'll get link errors referring configure: WARNING: | to ___gmpn_add_n (note three underscores). configure: WARNING: | In this case do a fresh build with an override, configure: WARNING: | ./configure gmp_cv_asm_underscore=yes configure: WARNING: +---------------------------------------------------------- checking how to switch to read-only data section... .section .rodata checking for assembler .type directive... .type $1,@$2 checking for assembler .size directive... .size $1,$2 checking for assembler local label prefix... configure: WARNING: "link -dump -symbols" 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... link: invalid option -- 'd' Try `link --help' for more information. link: invalid option -- 'd' Try `link --help' for more information. configure: error: cannot determine how to define a 32-bit word The problem was discussed in the threads at http://gmplib.org/list-archives/gmp-bugs/2010-December/002151.html http://lists.gnu.org/archive/h
define 32-bit Pages: 1 #1 2014-03-27 16:22:44 murukesh Member Registered: 2013-06-11 Posts: 18 [Solved] Compiling gmp-4.3.2: cannot determine how to define 32-bit I'm trying to compile gcc-4.7.2, for which I need to compile gmp-4.3.2. However, when I run ./configure for gmp-4.3.2, I get this:+ ./configure --prefix=/opt/gcc-4.7.2 --enable-cxx checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes https://gmplib.org/list-archives/gmp-bugs/2012-January/002499.html checking whether to enable maintainer-specific portions of Makefiles... no checking ABI=64 checking compiler gcc -O2 -pedantic -m64 ... yes checking compiler gcc -O2 -pedantic -m64 -mtune=k8... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking https://bbs.archlinux.org/viewtopic.php?id=179156 for suffix of executables... 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 for gcc option to accept ISO C99... -std=gnu99 checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99 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... checking whether build system compiler is ANSI... yes checking for build system compiler math library... -lm checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking C++ compiler g++ -O2 -pedantic -m64 -mtune=k8... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E using ABI="64" CC="gcc -std=gnu
here for a quick overview of the site Help Center Detailed answers to http://stackoverflow.com/questions/5153231/getting-gmp-to-work-with-gcc-4-5-2 any questions you might have Meta Discuss the workings and http://lists.openmoko.org/pipermail/openmoko-devel/2007-February/000353.html policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community error cannot Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting GMP to work with GCC 4.5.2 up vote 2 down vote favorite 1 I'm trying to make a cross compiler with the files from http://crossgcc.rts-software.org/doku.php?id=i386linuxgccformac I'm error cannot determine on an Intel Mac (10.6.6, x86_64) I compiled: gmp, mpfr, mpc for the cross compiler as 32bit (as I'm on a 64bit Mac) but I'm getting ld: warning: option -s is obsolete and being ignored ld: warning: ignoring file /gmp1/lib/libmpc.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: ignoring file /gmp1/lib/libmpfr.dylib, file was built for unsupported file format which is not the architecture being linked (i386) ld: warning: ignoring file /gmp1/lib/libgmp.dylib, file was built for unsupported file format which is not the architecture being linked (i386) When compiling GCC with: --prefix=/usr/local/i386-linux-4.5.2 --target=i386-linux --enable-languages=c --without-headers --disable-shared --disable-threads --disable-nls --with-gmp=/gmp1 --with-gmp-lib=/gmp1 --with-gmp-include=/gmp1 --with-mpfr=/gmp1 --with-mpfr-include=/gmp1 --with-mpfr-lib=/gmp1 --with-mpc=/gmp1 --with-mpc-lib=/gmp1 --with-mpc-include=/gmp1 Also, if I compile GMP with: ./configure --prefix=/gmp1 --host=i386-linux I get: configure: WARNING: +---------------------------------------------------------- configure: WARNING: | Cannot determine global symbol prefix. configure: WARNING: | link -dump -symbols output doesn't contain a global data symbol. configure: WAR
] [ subject ] [ author ] Hi... Im trying to setup my env, using OE GetStarted tutorial... when I try to build some package (any) I finish with 'cannot determine how to define a 32-bit' error (log at the bottom of mail)... Any help? regards... Piotr ERROR: function do_configure failed ERROR: log data follows (/home/kahuna/coding/openmoko/openembeded/oe/tmp/work/i686-linux/gmp-native-4.2.1-r1/temp/log.do_configure.16787) | automake (GNU automake) 1.9.3 | Written by Tom Tromey