Sign in to add a comment
|
unrecognized command line option "-m32" when compiling chromium on armv6j | |||||||||||||||||||
| Reported by slonopot...@gmail.com, Dec 4 2009 | Back to list | |||||||||||||||||||
Build output: g++ -march=armv6j -pipe -mtune=arm1136jf-s -mfpu=vfp -pthread -fno-exceptions - fvisibility=hidden -Wall -D_FILE_OFFSET_BITS=64 -m32 -fno-ident -fdata-sections -ffunction- sections -fno-asynchronous-unwind-tables -fomit-frame-pointer -O3 -fno-rtti -fno-threadsafe- statics -fvisibility-inlines-hidden -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -D__STDC_FORMAT_MACROS -DV8_TARGET_ARCH_ARM -DCHROMIUM_BUILD -DNDEBUG -DNVALGRIND -Iv8/src - Iv8/src/arm -MMD -MF out/Release/obj.host/v8_base/v8/src/accessors.o.d.tmp -c -o out/Release/obj.host/v8_base/v8/src/accessors.o v8/src/accessors.cc cc1plus: error: unrecognized command line option "-m32". Additional information: $ # gcc -v Using built-in specs. Target: armv6j-gentoo-linux-gnueabi Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/armv6j-gentoo-linux-gnueabi/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/armv6j- gentoo-linux-gnueabi/4.3.4/include --datadir=/usr/share/gcc-data/armv6j-gentoo-linux- gnueabi/4.3.4 --mandir=/usr/share/gcc-data/armv6j-gentoo-linux-gnueabi/4.3.4/man -- infodir=/usr/share/gcc-data/armv6j-gentoo-linux-gnueabi/4.3.4/info --with-gxx-include- dir=/usr/lib/gcc/armv6j-gentoo-linux-gnueabi/4.3.4/include/g++-v4 --host=armv6j-gentoo-linux- gnueabi --build=armv6j-gentoo-linux-gnueabi --disable-altivec --disable-fixed-point --enable- nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror -- enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp -- disable-libgcj --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix -- enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with- pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5' Thread model: posix gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5 Output of g++ -dM -E: http://code.google.com/p/v8/issues/detail?id=516#c2 Chromium version: 4.0.260.0
Comment 1
by
a...@jwsdot.com,
Jan 4 2010
,
Apr 8 2012
Any progress with this bug? The current v8 code from svn still fails with cc1plus: error: unrecognized command line option "-m32"
,
Apr 10 2012
I don't think gyp fully support cross compiling. Scons does, see http://code.google.com/p/v8/wiki/CrossCompilingForARM for more details, I can cross compile for armv6 without problems. Note that using Scons to build V8 is being deprecated and will probably be removed once gyp has reached feature parity.
,
Apr 10 2012
This isn't about cross-compiling at all. Native build on arm breaks this way (I tried the make one, on Linux, shared library build; full details at http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-lang/v8/v8-9999.ebuild?view=markup).
,
Apr 12 2012
Tentative fix at https://chromiumcodereview.appspot.com/10008082/. I've tested arm-simulator builds (on an x86_64 host) and native ARM builds with that patch. It should work for cross-compiling too.
,
Apr 13 2012
|
||||||||||||||||||||
| ► Sign in to add a comment | ||||||||||||||||||||