Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error installing go #5

Open
GoogleCodeExporter opened this issue Nov 9, 2015 · 3 comments
Open

Unexpected error installing go #5

GoogleCodeExporter opened this issue Nov 9, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. $ ./all.bash
2.
3.

What is the expected output? What do you see instead?

expected: 
--- cd ../test
N known bugs; 0 unexpected bugs

what I got:
gopack grc _obj/runtime.a _go_.8 asm.8 cgocall.8 chan.8 closure.8 float.8 
hashma
p.8 iface.8 malloc.8 mcache.8 mcentral.8 mem.8 mfixalloc.8 mgc0.8 mheap.8 
mheapm
ap32.8 msize.8 print.8 proc.8 reflect.8 rune.8 runtime.8 rt0.8 sema.8 
signal.8 s
lice.8 string.8 symtab.8 sys.8 thread.8 traceback.8 vlop.8 vlrt.8
make[1]: *** [/home/Peter/golang-on-cygwin/pkg/linux_386/runtime.a] Error 1
rm reflect.c string.c sema.c malloc.c
make[1]: Leaving directory `/home/Peter/golang-on-cygwin/src/pkg/runtime'
make: *** [runtime.install] Error 2

What version of the product are you using? On what operating system?

Windows XP

Please provide any additional information below.

gcc, make, and bison installed, and running correctly (I think.)

Original issue reported on code.google.com by [email protected] on 19 Apr 2010 at 8:58

@GoogleCodeExporter
Copy link
Author

There's a bug in src/pkg/Makefile: the target directory of install 
$(GOROOT)/pkg is
not exist.

mkdir -p $(GOROOT)/pkg before running src/all.bash

Original comment by [email protected] on 16 May 2010 at 5:22

@GoogleCodeExporter
Copy link
Author

Is there a reason this is just a comment on the bug tracker and hasn't been 
patched into the makefile?  it's super trivial to fix...

Original comment by [email protected] on 9 Sep 2011 at 9:50

@GoogleCodeExporter
Copy link
Author

I did the above 
mkdir -p $GOROOT/pkg 
it created a pkg dir in repo but now it gives the error as below

%%%% making libcgo %%%%

gcc -m32 -O2 -fPIC -o linux_386.o -c linux_386.c
gcc -m32 -O2 -fPIC -o 386.o -c 386.S
gcc -m32 -O2 -fPIC -o util.o -c util.c
linux_386.c:1:0: warning: -fPIC ignored for target (all code is position 
independent)
386.S:1:0: warning: -fPIC ignored for target (all code is position independent)
util.c:1:0: warning: -fPIC ignored for target (all code is position independent)
gcc -m32 -shared -lpthread -lm -o libcgo.so linux_386.o 386.o util.o
Cannot export crosscall_386: symbol not defined
linux_386.o:linux_386.c:(.text+0x4c): undefined reference to `_crosscall_386'
collect2: ld returned 1 exit status
Makefile:27: recipe for target `libcgo.so' failed
make: *** [libcgo.so] Error 1

Original comment by [email protected] on 27 Aug 2012 at 2:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant