Skip to content

cmd/cgo: fails with gcc 4.4.1 #1

Closed
@gopherbot

Description

@gopherbot

by [email protected]:

What steps will reproduce the problem?
1. Run build on Ubuntu 9.10, which uses gcc 4.4.1

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

Cgo fails with the following error:

{{{
go/misc/cgo/stdio$ make
cgo  file.go
could not determine kind of name for C.CString
could not determine kind of name for C.puts
could not determine kind of name for C.fflushstdout
could not determine kind of name for C.free
throw: sys·mapaccess1: key not in map

panic PC=0x2b01c2b96a08
throw+0x33 /media/scratch/workspace/go/src/pkg/runtime/runtime.c:71
    throw(0x4d2daf, 0x0)
sys·mapaccess1+0x74 
/media/scratch/workspace/go/src/pkg/runtime/hashmap.c:769
    sys·mapaccess1(0xc2b51930, 0x2b01)
main·*Prog·loadDebugInfo+0xa67 
/media/scratch/workspace/go/src/cmd/cgo/gcc.go:164
    main·*Prog·loadDebugInfo(0xc2bc0000, 0x2b01)
main·main+0x352 
/media/scratch/workspace/go/src/cmd/cgo/main.go:68
    main·main()
mainstart+0xf 
/media/scratch/workspace/go/src/pkg/runtime/amd64/asm.s:55
    mainstart()
goexit /media/scratch/workspace/go/src/pkg/runtime/proc.c:133
    goexit()
make: *** [file.cgo1.go] Error 2
}}}

Please use labels and text to provide additional information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions