golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.03k stars 17.67k forks source link

windows: cannot build 8l #1190

Closed gopherbot closed 9 years ago

gopherbot commented 14 years ago

by sunixm:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1.cd src
2.make

What is the expected output?
Build the windows version Golang compliers 

What do you see instead?
collect2: ld returned 5 exit status
make: *** [8l.exe] Error 1

Which compiler are you using (5g, 6g, 8g, gccgo)?
mingw32  
gcc  4.4.0

Which operating system are you using?
Windows

Which revision are you using?  (hg identify)
Win32 build of Go release 2010-09-29

Please provide any additional information below.
The following is all the error output:

%%%% making 8l %%%%

quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c
"/e/go/src/cmd/8l/asm.c"
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c -I. ../ld/dwarf.c
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c -I. ../ld/elf.c
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c -I. ../ld/go.c
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c -I. ../ld/lib.c
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c
"/e/go/src/cmd/8l/list.c"
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c -I. ../ld/macho.c
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c
"/e/go/src/cmd/8l/obj.c"
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c
"/e/go/src/cmd/8l/optab.c"
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c
"/e/go/src/cmd/8l/pass.c"
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c -I. ../ld/pe.c
quietgcc -ggdb -I"e:\go/include" -O2 -fno-inline -c
"/e/go/src/cmd/8l/span.c"
quietgcc -o 8l.exe -L"e:\go"/lib asm.o dwarf.o elf.o enam.o go.o lib.o list.o
ma
cho.o obj.o optab.o pass.o pe.o span.o   -lbio -l9 -lm
collect2: ld returned 5 exit status
make: *** [8l.exe] Error 1
gopherbot commented 14 years ago

Comment 1 by sunixm:

What steps will reproduce the problem?
1.cd src
2.all.bash(Not make :)
They just build windows version of golang complier but how ?
When I tried to do it,i got the error message but i don't konw how to correct it?
Can someone help me? Or just give some compilation guides ?
rsc commented 14 years ago

Comment 2:

The mailing list would be a good place to ask for help on this.
The Windows port is not yet fully complete.
Removing the grep of error messages from quietgcc might
turn up an error from the final link.

Labels changed: added priority-low, removed priority-medium.

Status changed to Accepted.

gopherbot commented 14 years ago

Comment 3 by sunixm:

When i changed to use MinGW gcc 4.5 the problem just disappeared and the compliation
completed only with some test errors
And the golang tools seemed works fine
alexbrainman commented 14 years ago

Comment 4:

Labels changed: added os-windows.

Status changed to WorkingAsIntended.