Forum Discussion
Altera_Forum
Honored Contributor
15 years agointernal compiler error in Net-SNMP compilation
Did anyone run into that ? (build env is latest from GIT)
../../net-snmp-5.2.1/snmplib/parse.c: In function 'unload_all_mibs': ../../net-snmp-5.2.1/snmplib/parse.c:4057: error: unrecognizable insn: (insn 217 216 218 23 ../../net-snmp-5.2.1/snmplib/parse.c:3994 (set (reg:SI 50 [ D.13259 ]) (plus:SI (reg:SI 120) (const_int 114660 [0x1bfe4]))) -1 (nil) (expr_list:REG_EQUAL (const:SI (plus:SI (symbol_ref:SI ("tclist") <var_decl 0x40324d68 tclist>) (const_int 114660 [0x1bfe4]))) (nil))) ../../net-snmp-5.2.1/snmplib/parse.c:4057: internal compiler error: in extract_insn, at recog.c:2093 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[5]: *** [parse.lo] Error 1 any suggestion on how to continue from here ? if I unselect net-snmp and delete all build related directories and reselct it with different options set it sometimes work.. there is something inconsistent with building that application ... Thanks Lior13 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- Hi, I tested to compile 'net-snmp-5.2.1', and in may case, it succeeded. My compiler version is
. I did it as Kazu. --- Quote End --- Hi, Mr Kazu Could you do me a favor? Why did I Build the gcc4 toolchain with the method of this url http://www.alterawiki.com/wiki/build_the_gcc4_toolchain I can't find neither the nios2-wrs-linux-gnu file nor folder,even not use the command 'nios2-wrs-linux-gnu-gcc -v'nios2-wrs-linux-gnu-gcc (Wind River Linux Sourcery G++ 4.1-176) 4.1.2 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
So, I can't make EP3C120_config with the nios2-wrs-linux-gnu-gcc.# cd /opt/nios2gcc4/ # ls build.sh install logs obj pkg src # cd /opt/nios2gcc4/src/ # ls binutils-2.17.50 gcc-4.1 glibc-2.5 glibc-ports-2.5 expat-mirror gdb-wrs glibc_localedef-2.5 linux-2.6.21-wrs-nios2 # ls 0001-kbuild-fix-C-libary-confusion-in-unifdef.c-due-to-g.patch lib arch ltt block MAINTAINERS COPYING Makefile CREDITS mm crypto net Documentation README drivers REPORTING-BUGS fs scripts include security init sound ipc usr Kbuild WRLINUX_PATCHES kernel #
Thanks!# make EP3C120_config make: nios2-wrs-linux-gnu-gcc:command not found Generating include/autoconf.mk.dep /bin/sh: line 3: nios2-wrs-linux-gnu-gcc: command not found Configuring for EP3C120 board... - Altera_Forum
Honored Contributor
Hi,
--- Quote Start --- Why did I Build the gcc4 toolchain with the method of this url http://www.alterawiki.com/wiki/build_the_gcc4_toolchain I can't find neither the nios2-wrs-linux-gnu file nor folder,even not use the command 'nios2-wrs-linux-gnu-gcc -v' So, I can't make EP3C120_config with the nios2-wrs-linux-gnu-gcc. --- Quote End --- ?? The word "wrs" means the version which is compiled by 'Wind River Systems". If you build tools from these sources, the compiler's names will be "nios2-linux-gnu-***". And you may also get the compiled tools from the ftp site, ftp://sopc.et.ntust.edu.tw/pub/gnutools/ . Kazu - Altera_Forum
Honored Contributor
Hi, How did you build this
tools? Could you give me some a clue ? Although I have build these tools,but the toolchain-build still remind menios2-wrs-linux-gnu-gcc (Wind River Linux Sourcery G++ 4.1-176) 4.1.2
Which step do I lost ?/bin/sh: nios2-wrs-linux-gnu-gcc: command not found
Thanks!# nios2-linux-gnu-gcc -vUsing built-in specs. Target: nios2-linux-gnu Configured with: /opt/nios2gcc4/src/gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=nios2-linux-gnu --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --disable-nls --prefix=/opt/nios2 --with-sysroot=/opt/nios2/nios2-linux-gnu/libc --with-build-sysroot=/opt/nios2gcc4/install/nios2-linux-gnu/libc --disable-libgomp --enable-poison-system-directories Thread model: posix gcc version 4.1.2 # nios2-linux-uclibc-gcc -v Reading specs from /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/specs Configured with: /root/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/opt/nios2 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-shared --disable-nls --enable-threads --enable-multilib Thread model: posix gcc version 3.4.6 # nios2-linux-gcc -v Reading specs from /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/specs Configured with: /root/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/opt/nios2 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-shared --disable-nls --enable-threads --enable-multilib Thread model: posix gcc version 3.4.6