public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: net configuration problem
@ 2007-08-23  2:59 ariga masahiro
  0 siblings, 0 replies; 5+ messages in thread
From: ariga masahiro @ 2007-08-23  2:59 UTC (permalink / raw)
  To: ecos-discuss

Hi everyone,

I am very sorry fo bothering you many after-done mails.

But I am in a rather paniky mode so allow me.

When I tried to build ecos library
after inserted CYGPKG_NET_OPENBSD_STACK
I remenbered there happened error messages in configtool winow.

Next are messages.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Option `CYGPKG_NET_NGIF' cannot be loaded.
    The name is already in use.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Option `CYGPKG_NET_NLOOP' cannot be loaded.
    The name is already in use.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Option `CYGPKG_NET_MEM_USAGE' cannot be loaded.
    The name is already in use.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Option `CYGPKG_NET_NUM_WAKEUP_EVENTS' cannot be loaded.
    The name is already in use.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Option `CYGPKG_NET_THREAD_PRIORITY' cannot be loaded.
    The name is already in use.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Option `CYGPKG_NET_FAST_THREAD_PRIORITY' cannot be loaded.
    The name is already in use.
/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/cdl/freebsd_net.cdl, package 
CYGPKG_NET_FREEBSD_STACK: error
    Component `CYGPKG_NET_FAST_THREAD_TICKLE_DEVS' cannot be loaded.
    The name is already in use.
CYGHWR_NET_DRIVER_ETH0_ADDRS, no radio buttons are set

I hope these give you hints for resolving my damn problem.

Masahiro Ariga


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Re: net configuration problem
  2007-08-23  8:56 ` ariga masahiro
@ 2007-08-24 11:38   ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2007-08-24 11:38 UTC (permalink / raw)
  To: ariga masahiro; +Cc: ecos-discuss

ariga masahiro wrote:
> Hi everyone,
>
> I tinik that the cause of previous reported Segmentation fault
> error entered in my mind.
> So I should relate it to you.
>
> --previous reported Segmentation fault
>> make[1]: Leaving directory
>> `/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-OPENBSD/untitled1_build/net/tcpip/v2_0'
>>
>> /opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c:
>> In function `tcp_input':
>> make: Leaving directory
>> `/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-OPENBSD/untitled1_build'
>>
>> /opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c:2136:
>> 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/sys/netinet/tcp_input.o.d] Error 1
>> make: *** [build] Error 2
>
> When I build RedBoot,I discovered that if I
> include cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS's
> next line
> implements CYGINT_ISO_STRING_BSD_FUNCS
> I was encountered next errors.
>
> -- error log
> /ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/pkgconf/hal_sh_sh77x9_inserter.h:41:1:
> warning: "CYG_HAL_STARTUP_RAM" redefined
> In file included from
> /ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/pkgconf/infra.h:12,
>
> from
> /ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/cyg/infra/cyg_ass.h:66,
>
> from
> /ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/cyg/libc/stdio/stream.hxx:63,
>
> from
> /opt/ecos/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/output/vfnprintf.cxx:100:
>
> /ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/pkgconf/system.h:33:1:
> warning: this is the location of the previous definition
> make[1]: Leaving directory
> `/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_build/language/c/libc/stdio/v2_0'
>
> /opt/ecos/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/output/vfnprintf.cxx:
> In
> make: Leaving directory
> `/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_build'
>
> function `int vfnprintf(CYG_ADDRESS (*)[9999], unsigned int, const char*,
> void*)':
> /opt/ecos/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/output/vfnprintf.cxx:675:
> 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/output/vfnprintf.o.d] Error 1
> make: *** [build] Error 2
>
> There appeared Resolve Conflicts
> CYGINT_ISO_STRING_BSD_FUNCS Unsatisfied Requires
> 1>=CYGINT_ISO_STRING_BSD_FUNCS
> and,
> Proposed solution:
> CYGFUN_LIBC_TIME_POSIX Disabled
> CYGIMP_LIBC_TIME_ASCTIME_R_INLINE Disabled
> CYGIMP_LIBC_TIME_CTIME_R_INLINE Disabled
> CYGIMP_LIBC_TIME_GMTIME_R_INLINE Disabled
> CYGIMP_LIBC_TIME_LOCALTIME_R_INLINE Disabled
> CYGFUN_LIBC_STRING_BSD_FUNCS Disabled
> but I couldn't understand these so I relied auto amendment.
>
> I couldn't resolve this error
> so I cheated myself and commented that line.
>
> Now I think this is my original sin.
> I think it may resolve by editing CDL files.
>
> Or as Andrew suggests,
> this is also eCos version problem ?
>
> Masahiro Ariga
>
>
>
What version of GCC are you using? The problem you are having
has really nothing to do with eCos (it builds fine, given working
tools) - rather with the toolchain that you are using.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Re: net configuration problem
  2007-08-23  2:29 ariga masahiro
@ 2007-08-23  8:56 ` ariga masahiro
  2007-08-24 11:38   ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: ariga masahiro @ 2007-08-23  8:56 UTC (permalink / raw)
  To: ecos-discuss

Hi everyone,

I tinik that the cause of previous reported Segmentation fault
error entered in my mind.
So I should relate it to you.

--previous reported Segmentation fault
> make[1]: Leaving directory 
> `/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-OPENBSD/untitled1_build/net/tcpip/v2_0'
> /opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c: In 
> function `tcp_input':
> make: Leaving directory 
> `/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-OPENBSD/untitled1_build'
> /opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c:2136: 
> 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/sys/netinet/tcp_input.o.d] Error 1
> make: *** [build] Error 2

When I build RedBoot,I discovered that if I
include cdl_option CYGFUN_LIBC_STRING_BSD_FUNCS's
next line
        implements    CYGINT_ISO_STRING_BSD_FUNCS
I was encountered next errors.

-- error log
/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/pkgconf/hal_sh_sh77x9_inserter.h:41:1: 
warning: "CYG_HAL_STARTUP_RAM" redefined
In file included from 
/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/pkgconf/infra.h:12,
                 from 
/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/cyg/infra/cyg_ass.h:66,
                 from 
/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/cyg/libc/stdio/stream.hxx:63,
                 from 
/opt/ecos/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/output/vfnprintf.cxx:100:
/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_install/include/pkgconf/system.h:33:1: 
warning: this is the location of the previous definition
make[1]: Leaving directory 
`/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_build/language/c/libc/stdio/v2_0'
/opt/ecos/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/output/vfnprintf.cxx: 
In
make: Leaving directory 
`/ecos-c/cygwin/home/LINK/inserter20070823-oldnet-from0803-NOKOME/untitled1_build'
   function `int vfnprintf(CYG_ADDRESS (*)[9999], unsigned int, const char*,
   void*)':
/opt/ecos/ecos-2.0/packages/language/c/libc/stdio/v2_0/src/output/vfnprintf.cxx:675: 
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/output/vfnprintf.o.d] Error 1
make: *** [build] Error 2

There appeared Resolve Conflicts
CYGINT_ISO_STRING_BSD_FUNCS Unsatisfied Requires 
1>=CYGINT_ISO_STRING_BSD_FUNCS
and,
Proposed solution:
CYGFUN_LIBC_TIME_POSIX              Disabled
CYGIMP_LIBC_TIME_ASCTIME_R_INLINE   Disabled
CYGIMP_LIBC_TIME_CTIME_R_INLINE     Disabled
CYGIMP_LIBC_TIME_GMTIME_R_INLINE    Disabled
CYGIMP_LIBC_TIME_LOCALTIME_R_INLINE Disabled
CYGFUN_LIBC_STRING_BSD_FUNCS        Disabled
but I couldn't understand these so I relied auto amendment.

I couldn't resolve this error
so I cheated myself and commented that line.

Now I think this is my original sin.
I think it may resolve by editing CDL files.

Or as Andrew suggests,
this is also eCos version problem ?

Masahiro Ariga



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Re: net configuration problem
@ 2007-08-23  4:04 ariga masahiro
  0 siblings, 0 replies; 5+ messages in thread
From: ariga masahiro @ 2007-08-23  4:04 UTC (permalink / raw)
  To: 韩爽; +Cc: ecos-discuss

Hi Han Shuang and others,

Thank you,Han,for your reply.

Han Shuang wrote,
>To use OpenBSD you should choose the old_net template

After I deleted  CYGPKG_NET_OPENBSD_STACK from
template definition in ecos.db,I tried to configure using "old net".

You are right,changed to use tcpip directory files instead  bsd_tcpip.

But I was encountered the same error.

make[1]: Leaving directory 
`/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-old-net/untitled_build/net/tcpip/v2_0'
/opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c: In 
function `tcp_input':
make: Leaving directory 
`/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-old-net/untitled_build'
/opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c:2136: 
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/sys/netinet/tcp_input.o.d] Error 1
make: *** [build] Error 2

Are you pinpoint the cause of error ?

Anyway thank you for your reply.

Masahiro Ariga



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ECOS] Re: net configuration problem
@ 2007-08-23  2:29 ariga masahiro
  2007-08-23  8:56 ` ariga masahiro
  0 siblings, 1 reply; 5+ messages in thread
From: ariga masahiro @ 2007-08-23  2:29 UTC (permalink / raw)
  To: ecos-discuss

Hi everyone,

After I sent previous mail
I inserted CYGPKG_NET_OPENBSD_STACK
in  template definition and tried to build.
Then I am encountered next error.

What wrong have I done ?

make[1]: Leaving directory 
`/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-OPENBSD/untitled1_build/net/tcpip/v2_0'
/opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c: In 
function `tcp_input':
make: Leaving directory 
`/ecos-c/cygwin/home/LINK/inserter20070823-for-nc_test_slave-OPENBSD/untitled1_build'
/opt/ecos/ecos-2.0/packages/net/tcpip/v2_0/src/sys/netinet/tcp_input.c:2136: 
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/sys/netinet/tcp_input.o.d] Error 1
make: *** [build] Error 2

Please enlighten me.

Masahiro Ariga

-- below my previous mail,
> Hi everyone,
>
> I beseech you to help me.
>
> I am trying to pass net work test using nc_test_slave.
>
> As prev step,when I made eCos library,
> I chose template package "net".
>
> According to Anthony J.Massa's Book,it says,
> "The eCos Net template includes the OpenBSD implementation".
> So I expected to use OpenBSD Stack..
>
> But I found in Building log,
> it included bsd_tcpip subdirectory files
> like these,
> make -r -C net/bsd_tcpip/v2_0 build
> make[1]: Entering directory 
> `/ecos-c/cygwin/home/LINK/mytarget20070823-for-nc_test_slave/untitled1_build/net/bsd_tcpip/v2_0'
> 
> h-elf-gcc -c  -I/ecos-c/cygwin/home/LINK/mytarget20070823-for-nc_test_slave/untitled1_install/include 
>  -I/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0 -I/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/src 
>  -I/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/tests -I. -I/opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/src/ecos/ 
>  -D_KERNEL -D__ECOS -gdwarf-22 -mb -m3 -Wall -Wpointer-arith -Wstrict-prototypes 
>  -Winline -Wundef -Woverloaded-virtual -ggdb -O2 -ffunction-sections -fdata-sections 
>  -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -D_KERNEL -D__ECOS  
> -Wp,-MD,src/ecos/support.tmp -o src/ecos/net_bsd_tcpip_support.o 
> /opt/ecos/ecos-2.0/packages/net/bsd_tcpip/v2_0/src/ecos/support.c
>
> My target's template definition in ecod.db is below.
> target mytarget {
>        alias       { "mytarget board" }
>        packages    { CYGPKG_HAL_SH
>                      CYGPKG_HAL_SH_SH3
>                      CYGPKG_HAL_SH_SH77X9_mytarget
>                      CYGPKG_IO_FLASH
>                      CYGPKG_DEVS_FLASH_SH_mytarget
>                      CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
>                      CYGPKG_DEVS_ETH_SMSC_LAN91CXX
>                      CYGPKG_DEVS_ETH_SH_mytarget
>                      CYGPKG_IO_SERIAL_SH_mytarget
>                      CYGPKG_IO_SERIAL_SH_SCIF
>                      CYGPKG_IO_ETH_DRIVERS
>        }
>        description "
>           The mytarget provides the packages needed to run
>           eCos on a mytarget board."
> }
> I also used this template definition in making RedBoot.
>
> I like to use OpenBSD Stack,so like to include tcpip subdirectory files.
> What should I do ? 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-24 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-23  2:59 [ECOS] Re: net configuration problem ariga masahiro
  -- strict thread matches above, loose matches on Subject: below --
2007-08-23  4:04 ariga masahiro
2007-08-23  2:29 ariga masahiro
2007-08-23  8:56 ` ariga masahiro
2007-08-24 11:38   ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).