Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authenticated: #14640924 Message-ID: <082401c3c253$0e9cff70$2000000a@schlepptopp> From: "roland" To: Subject: cross-compiler problems on win98 Date: Sun, 14 Dec 2003 16:00:41 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 hi ! i have a strange problem and perhaps anbody can give me a hint, how to analyze this further: i run cygwin on my windows XP machine and built gcc&binutils from sources to make a hitachi sh1 crosscompile environment. after setup, it works flawlessly - i can compile all my stuff and the resulting binary runs on sh1 platform. if i copy this environment to another "nt-based" os (i.e. NT/2000/XP) by tarring/untarring and copying the registry settings, all works fine, too. it also usually WORKED fine, when doing the same somewhat "illegal transfer" to win95/98 machines. now i switched to the latest cygwin (1.5.5-1) environemnt and wanted to "go" as usual. On nt-based OS it works as expected - but on Win98 i get strange errors and the compile fails (see at the bottom of this mail) IMHO, this must be a cygwin or "cygwin-setup" issue and not a problem with the source, because it compiles fine on my XP box and it was working (after "transfer" to `98) without problems on an older cygwin release. can someone point me to the differences between running cygwin on "NT-based, i.e. NT/2000/XP" OS or "DOS-based, i.e. 95/98) platform? is there a difference in setup now (i.e. win9x specific files in cygwin) ? i thought, cygwin binary stuff is "win32 generic" - but maybe there are "magical windows xp internals" compiled into my sh1-elf-gcc.exe which makes it fail on 95/98 ? do i need to build gcc/binutils from sources on win95/98 machine ? regards roland make -C ../firmware TARGET=-DARCHOS_RECORDER NODEBUG=1 OBJDIR="/home/rockbox/rockbox-2.1/b" MEM=2 TOOLSDIR=../tools make[1]: Entering directory `/home/rockbox/rockbox-2.1/firmware' sh-elf-gcc -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes -Iinclude -I. -Iexport -Icommon -Idrivers -DARCHOS_RECORDER -DMEM=2 -fomit-frame-pointer -fschedule-insns -c drivers/adc.c -o /home/rockbox/rockbox-2.1/b/drivers/adc.o In file included from drivers/adc.c:21: export/kernel.h:44: parse error before "__builtin_isgreater" export/kernel.h:44: warning: no semicolon at end of struct or union export/kernel.h:46: parse error before '}' token export/kernel.h:50: field `events' has incomplete type export/kernel.h:51: warning: no semicolon at end of struct or union export/kernel.h:51: parse error before "read" export/kernel.h:52: parse error before "write" export/kernel.h:52: warning: type defaults to `int' in declaration of `write' export/kernel.h:52: warning: data definition has no type or storage class export/kernel.h:57: parse error before "static" export/kernel.h:57: warning: no semicolon at end of struct or union export/kernel.h:61: parse error before "__builtin_isgreaterequal" export/kernel.h:61: warning: type defaults to `int' in declaration of `current_tick' export/kernel.h:61: warning: data definition has no type or storage class export/kernel.h:64: syntax error before "void" export/kernel.h:65: syntax error before "void" export/kernel.h:66: syntax error before "void" export/kernel.h:66: parse error before "ticks" export/kernel.h:66: warning: function declaration isn't a prototype export/kernel.h:67: parse error before "set_irq_level" export/kernel.h:67: parse error before "level" export/kernel.h:67: warning: type defaults to `int' in declaration of `set_irq_level' export/kernel.h:67: warning: function declaration isn't a prototype export/kernel.h:67: warning: data definition has no type or storage class export/kernel.h:68: parse error before "tick_add_task" export/kernel.h:68: warning: type defaults to `int' in declaration of `tick_add_task' export/kernel.h:68: warning: data definition has no type or storage class export/kernel.h:69: parse error before "tick_remove_task" export/kernel.h:69: warning: type defaults to `int' in declaration of `tick_remove_task' export/kernel.h:69: warning: data definition has no type or storage class export/kernel.h:71: syntax error before "void" export/kernel.h:72: syntax error before "void" export/kernel.h:73: syntax error before "void" export/kernel.h:73: parse error before "__builtin_isgreater" export/kernel.h:73: warning: function declaration isn't a prototype export/kernel.h:74: syntax error before "void" export/kernel.h:74: parse error before "__builtin_isgreater" export/kernel.h:74: warning: function declaration isn't a prototype export/kernel.h:75: syntax error before "static" export/kernel.h:75: warning: type defaults to `int' in declaration of `queue_empty' export/kernel.h:76: parse error before "__builtin_isgreater" export/kernel.h:76: parse error before "id" export/kernel.h:76: warning: type defaults to `int' in declaration of `queue_broadcast' export/kernel.h:76: warning: function declaration isn't a prototype export/kernel.h:76: warning: data definition has no type or storage class export/kernel.h:78: syntax error before "void" export/kernel.h:79: syntax error before "void" export/kernel.h:80: syntax error before "void" In file included from drivers/adc.c:22: export/thread.h:27: parse error before "create_thread" export/thread.h:27: parse error before "__builtin_isgreater" export/thread.h:27: warning: type defaults to `int' in declaration of `create_thread' export/thread.h:27: warning: function declaration isn't a prototype export/thread.h:27: warning: data definition has no type or storage class export/thread.h:32: parse error before "thread_stack_usage" export/thread.h:32: parse error before "threadnum" export/thread.h:32: warning: type defaults to `int' in declaration of `thread_stack_usage' export/thread.h:32: warning: function declaration isn't a prototype export/thread.h:32: warning: data definition has no type or storage class In file included from drivers/adc.c:23: export/adc.h:44: parse error before "adc_read" export/adc.h:44: parse error before "channel" export/adc.h:44: warning: type defaults to `int' in declaration of `adc_read' export/adc.h:44: warning: function declaration isn't a prototype export/adc.h:44: warning: data definition has no type or storage class drivers/adc.c:25: parse error before "current_channel" drivers/adc.c:25: warning: type defaults to `int' in declaration of `current_channel' drivers/adc.c:25: warning: data definition has no type or storage class drivers/adc.c:26: parse error before "adcdata" drivers/adc.c:26: warning: type defaults to `int' in declaration of `adcdata' drivers/adc.c:26: warning: data definition has no type or storage class drivers/adc.c:27: parse error before "adcreg" drivers/adc.c:27: warning: type defaults to `int' in declaration of `adcreg' drivers/adc.c:31: warning: data definition has no type or storage class drivers/adc.c: In function `adc_tick': drivers/adc.c:37: parse error before "__builtin_islessgreater" drivers/adc.c:41: warning: passing arg 1 of `__builtin_longjmp' makes pointer from integer without a cast drivers/adc.c:41: too few arguments to function `__builtin_longjmp' drivers/adc.c:42: parse error before "current_channel" drivers/adc.c:43: parse error before "__builtin_abs" drivers/adc.c: At top level: drivers/adc.c:46: parse error before "adc_read" drivers/adc.c:46: parse error before "channel" drivers/adc.c:47: warning: return type defaults to `int' drivers/adc.c:47: warning: function declaration isn't a prototype drivers/adc.c: In function `adc_read': drivers/adc.c:48: parse error before "adcdata" drivers/adc.c:49: warning: control reaches end of non-void function drivers/adc.c: At top level: drivers/adc.c:54: warning: type defaults to `int' in declaration of `lower' drivers/adc.c:54: storage class specified for parameter `lower' drivers/adc.c: In function `adc_batch_convert': drivers/adc.c:56: parse error before "reg" drivers/adc.c:57: syntax error before '*' token drivers/adc.c:60: parse error before "__builtin_abs" drivers/adc.c:60: `reg' undeclared (first use in this function) drivers/adc.c:60: (Each undeclared identifier is reported only once drivers/adc.c:60: for each function it appears in.) drivers/adc.c:64: parse error before "__builtin_abs" drivers/adc.c:69: parse error before "__builtin_abs" drivers/adc.c:71: `i' undeclared (first use in this function) drivers/adc.c:71: parse error before ';' token drivers/adc.c:71: parse error before ')' token drivers/adc.c:54: warning: unused parameter `lower' drivers/adc.c: In function `adc_init': drivers/adc.c:80: parse error before "__builtin_abs" drivers/adc.c: At top level: export/kernel.h:75: warning: `queue_empty' declared `static' but never defined make[1]: *** [/home/rockbox/rockbox-2.1/b/drivers/adc.o] Error 1 make[1]: Leaving directory `/home/rockbox/rockbox-2.1/firmware' make: *** [firmware] Error 2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/