therecipe / qt

Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.49k stars 748 forks source link

qtsetup -docker fails on linux #369

Closed xlucas closed 6 years ago

xlucas commented 7 years ago

Hello,

I've just started following steps in the "minimal installation" section. It fails with the following log:

➜  ~  qtsetup -docker
INFO[0000] running: 'qtsetup prep'                      
INFO[0000] successfully created qtrcc symlink in your PATH (/home/xlucas/.gvm/gos/go1.7.4/bin/qtrcc) 
INFO[0000] successfully created qtmoc symlink in your PATH (/home/xlucas/.gvm/gos/go1.7.4/bin/qtmoc) 
INFO[0000] successfully created qtminimal symlink in your PATH (/home/xlucas/.gvm/gos/go1.7.4/bin/qtminimal) 
INFO[0000] successfully created qtdeploy symlink in your PATH (/home/xlucas/.gvm/gos/go1.7.4/bin/qtdeploy) 
INFO[0000] running: 'qtsetup check linux' [docker=true] 
INFO[0000] running: 'qtsetup generate linux' [docker=true] 
INFO[0022] running: 'qtsetup install linux' [docker=true] 
INFO[0022] installing stub qt/core                      
INFO[0025] installing stub qt/androidextras             
INFO[0025] installing stub qt/gui                       
INFO[0028] installing stub qt/network                   
INFO[0029] installing stub qt/xml                       
INFO[0030] installing stub qt/dbus                      
INFO[0030] installing stub qt/nfc                       
INFO[0030] installing stub qt/script                    
INFO[0031] installing stub qt/sensors                   
INFO[0032] installing stub qt/positioning               
INFO[0032] installing stub qt/widgets                   
INFO[0056] installing stub qt/sql                       
INFO[0057] installing stub qt/qml                       
INFO[0057] installing stub qt/websockets                
INFO[0057] installing stub qt/xmlpatterns               
INFO[0058] installing stub qt/bluetooth                 
INFO[0058] installing stub qt/webchannel                
INFO[0058] installing stub qt/svg                       
INFO[0059] installing stub qt/multimedia                
INFO[0062] installing stub qt/quick                     
INFO[0063] installing stub qt/help                      
INFO[0065] installing stub qt/location                  
INFO[0065] installing stub qt/scripttools               
INFO[0066] installing stub qt/uitools                   
INFO[0066] installing stub qt/webengine                 
INFO[0067] installing stub qt/testlib                   
INFO[0067] installing stub qt/serialport                
INFO[0068] installing stub qt/serialbus                 
INFO[0068] installing stub qt/printsupport              
INFO[0069] installing stub qt/designer                  
INFO[0070] installing stub qt/scxml                     
INFO[0071] installing stub qt/gamepad                   
INFO[0071] installing stub qt/purchasing                
INFO[0071] installing stub qt/datavisualization         
INFO[0071] installing stub qt/charts                    
INFO[0073] installing stub qt/speech                    
INFO[0074] installing stub qt/quickcontrols2            
INFO[0074] installing stub qt/sailfish                  
INFO[0074] installing stub qt/webview                   
INFO[0074] running: 'qtsetup test linux' [docker=true]  
INFO[0074] testing qml/application                      
ERRO[0082] failed to run command                         cmd="docker run --rm -u 1000:1000 -v /home/xlucas/.gvm/pkgsets/go1.7.4/global:/media/sf_GOPATH0 -e GOPATH=/home/user/work:/media/sf_GOPATH0 -i therecipe/qt:linux qtdeploy -debug -ldflags= -tags= build linux /media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" env= error="exit status 2" func=RunCmd name="deploy binary for linux on linux with docker"
time="2017-06-18T11:08:32Z" level=debug msg="running Deploy" docker=false fast=false ldFlags= mode=build path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" target=linux 
time="2017-06-18T11:08:32Z" level=debug msg="start Rcc" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" target=linux 
time="2017-06-18T11:08:32Z" level=debug msg="get imports" level=0 path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list std" env= func=RunCmd name="go list std" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f '{{ join .TestImports "|" }}':'{{ join .Imports "|" }}' -tags=""" env= func=RunCmd name="go list deps" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/core" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/gui" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/qml" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Name}} -tags=""" env= func=RunCmd name="run go list" 
time="2017-06-18T11:08:32Z" level=debug msg="skipping cgo generation" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="/opt/Qt5.8.0/5.8/gcc_64/bin/rcc -project -o /media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.qrc" env= func=RunCmd name="execute rcc *.qrc on linux for linux" 
time="2017-06-18T11:08:32Z" level=debug msg="saved file len(99) /media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.qrc" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.ImportPath}} -tags=""" env= func=RunCmd name="run go list" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="/opt/Qt5.8.0/5.8/gcc_64/bin/rcc -name __media_sf_GOPATH0_src_github.com_therecipe_qt_internal_examples_qml_application -o /media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.cpp /media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/rcc.qrc" env= func=RunCmd name="execute rcc *.cpp on linux for linux" 
time="2017-06-18T11:08:32Z" level=debug msg="start Moc" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" target=linux 
time="2017-06-18T11:08:32Z" level=debug msg="get imports" level=0 path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f '{{ join .TestImports "|" }}':'{{ join .Imports "|" }}' -tags=""" env= func=RunCmd name="go list deps" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/core" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/gui" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/qml" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg="get go files" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" tagsCustom= target=linux 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f '{{ join .GoFiles "|" }}':'{{ join .CgoFiles "|" }}':'{{ join .TestGoFiles "|" }}' -tags=""" env= func=RunCmd name="go list gofiles" 
time="2017-06-18T11:08:32Z" level=debug msg=parse path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/application.go" 
time="2017-06-18T11:08:32Z" level=debug msg=parse path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/rcc_cgo_linux_linux_amd64.go" 
time="2017-06-18T11:08:32Z" level=debug msg="found 0 moc structs" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" 
time="2017-06-18T11:08:32Z" level=debug msg="start Minimal" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" target=linux 
time="2017-06-18T11:08:32Z" level=debug msg="get imports" level=0 path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f '{{ join .TestImports "|" }}':'{{ join .Deps "|" }}' -tags=""" env= func=RunCmd name="go list deps" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/core" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:32Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/gui" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:33Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/network" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:33Z" level=debug msg=Execute cmd="go list -e -f {{.Dir}} -tags="" github.com/therecipe/qt/qml" env= func=RunCmd name="go list dir" 
time="2017-06-18T11:08:33Z" level=debug msg="get go files" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application" tagsCustom= target=linux 
time="2017-06-18T11:08:33Z" level=debug msg=Execute cmd="go list -e -f '{{ join .GoFiles "|" }}':'{{ join .CgoFiles "|" }}':'{{ join .TestGoFiles "|" }}' -tags=""" env= func=RunCmd name="go list gofiles" 
time="2017-06-18T11:08:33Z" level=debug msg="analyse for minimal" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/application.go" 
time="2017-06-18T11:08:33Z" level=debug msg="analyse for minimal" path="/media/sf_GOPATH0/src/github.com/therecipe/qt/internal/examples/qml/application/rcc_cgo_linux_linux_amd64.go" 
time="2017-06-18T11:08:33Z" level=debug msg="found 2 files to analyse" 
time="2017-06-18T11:08:33Z" level=debug msg=parser.LoadModule module=Core 
time="2017-06-18T11:08:33Z" level=debug msg=prepare module=Core 
time="2017-06-18T11:08:33Z" level=debug msg="failed to parse header" class=QList module=Gui 
time="2017-06-18T11:08:33Z" level=debug msg=parser.LoadModule module=AndroidExtras 
time="2017-06-18T11:08:33Z" level=debug msg=prepare module=AndroidExtras 
time="2017-06-18T11:08:33Z" level=debug msg="failed to find header file" class=QtAndroid module=AndroidExtras 
time="2017-06-18T11:08:33Z" level=debug msg=parser.LoadModule module=Gui 
time="2017-06-18T11:08:35Z" level=debug msg=prepare module=Gui 
time="2017-06-18T11:08:35Z" level=debug msg="failed to find header file" class=QCss module=Gui 
time="2017-06-18T11:08:35Z" level=debug msg="failed to find header file" class=QPdf module=Gui 
time="2017-06-18T11:08:35Z" level=debug msg=parser.LoadModule module=Network 
time="2017-06-18T11:08:35Z" level=debug msg=prepare module=Network 
time="2017-06-18T11:08:35Z" level=debug msg="failed to find header file" class=Http2 module=Network 
time="2017-06-18T11:08:35Z" level=debug msg=parser.LoadModule module=Xml 
time="2017-06-18T11:08:35Z" level=debug msg=prepare module=Xml 
time="2017-06-18T11:08:35Z" level=debug msg=parser.LoadModule module=DBus 
time="2017-06-18T11:08:35Z" level=debug msg=prepare module=DBus 
time="2017-06-18T11:08:35Z" level=debug msg="failed to find header file" class=QDBus module=DBus 
time="2017-06-18T11:08:35Z" level=debug msg="failed to find header file" class=QDBusPendingReplyTypes module=DBus 
time="2017-06-18T11:08:35Z" level=debug msg=parser.LoadModule module=Nfc 
time="2017-06-18T11:08:35Z" level=debug msg=prepare module=Nfc 
time="2017-06-18T11:08:35Z" level=debug msg=parser.LoadModule module=Script 
time="2017-06-18T11:08:36Z" level=debug msg=prepare module=Script 
time="2017-06-18T11:08:36Z" level=debug msg="failed to find header file" class=QSOperator module=Script 
time="2017-06-18T11:08:36Z" level=debug msg="failed to find header file" class=QScript module=Script 
time="2017-06-18T11:08:36Z" level=debug msg=parser.LoadModule module=Sensors 
time="2017-06-18T11:08:36Z" level=debug msg=prepare module=Sensors 
time="2017-06-18T11:08:36Z" level=debug msg="failed to find header file" class=AndroidSensors module=Sensors 
time="2017-06-18T11:08:36Z" level=debug msg="failed to find header file" class=QtMobility module=Sensors 
time="2017-06-18T11:08:36Z" level=debug msg=parser.LoadModule module=Positioning 
time="2017-06-18T11:08:36Z" level=debug msg=prepare module=Positioning 
time="2017-06-18T11:08:36Z" level=debug msg=parser.LoadModule module=Widgets 
time="2017-06-18T11:08:36Z" level=debug msg=prepare module=Widgets 
time="2017-06-18T11:08:36Z" level=debug msg=parser.LoadModule module=Sql 
time="2017-06-18T11:08:36Z" level=debug msg=prepare module=Sql 
time="2017-06-18T11:08:36Z" level=debug msg="failed to find header file" class=QSql module=Sql 
time="2017-06-18T11:08:36Z" level=debug msg=parser.LoadModule module=Qml 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=Qml 
time="2017-06-18T11:08:37Z" level=debug msg="failed to find header file" class=QV4 module=Qml 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=WebSockets 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=WebSockets 
time="2017-06-18T11:08:37Z" level=debug msg="failed to find header file" class=QWebSocketProtocol module=WebSockets 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=XmlPatterns 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=XmlPatterns 
time="2017-06-18T11:08:37Z" level=debug msg="failed to find header file" class=QPatternist module=XmlPatterns 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=Bluetooth 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=Bluetooth 
time="2017-06-18T11:08:37Z" level=debug msg="failed to find header file" class=OSXBluetooth module=Bluetooth 
time="2017-06-18T11:08:37Z" level=debug msg="failed to find header file" class=QBluetooth module=Bluetooth 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=WebChannel 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=WebChannel 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=Svg 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=Svg 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=Multimedia 
time="2017-06-18T11:08:37Z" level=debug msg=prepare module=Multimedia 
time="2017-06-18T11:08:37Z" level=debug msg=parser.LoadModule module=Quick 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Quick 
time="2017-06-18T11:08:38Z" level=debug msg="failed to find header file" class=QSGBatchRenderer module=Quick 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Help 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Help 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Location 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Location 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=ScriptTools 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=ScriptTools 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=UiTools 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=UiTools 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=WebEngine 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=WebEngine 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QtWebEngineCore module=WebEngineCore 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=TestLib 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=TestLib 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=SerialPort 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=SerialPort 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=SerialBus 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=SerialBus 
time="2017-06-18T11:08:38Z" level=debug msg="failed to find header file" class=Diagnostics module=SerialBus 
time="2017-06-18T11:08:38Z" level=debug msg="failed to find header file" class=EncapsulatedInterfaceTransport module=SerialBus 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=PrintSupport 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=PrintSupport 
time="2017-06-18T11:08:38Z" level=debug msg="failed to find header file" class=QPrint module=PrintSupport 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Designer 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Designer 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Scxml 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Scxml 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Gamepad 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Gamepad 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Purchasing 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=Purchasing 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg=prepare module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DBars module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DCamera module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DInputHandler module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DLight module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DObject module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DScatter module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DScene module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DSurface module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=Q3DTheme module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QAbstract3DAxis module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QAbstract3DGraph module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QAbstract3DInputHandler module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QAbstract3DSeries module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QAbstractDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QBar3DSeries module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QBarDataItem module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QBarDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QCategory3DAxis module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QCustom3DItem module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QCustom3DLabel module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QCustom3DVolume module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QHeightMapSurfaceDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QItemModelBarDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QItemModelScatterDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QItemModelSurfaceDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QLogValue3DAxisFormatter module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QScatter3DSeries module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QScatterDataItem module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QScatterDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QSurface3DSeries module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QSurfaceDataItem module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QSurfaceDataProxy module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QTouch3DInputHandler module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QValue3DAxis module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg="failed to parse header" class=QValue3DAxisFormatter module=DataVisualization 
time="2017-06-18T11:08:38Z" level=debug msg=parser.LoadModule module=Charts 
time="2017-06-18T11:08:39Z" level=debug msg=prepare module=Charts 
time="2017-06-18T11:08:39Z" level=debug msg=parser.LoadModule module=Speech 
time="2017-06-18T11:08:39Z" level=debug msg=prepare module=Speech 
time="2017-06-18T11:08:39Z" level=debug msg="failed to find header file" class=QTextToSpeech module=Speech 
time="2017-06-18T11:08:39Z" level=debug msg="failed to find header file" class=QTextToSpeechPlugin module=Speech 
time="2017-06-18T11:08:39Z" level=debug msg=parser.LoadModule module=QuickControls2 
time="2017-06-18T11:08:39Z" level=debug msg=prepare module=QuickControls2 
time="2017-06-18T11:08:39Z" level=debug msg=parser.LoadModule module=Sailfish 
time="2017-06-18T11:08:39Z" level=debug msg=prepare module=Sailfish 
time="2017-06-18T11:08:39Z" level=debug msg=parser.LoadModule module=WebView 
time="2017-06-18T11:08:39Z" level=debug msg=prepare module=WebView 
time="2017-06-18T11:08:39Z" level=debug msg=generating module=Core 
time="2017-06-18T11:08:39Z" level=debug msg=Execute cmd="go list -f {{.Root}} github.com/therecipe/qt" env= func=RunCmd name="get list gopath" 
time="2017-06-18T11:08:39Z" level=debug msg="generating cpp" module=Core 
time="2017-06-18T11:08:39Z" level=debug msg="QtCore add dependency: QtCore" 
time="2017-06-18T11:08:39Z" level=panic msg="failed to save /home/user/work/src/github.com/therecipe/qt/core/core-minimal.cpp" error="open /home/user/work/src/github.com/therecipe/qt/core/core-minimal.cpp: permission denied" 
panic: (*logrus.Entry) (0x7e8dc0,0xc427fd2140)

goroutine 1 [running]:
github.com/Sirupsen/logrus.Entry.log(0xc4200540f0, 0xc427ae6150, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /home/user/work/src/github.com/Sirupsen/logrus/entry.go:124 +0x33e
github.com/Sirupsen/logrus.(*Entry).Panic(0xc427fd2050, 0xc42263b390, 0x1, 0x1)
    /home/user/work/src/github.com/Sirupsen/logrus/entry.go:169 +0x127
github.com/Sirupsen/logrus.(*Entry).Panicf(0xc427fd2050, 0x8054fc, 0x11, 0xc42263b418, 0x1, 0x1)
    /home/user/work/src/github.com/Sirupsen/logrus/entry.go:217 +0x101
github.com/therecipe/qt/internal/utils.SaveBytes(0xc428025f90, 0x41, 0xc420078800, 0x3e86, 0x4111, 0x0, 0x0)
    /home/user/work/src/github.com/therecipe/qt/internal/utils/utils.go:62 +0x164
github.com/therecipe/qt/internal/binding/templater.GenModule(0x7f2a63, 0x4, 0x7ffc67979e42, 0x5, 0x2)
    /home/user/work/src/github.com/therecipe/qt/internal/binding/templater/templater.go:46 +0x3a7
github.com/therecipe/qt/internal/cmd/minimal.Minimal(0x7ffc67979e48, 0x4f, 0x7ffc67979e42, 0x5, 0x7ffc67979e36, 0x0)
    /home/user/work/src/github.com/therecipe/qt/internal/cmd/minimal/minimal.go:130 +0xe8b
github.com/therecipe/qt/internal/cmd/deploy.Deploy(0x7ffc67979e3c, 0x5, 0x7ffc67979e42, 0x5, 0x7ffc67979e48, 0x4f, 0x0, 0x7ffc67979e2c, 0x0, 0x7ffc67979e36, ...)
    /home/user/work/src/github.com/therecipe/qt/internal/cmd/deploy/deploy.go:46 +0xa57
main.main()
    /home/user/work/src/github.com/therecipe/qt/cmd/qtdeploy/main.go:105 +0x3e1

It pretty much sounds like this is caused by this :

docker run --rm -u 1000:1000 -v /home/xlucas/.gvm/pkgsets/go1.7.4/global:/media/sf_GOPATH0 -e GOPATH=/home/user/work:/media/sf_GOPATH0 [...]

Where GOPATH should not be /home/user/work:/media/sf_GOPATH0 but /media/sf_GOPATH0, right?

therecipe commented 7 years ago

Hey

Sorry, this is probably due the changes made for https://github.com/therecipe/qt/issues/290 To create non-root owned files on the host.

Where GOPATH should not be /home/user/work:/media/sf_GOPATH0 but /media/sf_GOPATH0, right?

Yeah, no this is fine. /home/user/work is also needed to get access to the real files, because your GOPATH (/media/sf_GOPATH0) only contain stubs of therecipe/qt/{core,gui,widgets}...

The actual problem is that the files create in /home/user/work are created with root ownership during the creation of the image. But when you now run docker as non-root by running qtsetup -docker, you got no permission to create files in /home/user/work.

edit: okay seems like https://github.com/therecipe/qt/commit/d40d963b11f43295122327888925576319ee40fa fixes it

phoenix147 commented 7 years ago

Hi

I stumbled upon the same error. Is this already pushed to docker hub? I just updated my container/image a few minutes ago and i am still getting this error.

therecipe commented 7 years ago

@phoenix147

Ah, sorry I just tested it on a fresh machine and it failed on the second run of qtsetup and/or qtdeploy. But it should be fixed now with: https://github.com/therecipe/qt/commit/c6cb74d45e468dce508f47aa87d51793d904a9ad

You will need to pull the new images and as well as c6cb74d45e468dce508f47aa87d51793d904a9ad.

phoenix147 commented 7 years ago

@therecipe

Thanks. Its working for me now.

xlucas commented 7 years ago

I will give it a try when possible. Thanks

kromanow94 commented 7 years ago

Hi

Now this error appears:

https://paste.ofcode.org/32MzwLqcKVzsCxknKKuPzfn

I've checked the command alone:

docker run --rm -u 1000:1000 -v /home/kromanowski/go:/media/sf_GOPATH0 -e QT_STUB=true -e GOPATH=/media/sf_GOPATH0:/home/user/work -i therecipe/qt:linux /home/user/work/bin/qtsetup -debug generate linux

also with sudo and it generates the same error. Checked all just few minutes ago with latest commit and docker img.

Edit: this error occurs on my Fedora env, but not on fresh Ubuntu. Seems i have to find it by myself. Edit: Ok, now I see it is a problem of selinux with docker. Sollution: chcon -Rt svirt_sandbox_file_t $GOPATH

Proposal: Maybe the authors should consider this sollution in future: https://stackoverflow.com/a/31334443

therecipe commented 7 years ago

@krzysztofromanowski94 Thanks :)

Alternatively you probably could have run it like this as well: docker run --rm -v /home/kromanowski/go:/media/sf_GOPATH0 -e QT_STUB=true -e GOPATH=/media/sf_GOPATH0:/home/user/work -i therecipe/qt:linux /home/user/work/bin/qtsetup -debug generate linux even though all the files in github.com/therecipe/qt/{core,gui,widgets,...} would have been owned by root then. And I just figured that I probably should make this the default behavior, and then chown the files manually.