Created
September 16, 2011 21:31
-
-
Save coolaj86/1223209 to your computer and use it in GitHub Desktop.
gcc fails to build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/Code | |
cd ~/Code | |
git clone git://github.com/joyent/node.git | |
cd node | |
git checkout -b v0.4.12 | |
rm ~/Code/node/* -rf | |
git checkout v0.4.12 ./ | |
vim deps/v8/SConstruct | |
# added a line `env['arch'] = 'arm'` after `def VerifyOptions(env):` | |
make -f Makefile.cmake | |
# a half-hour later | |
g++ -o obj/release/jsregexp.o -c -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -Wno-abi -pedantic -mfloat-abi=softfp -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-strict-aliasing -DCAN_USE_VFP_INSTRUCTIONS -DUSE_EABI_HARDFLOAT=0 -DV8_TARGET_ARCH_ARM -DENABLE_DEBUGGER_SUPPORT -I/home/user/Code/node/deps/v8/src /home/user/Code/node/deps/v8/src/jsregexp.cc | |
g++: Internal error: Segmentation fault (program as) | |
Please submit a full bug report. | |
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions. | |
scons: *** [obj/release/jsregexp.o] Error 1 | |
scons: building terminated because of errors. | |
Waf: Leaving directory `/home/user/Code/node/out' | |
Build failed: -> task failed (err #2): | |
{task: libv8.a SConstruct -> libv8.a} | |
make: *** [program] Error 1 | |
user@linaro-developer:~/Code/node$ uname -a | |
Linux linaro-developer 3.0.0-1004-linaro-omap #5~ppa~natty-Ubuntu SMP PREEMPT Mon Aug 22 08:44:20 UTC 2011 armv7l armv7l armv7l GNU/Linux | |
user@linaro-developer:~/Code/node$ gcc -v | |
Using built-in specs. | |
COLLECT_GCC=gcc | |
COLLECT_LTO_WRAPPER=/usr/lib/arm-linux-gnueabi/gcc/arm-linux-gnueabi/4.5.2/lto-wrapper | |
Target: arm-linux-gnueabi | |
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=arm-linux-gnueabi --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/arm-linux-gnueabi --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/arm-linux-gnueabi --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi | |
Thread model: posix | |
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) | |
version that works: | |
root@gumstix:~/Code/node# uname -a | |
Linux gumstix.coolaj86.info 2.6.38-1002-linaro-omap #3-Ubuntu SMP Fri Apr 15 14:00:54 UTC 2011 armv7l armv7l armv7l GNU/Linux | |
root@gumstix:~/Code/node# gcc -v | |
Using built-in specs. | |
COLLECT_GCC=gcc | |
COLLECT_LTO_WRAPPER=/usr/lib/arm-linux-gnueabi/gcc/arm-linux-gnueabi/4.5.2/lto-wrapper | |
Target: arm-linux-gnueabi | |
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=arm-linux-gnueabi --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/arm-linux-gnueabi --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/arm-linux-gnueabi --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi | |
Thread model: posix | |
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment