From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ron Kundla To: "eCos Mailing List (E-mail)" Subject: [ECOS] Build error under current x86 - have you seen this? Date: Tue, 24 Jul 2001 17:20:00 -0000 Message-id: X-SW-Source: 2001-07/msg00766.html Hello! I have had a nagging problem for some time and haven't quite identified where the root of this problem is located. I am building from the current eCos build (taken from CVS) and when I select the template for networking on the x86 platform, I am able to build the library with no problems but get an error during building the tests i386-elf-gcc -c -I//C/cygwin/eCos/build/x86/net_install/include -I//C/cygwin/eCos/src/ecos/packages/io/fileio/current -I//C/cygwin/os/src/ecos/packages/io/fileio/current -I//C/cygwin/eCos/src/ecos/packages/io/fileio/current/src -I//C/cygwin/eCos/src/ecos/packages/io/fileio/current/tests -I. -I//C/cygwin/eCos/src/e -I//C/cygwin/eCos/src/ecos/packages/io/fileio/current/tests/ -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -Wp,-MD,tests/stdio.tmp -o tests/stdio.o //C/cygwin/eCos/src/ecos/packages/io/fileeio/current/tests/stdio.c In file included from //C/cygwin/eCos/src/ecos/packages/io/fileio/current/tests/stdio.c:61: //C/cygwin/eCos/src/ecos/packages/io/filestdio.c:61: //C/cygwin/eCos/src/ecos/packages/io/fileio/current/tests/testfs.c:190: warning: alig90: warning: alignment of `testfs_fste' is greater than maximum object file alignment. Using 4. //C/cygwin/nment. Using 4. //C/cygwin/eCos/src/ecos/packages/io/fileio/current/tests/testfs.c:20.c:206: warning: alignment of `testfs_mte1' is greater than maximum object file alignment. Using 4. i386-elf-gcc -g -nostdlib -Wl,-i386-elf-gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -L//C/cygwin/eCos/build/x86/net_install/lib -Ttarget.ld -o //C/cygwin/eCos/bux86/net_install/lib -Ttarget.ld -o //C/cygwin/eCos/build/x86/net_install/tests/io/fileio/current/tests/stdio tests/stdio.o //C///C/cygwin/eCos/build/x86/net_install/lib/libtarget.a(language_c_libc_st dio_fopen.o): In function `fdopen': //C/cygwin/eCosn.o): In function `fdopen': //C/cygwin/eCos/build/x86/net_install/include/cyg/libc/stdio/stream.inl:434: undefined reference to `__builtin_new' collect2: ld returned 1 exit status make[1]: *** [//C/cygwin/eCos/build/x86/net_install/tests/io/fileio/fileio/current/tests/ stdio] Error 1 make[1]: Leaving directory `/eCos/build/x86/net_build/io/fileio/current' make: *** [tests] Error 2 The part I am concerned about is the undefined reference to '__builtin_new' from the stream.inl file. I have looked at fdopen and there is a call to a C++ function that does a 'set_position', which coincides with the above error. I have checked the eCos configuration and I do have FILEIO enabled and the macro is defined. Any ideas? Thanks, Ron Kundla nBand Communications, Inc.