Pete Lomax <[EMAIL PROTECTED]> writes:

> On 18 Nov 2003 18:37:57 +0100, Juergen Boemmels
> <[EMAIL PROTECTED]> wrote:
> 
> >I assume he runs it with perl Configure.pl --ask
> Yes
> <snip>
> >The problem is that --ask option of has not the knowledge to change
> >the options according to the compiler. I don't know a simple fix for
> >this.
> >
> >A workaround solution to this is: Don't use --ask. Put the Compiler
> >directly to the commandline
> >
> >perl Configure --cc=gcc    # for MinGW
> >perl Configure --cc=bcc32  # for Borland C++-Builder
> >
> >Maybe you need to add --jitcapable=0 or --cgoto=0 as well.
> >
> That certainly moves things in the right direction.
> 
> Determining if your C compiler is actually gcc...
> 
> I had to laugh when that appeared! ;-)
> 
> Some more errors, I still get lots of these three:
> gcc.exe: unrecognized option `-nologo'
> gcc.exe: unrecognized option `-nodefaultlib'
> gcc.exe: unrecognized option `-release'

Are there any people out there building parrot on MinGW?
config/init/hints/mswin32.pl is far from complete.

Could you try out the attached patch. The options are just educated
guesses, so you might have to play a little with them. Don't forget to
rerun Configure to let your changes take effekt.

> test.c:2:21: pthread.h: No such file or directory (ENOENT)
> gcc.exe: test.o: No such file or directory (ENOENT)
> gcc.exe: no input files
> Bad command or file name
> 
> test.c:2:23: arpa/inet.h: No such file or directory (ENOENT)
> 
> test.c:2:21: sysexit.h: No such file or directory (ENOENT)
> 
> test.c:2:24: sys/socket.h: No such file or directory (ENOENT)

gcc is searching some system header files which are not found. Aren't
these probed config/auto/headers.pl?
BTW isn't the file call sysexits.h?

> test.o(.text+0x1b):test.c: undefined reference to `_memalign'
> collect2: ld returned 1 exit status
> test.o(.text+0x23):test.c: undefined reference to `_posix_memalign'
> collect2: ld returned 1 exit status
> test.c:12: error: parse error before "set_handler"
> test.c:12: error: parse error before "__sighandler_t"
> test.c: In function `set_handler':
> test.c:13: error: `__sighandler_t' undeclared (first use in this
> function)
> test.c:13: error: (Each undeclared identifier is reported only once
> test.c:13: error: for each function it appears in.)
> test.c:13: error: parse error before numeric constant
> 
> It does finish, but this is what make does:
> D:\Parrot\Parrot>make
> echo Compiling with:
> Compiling with:
> Use of uninitialized value in pattern match (m//) at
> tools\dev\cc_flags.pl line
> 54, <F> line 15.
> Use of uninitialized value in pattern match (m//) at
> tools\dev\cc_flags.pl line
> 54, <F> line 15.
> Use of uninitialized value in pattern match (m//) at
> tools\dev\cc_flags.pl line
> 54, <F> line 15.
> Use of uninitialized value in pattern match (m//) at
> tools\dev\cc_flags.pl line
> 54, <F> line 15.
> Use of uninitialized value in pattern match (m//) at
> tools\dev\cc_flags.pl line
> 54, <F> line 15.

What does the file CFLAGS say?

> -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -g
> -Dan_Sugalski -Larry
> -Wall -Ws
> D:\Parrot\perl\bin\perl.exe build_tools\ops2pm.pl ops/core.ops
> ops/bit.ops ops/c
> mp.ops ops/debug.ops ops/dotgnu.ops ops/io.ops ops/math.ops
> ops/object.ops ops/p
> mc.ops ops/rx.ops ops/set.ops ops/stack.ops ops/string.ops ops/sys.ops
> ops/var.o
> ps
> build_tools\ops2pm.pl: Could not find ops file 'ops/object.op'!
> make.exe: *** [lib\Parrot\OpLib\core.pm] Error 2

What make are you using?
Could it be that it has problems with long commandlines?

bye
bö

Reply via email to