gotk4 icon indicating copy to clipboard operation
gotk4 copied to clipboard

The filename or extension is too long

Open Keeyuu opened this issue 3 years ago • 4 comments

please help me 'go build github.com/diamondburned/gotk4/pkg/gtk/v3: C:\golang\pkg\tool\windows_amd64\cgo.exe: fork/exec C:\golang\pkg\tool\windows_amd64\cgo.exe: The filename or extension is too long.'

Keeyuu avatar Jan 19 '22 14:01 Keeyuu

whatever 'github.com/diamondburned/gotk4/pkg/gtk/v3' or 'github.com/diamondburned/gotk4/pkg/gtk/v4' i just run write """ package main

import ( _ "github.com/diamondburned/gotk4/pkg/gtk/v3" )

func main() {}

"""

Keeyuu avatar Jan 19 '22 14:01 Keeyuu

What's commit of gotk4 are you on?

diamondburned avatar Jan 20 '22 01:01 diamondburned

This seems like a duplicate of https://github.com/golang/go/issues/47235. The short version is that when building https://github.com/diamondburned/gotk4/tree/4/pkg/gtk/v3, Go invokes the cgo tool with absolute paths to a number of cgo-generated C files, and that is just enough to hit the command size limit in Windows. Upstream Go could do better here, such as by not using absolute paths.

mvdan avatar Aug 31 '22 12:08 mvdan

pump it

thanhps42 avatar Jul 04 '23 07:07 thanhps42