diamondburned/gotk4

The filename or extension is too long

Keeyuu opened this issue · 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.'

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() {}

"""

What's commit of gotk4 are you on?

mvdan commented

This seems like a duplicate of golang/go#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.

pump it