install fails in make v8 - makefile

I became error on installing v8:
make:
# make library=shared i18nsupport=off native
PYTHONPATH="/tmp/v8/tools/generate_shim_headers:/tmp/v8/build::/tmp/v8/build/gyp/pylib:" \
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. -S.native -Dcomponent=shared_library -Dv8_enable_backtrace=1 -Dv8_enable_i18n_support=0 -Darm_fpu=default -Darm_float_abi=default
make[1]: Entering directory `/tmp/v8/out'
CXX(target) /tmp/v8/out/native/obj.target/v8_base/src/accessors.o
/tmp/v8/third_party/llvm-build/Release+Asserts/bin/clang++: 1: /tmp/v8/third_party/llvm-build/Release+Asserts/bin/clang++: Syntax error: ")" unexpected
make[1]: *** [/tmp/v8/out/native/obj.target/v8_base/src/accessors.o] Error 2
make[1]: Leaving directory `/tmp/v8/out'
make: *** [native] Error 2

I think this (exceedingly non-helpful ☹) error message is what you get when you try to run the bundled clang (which is an x86_64 binary) on a 32-bit system. Try GYPFLAGs="-Dclang=0" to fall back to your system's default compiler:
make library=shared i18nsupport=off native GYPFLAGS="-Dclang=0"

Related

cc1: internal compiler error: Segmentation fault 0x12b2b57 crash_signal-when Install gcc10.1

I want to compile gcc10.1 in a master node of a cluster. When i execute make, i get an error: cc1: internal compiler error: Segmentation fault 0x12b2b57 crash_signal
The protocol of compilation and the error are shown below.
1. cd gcc-10.1.0
2. ./contrib/download_prerequisites
3. mkdir build-by-wangshuai install-by-wangshuai
4. cd build-by-wangshuai
5. ../configure --disable-multilib --prefix=/data/yiming-wangshuai/software/gcc-10.1.0/install-by-wangshuai
6. make VERBOSE=1
Then i get an error (i copy the end information output from "make VERBOSE=1"):
...
...
mv tmp2-tm.texi tmp-tm.texi
/bin/sh ../../gcc/../move-if-change tmp-tm.texi tm.texi
cp doc/gcc.1 doc/g++.1
/data/yiming-wangshuai/software/gcc-10.1.0/build-by-wangshuai/./gcc/xgcc -B/data/yiming-
wangshuai/software/gcc-10.1.0/build-by-wangshuai/./gcc/ -xc -nostdinc /dev/null -S -o
/dev/null -fself-test=../../gcc/testsuite/selftests
cc1: internal compiler error: Segmentation fault
0x12b2b57 crash_signal
../../gcc/toplev.c:328
0x7fbd8894dfef ???
/root/glibc-2.23/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7fbd88941195 __gconv_transform_utf8_internal
../iconv/skeleton.c:665
0x7fbd8893c5b1 __gconv
/root/glibc-2.23/iconv/gconv.c:79
0x7fbd8893be20 iconv
/root/glibc-2.23/iconv/iconv.c:52
0x23ea6ab convert_using_iconv
../../libcpp/charset.c:579
0x23efdd5 cpp_interpret_string_1
../../libcpp/charset.c:1728
0x23effca cpp_interpret_string(cpp_reader*, cpp_string const*, unsigned long, cpp_string*, cpp_ttype)
../../libcpp/charset.c:1784
0x23de858 test_lexer_string_locations_ebcdic
../../gcc/input.c:2507
0x23e3d85 selftest::for_each_line_table_case(void (*)(selftest::line_table_case const&))
../../gcc/input.c:3571
0x23e4e53 selftest::input_c_tests()
../../gcc/input.c:3710
0x22d7111 selftest::run_tests()
../../gcc/selftest-run-tests.c:84
0x12b62ab toplev::run_self_tests()
../../gcc/toplev.c:2337
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [s-selftest-c] Error 1
make[3]: Leaving directory `/data/yiming-wangshuai/software/gcc-10.1.0/build-by-wangshuai/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/data/yiming-wangshuai/software/gcc-10.1.0/build-by-wangshuai'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/data/yiming-wangshuai/software/gcc-10.1.0/build-by-wangshuai'
make: *** [all] Error 2
Next, i introduce the configuration environment of the master node.
System: Centos 7.8
CPU: Intel(R) Xeon(R) Gold 5218R
GPU: Tesla V100s
Driver Version: 460.73.01 CUDA Version: 11.2
I am not sure how to diagnose and resolve this issue. Much appreciate if anyone can help me.

how to install gdb 9.1 on debian from source code

I like to compile and use gdb 9.1. the source is here https://ftp.gnu.org/gnu/gdb/
Plus when I type make in config directory make says make: *** No targets specified and no makefile found. Stop. because there is not make file. on root folder there are Makefile.in and Makefile.tpl and Makefile.def. what are these files. and how can I install gdb 9 from source code.
Update
After the comment changes I made in command by G.M I am getting this error I think almost at the end of compiling process
mv GDBvn.new GDBvn.texi
/home/fawad/Desktop/gdb/gdb/gdb-9.1.1/missing makeinfo --split-size=5000000 --split-size=5000000 -I /home/fawad/Desktop/gdb/gdb
/gdb-9.1.1/gdb/doc/../../readline/readline/doc -I /home/fawad/Desktop
/gdb/gdb/gdb-9.1.1/gdb/doc/../mi -I /home/fawad/Desktop/gdb/gdb/gdb-9.1.1/gdb/doc
-o gdb.info /home/fawad/Desktop/gdb/gdb/gdb-9.1.1/gdb/doc/gdb.texinfo
/home/fawad/Desktop/gdb/gdb/gdb-9.1.1/missing: 81: makeinfo: not found
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
http://www.gnu.org/software/texinfo/
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
http://www.gnu.org/software/make/
make[4]: *** [Makefile:490: gdb.info] Error 127
make[4]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb/doc'
make[3]: *** [Makefile:2010: subdir_do] Error 1
make[3]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb'
make[2]: *** [Makefile:1655: all] Error 2
make[2]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb'
make[1]: *** [Makefile:9564: all-gdb] Error 2
make[1]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build'
make: *** [Makefile:852: all] Error 2

Building GCC 4.x on Mac 10.11

I'm trying to compile gcc 4.x on osx 10.11 (mainly focusing around 4.9.2 and 4.9.3). No matter what I do, I can't get it to build properly, it always errors out somewhere. Using 5.x is not an option, and neither is using gcc from brew or macports.
I've got Xcode 7.2 and Command Line Tools installed (and updated). The following has worked fine for me on previous versions of osx (such as 10.9, but not sure about 10.10). Here's what I'm using to build it:
cd gcc-4.9.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.9.2/configure --prefix=/usr/local/gcc-4.9.2
make
make install
Here's how this errors out (with a lot more ptrdiff_t errors as well):
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:1854:29: error: use of undeclared identifier 'ptrdiff_t'
const ptrdiff_t __m = (~ptrdiff_t(0) ^
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [graphite.o] Error 1
make[3]: *** Waiting for unfinished jobs....
20 errors generated.
make[3]: *** [graphite-blocking.o] Error 1
20 errors generated.
20 errors generated.
make[3]: *** [graphite-clast-to-gimple.o] Error 1
make[3]: *** [graphite-dependences.o] Error 1
20 errors generated.
make[3]: *** [graphite-interchange.o] Error 1
13 warnings generated.
/bin/sh /usr/local/src/objdir/../gcc-4.9.2/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
/bin/sh /usr/local/src/objdir/../gcc-4.9.2/gcc/../move-if-change tmp-dfatab.c insn-dfatab.c
/bin/sh /usr/local/src/objdir/../gcc-4.9.2/gcc/../move-if-change tmp-latencytab.c insn-latencytab.c
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2
So, I guess the question here is if anyone knows any tricks to getting gcc 4.x to build on 10.11. Or if not, any advice for figuring out what's going on here. I've tried searching for days and haven't come up with much of anything. Not really sure how to approach this. I can definitely post more relevant info if needed (just not sure what's relevant).
tar xf gcc-4.9.3.tar.bz2
cd gcc-4.9.3
#fix - os x got now wget
sed -i.bak 's/wget/curl -O/g' contrib/download_prerequisites
./contrib/download_prerequisites
# this fixes your problem !!!!
sed -i.bak '/__need_size_t/d' gmp/gmp-h.in
mkdir build
cd build
#for example
../configure --target=x86_64-apple-darwin15.5.0 --build=x86_64-apple- darwin15.5.0 \
--prefix=/usr/local --program-suffix=-4.9 \
--enable-languages=c,c++ --with-system-zlib --enable-libstdcxx-time=yes \
--enable-stage1-checking --enable-checking=release --enable-lto \
--disable-multilib --disable-nls

Building F# on a mac... mcs: No such file or directory

I am building F# from source on my mac (yosemite).
I followed these steps.
git clone https://github.com/mono/mono
cd mono
./autogen.sh --prefix=/mono64 --enable-nls=no
make
During make I get an error
cd /Users/abhishek.srivastava/mono/mcs && /Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='gcc' all-profiles
mkdir -p -- build/deps
make[6]: mcs: No such file or directory
make[6]: *** [build/deps/basic-profile-check.exe] Error 1
*** The compiler 'mcs' doesn't appear to be usable.
*** You need Mono version 3.8 or better installed to build MCS
*** Check mono README for information on how to bootstrap a Mono installation.
/bin/sh: mcs: command not found
*** The version of 'mcs' is: .
make[5]: *** [do-profile-check] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
LBURMAC603TG8WM:mono (master *=)$
Do make get-monolite-latest after autogen.sh and before making the rest.
Alternatively, any recent binary mono release can be installed and used for bootstrapping.

Compiling mcrypt fails (gaa: Command not found)

I have to compile PHP with mcrypt, but for some reason i cannot compile mcrypt using the make command. I´m getting the following error:
gaa -o gaaout.c -i gaa.h mcrypt.gaa
make[2]: gaa: Command not found
make[2]: *** [gaaout.c] Error 127
make[2]: Leaving directory `/usr/local/src/mcrypt-2.6.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mcrypt-2.6.7'
make: *** [all] Error 2
I´m compiling it on Centos 6.6, and the mcrypt version is 2.6.7
Before i compiled i installed the Development Tools packaged via yum.
yum groupinstall "Development Tools"
Also installed: mhash (v 0.9.9.9), libmcrypt (v 2.5.8)
What is the gaa command, and how do i make i available?
FWIW: don't know gaa either, but since src/gaaout.c exists:
touch src/gaaout.c
did the trick for me.

Resources