Hello: I finally figured out the cause of 'segmentation fault'. Apparently when compile vfscanf(), if -O2 is used, GCC sometimes get 'segmentation fault' (doesn't matter what the cross compiled target is). The solution is use -O instead.
In my case, modify \home\<you>\<ecos-work>\language\c\libc\stdio\current\makefile Replace -O2 by -O Problem resolved, Thanks you -Peter Hou -----Original Message----- From: Hou, Chien-Long Sent: Thursday, February 16, 2006 3:44 PM To: Hou, Chien-Long; 'Andrew Lunn' Cc: '[email protected]' Subject: RE: [ECOS] Using SNMP in ecos Sorry, in last e-mail, the error message shown was not complete: function `int vfscanf(CYG_ADDRESS (*)[9999], const char*, void*)': /opt/ecos/ecos-3.0/packages/language/c/libc/stdio/current/src/input/vfsc anf.cxx: 952: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[1]: *** [src/input/vfscanf.o.d] Error 1 make[1]: Leaving directory `/home/a0212627/ecos-work/language/c/libc/stdio/curre nt' make: *** [build] Error 2 Thanks, -Peter -----Original Message----- From: Hou, Chien-Long Sent: Thursday, February 16, 2006 11:01 AM To: 'Andrew Lunn' Cc: [email protected] Subject: RE: [ECOS] Using SNMP in ecos I am using atlas_mips32_4kc platform (sorry I am new to eCos). For some reason menuconfig does not work on my cygwin, so I am using ecosconfig directly. The steps I used: - ecosconfig new atlas_mips32_4kc - ecosconfig add <pkgname> So far I have the following packages: CYGPKG_IO_ETH_DRIVERS CYGPKG_HTTPD CYGPKG_NET CYGPKG_NET_OPENBSD_STACK CYGPKG_IO_FILEIO CYGPKG_SNMPAGENT CYGPKG_SNMPLIB CYGPKG_POSIX - econsconfig tree - make Thanks, Peter Hou -----Original Message----- From: Andrew Lunn [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 10:49 AM To: Hou, Chien-Long Cc: [email protected] Subject: Re: [ECOS] Using SNMP in ecos On Thu, Feb 16, 2006 at 12:44:08PM -0600, Hou, Chien-Long wrote: > Hello: > > > I am trying to add CYGPKG_SNMPLIB using ecosconfig > It complains about : > "requires" constraint not satisfied: CYGPKG_POSIX_TIMERS" > > > Then I realized that CYGPKG_POSIX_TIMERS is a component name in > CYGPKG_POSIX package, so I try to add CYGPKG_POSIX package, but get the > following messages: > C CYGINT_ISO_SIGNAL_NUMBERS, "requires" constraint not satisfied: 1 >= > CYGINT_ISO_SIGNAL_NUMBERS > C CYGINT_ISO_SIGNAL_IMPL, "requires" constraint not satisfied: 1 >= > CYGINT_ISO_SIGNAL_IMPL > C CYGPKG_POSIX_SIGNALS, "requires" constraint not satisfied: > CYGBLD_ISO_SIGNAL_NUMBERS_HEADER == "<cyg/posix/signal.h>" > C CYGPKG_POSIX_SIGNALS, "requires" constraint not satisfied: > CYGBLD_ISO_SIGNAL_IMPL_HEADER == "<cyg/posix/signal.h>" > > > My question: > - What should I do next? (Which package am I missing?) Which template are you using? The net tempate should already have the POSIX package. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
