Open johnnewcombe opened 2 years ago
I've not direct access to a macOS box at the moment to replicate it. Unfortunately the error message is not helpful in this case. Could you please run the following command after the error occur, and report the output if any ?
/usr/local/bin/docker run --rm -t -w /app/fyne-cross/tmp/linux-amd64 -v /Users/john/Development/Repositories/Telstar/telstar-client:/app -e CGO_ENABLED=1 -e GOCACHE=/go/go-build -e GOOS=linux -e GOARCH=amd64 -e CC=gcc -e fyne_uid=501 fyneio/fyne-cross:1.1-base /usr/local/bin/fyne package -os linux -name telstar-client -icon /app/fyne-cross/tmp/linux-amd64/Icon.png -appBuild 1 -appVersion 1.0 -appID com.glasstty.telstar-client -executable /app/fyne-cross/bin/linux-amd64/telstar-client
Just a guess, but does the macOS image have xz
installed by default?
Alas, not helppul I suspect...
Did as you said, got the failure and then ran the command you suggested, the failue was the same . Would it help if I did something from a shell attached to the Docker container itself?
@. telstar-client % /usr/local/bin/docker run --rm -t -w /app/fyne-cross/tmp/linux-amd64 -v /Users/john/Development/Repositories/Telstar/telstar-client:/app -e CGO_ENABLED=1 -e GOCACHE=/go/go-build -e GOOS=linux -e GOARCH=amd64 -e CC=gcc -e fyne_uid=501 fyneio/fyne-cross:1.1-base /usr/local/bin/fyne package -os linux -name telstar-client -icon /app/fyne-cross/tmp/linux-amd64/Icon.png -appBuild 1 -appVersion 1.0 -appID com.glasstty.telstar-client -executable /app/fyne-cross/bin/linux-amd64/telstar-client Failed to create archive with tar: exit status 1 @. telstar-client %
On Sun, Jan 9, 2022 at 4:49 PM Luca Corbo @.***> wrote:
I've not direct access to a macOS box at the moment to replicate it. Unfortunately the error message is not helpful in this case. Could you please run the following command after the error occur, and report the output if any ?
/usr/local/bin/docker run --rm -t -w /app/fyne-cross/tmp/linux-amd64 -v /Users/john/Development/Repositories/Telstar/telstar-client:/app -e CGO_ENABLED=1 -e GOCACHE=/go/go-build -e GOOS=linux -e GOARCH=amd64 -e CC=gcc -e fyne_uid=501 fyneio/fyne-cross:1.1-base /usr/local/bin/fyne package -os linux -name telstar-client -icon /app/fyne-cross/tmp/linux-amd64/Icon.png -appBuild 1 -appVersion 1.0 -appID com.glasstty.telstar-client -executable /app/fyne-cross/bin/linux-amd64/telstar-client
— Reply to this email directly, view it on GitHub https://github.com/fyne-io/fyne-cross/issues/85#issuecomment-1008334379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUKBUDK5KHE4TKZSJAKNJLUVG4BFANCNFSM5LANBR5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Would it help if I did something from a shell attached to the Docker container itself?
Yes, thanks that would be helpful.
Running the fyne package
command from the container should allow to get the full the error.
Here's where we are....
I run the following to get an interactive shell within the container...
/usr/local/bin/docker run --rm -it -w /app/fyne-cross/tmp/linux-amd64 -v /Users/john/Development/Repositories/Telstar/telstar-client:/app -e CGO_ENABLED=1 -e GOCACHE=/go/go-build -e GOOS=linux -e GOARCH=amd64 -e CC=gcc -e fyne_uid=501 fyneio/fyne-cross:1.1-base bash
Then I run the command...
/usr/local/bin/fyne package -os linux -name telstar-client -icon /app/fyne-cross/tmp/linux-amd64/Icon.png -appBuild 1 -appVersion 1.0 -appID com.glasstty.telstar-client -executable /app/fyne-cross/bin/linux-amd64/telstar-client
This retuns the error... BUT note that that a valid .xz file IS being created ...
Failed to create archive with tar: exit status 1
The full session is here,
@.:/app/fyne-cross/tmp/linux-amd64$ ls Icon.png @.:/app/fyne-cross/tmp/linux-amd64$ /usr/local/bin/fyne package -os linux -name telstar-client -icon /app/fyne-cross/tmp/linux-amd64/Icon.png -appBuild 1 -appVersion 1.0 -appID com.glasstty.telstar-client -executable /app/fyne-cross/bin/linux-amd64/telstar-client Failed to create archive with tar: exit status 1 @.:/app/fyne-cross/tmp/linux-amd64$ ls Icon.png telstar-client.tar.xz @.:/app/fyne-cross/tmp/linux-amd64$
Perhaps if I knew the exact command that is being sent to TAR I could take this further? Unless you can think of something else that would help.
Regards
John
On Mon, Jan 10, 2022 at 6:23 PM Luca Corbo @.***> wrote:
Would it help if I did something from a shell attached to the Docker container itself?
Yes, thanks that would be helpful. Running the fyne package command from the container should allow to get the full the error.
— Reply to this email directly, view it on GitHub https://github.com/fyne-io/fyne-cross/issues/85#issuecomment-1009205038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUKBUEBGBYRNANMJQK2EZ3UVMP2HANCNFSM5LANBR5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Yep this is weird, my first thought was a docker image not updated (missing xz utils) as Andrew said above, but looking at your first command seems up-to-date.
As side note, I'm able to package from a linux box using that command...
The command executed by fyne package
and that fails should be this https://github.com/fyne-io/fyne/blob/master/cmd/fyne/internal/commands/package-unix.go#L70 but probably running it directly won't help to debug since the temporary resources are removed with a defer but worth a try :)
Another way to debug is to build the fyne command from https://github.com/fyne-io/fyne/pull/2731 and mount replace the fyne CLI tool into the container installing the development version: go install fyne.io/fyne/v2/cmd/fyne@develop
@johnnewcombe Can you still reproduce this if you try again with the latest release? I can't seem to replicate this myself.
I will try it sometime over the weekend and get back to you. J
On Tue, Mar 29, 2022 at 8:41 PM Jacob @.***> wrote:
@johnnewcombe https://github.com/johnnewcombe Can you still reproduce this if you try again with the latest release? I can't seem to replicate this myself.
— Reply to this email directly, view it on GitHub https://github.com/fyne-io/fyne-cross/issues/85#issuecomment-1082302892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUKBUDORZ2XLKGI2277SI3VCNMHFANCNFSM5LANBR5A . You are receiving this because you were mentioned.Message ID: @.***>
Unfortunately I have the same issue... here is my output.
@.*** telstar-client % fyne-cross linux -pull -app-id=com.glasstty.telstar-client -arch=amd64 [i] Target: linux/amd64 [i] Checking for a newer version of the docker image: docker.io/fyneio/fyne-cross:1.2-base [✓] Image is up to date [i] Cleaning target directories... [✓] "bin" dir cleaned: /Users/john/Development/Repositories/telstar-2/telstar-client/fyne-cross/bin/linux-amd64 [✓] "dist" dir cleaned: /Users/john/Development/Repositories/telstar-2/telstar-client/fyne-cross/dist/linux-amd64 [✓] "temp" dir cleaned: /Users/john/Development/Repositories/telstar-2/telstar-client/fyne-cross/tmp/linux-amd64 [i] Checking for go.mod: /Users/john/Development/Repositories/telstar-2/telstar-client/go.mod [✓] go.mod found [i] Building binary... go: downloading golang.org/x/sys v0.0.0-20220403205710-6acee93ad0eb go: downloading github.com/BurntSushi/toml v1.0.0 [✓] Binary: /Users/john/Development/Repositories/telstar-2/telstar-client/fyne-cross/bin/linux-amd64/telstar-client [i] Packaging app... Failed to create archive with tar: exit status 1 [✗] could not package the Fyne app: could not package the Fyne app: exit status 1
On Wed, Mar 30, 2022 at 10:01 PM John Newcombe @.***> wrote:
I will try it sometime over the weekend and get back to you. J
On Tue, Mar 29, 2022 at 8:41 PM Jacob @.***> wrote:
@johnnewcombe https://github.com/johnnewcombe Can you still reproduce this if you try again with the latest release? I can't seem to replicate this myself.
— Reply to this email directly, view it on GitHub https://github.com/fyne-io/fyne-cross/issues/85#issuecomment-1082302892, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUKBUDORZ2XLKGI2277SI3VCNMHFANCNFSM5LANBR5A . You are receiving this because you were mentioned.Message ID: @.***>
@johnnewcombe may I ask to test a couple of things for us ?
develop
that should report a detailed error message. (i.e. docker run ..
&& go install fyne.io/fyne/v2/cmd/fyne@develop
&& fyne package ...).From within the interactive shell I install the CLI from develop and then run the build and package. The results are the same with no further information. In the example below I am using 1.2-base. Please note... the tar gets created in the tmp folder but does not get created in the dist folder, however, the error causes Make to fail and nothing else gets built. I get exactly the same issue with my linux-arm64 build.
A workaround for me would be a way to perform a build WITHOUT a package in which case I could create the package using Make.
`root@56bef002dd08:/app/fyne-cross/tmp/linux-amd64# go install fyne.io/fyne/v2/cmd/fyne@develop
go: downloading fyne.io/fyne v1.4.4-0.20210118142724-c0dffa8c905d go: downloading fyne.io/fyne/v2 v2.2.1-0.20220616081215-d88ad88ec453 go: downloading github.com/urfave/cli/v2 v2.4.0 go: downloading github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 go: downloading github.com/jackmordaunt/icns/v2 v2.2.1 go: downloading github.com/josephspurrier/goversioninfo v1.4.0 go: downloading github.com/lucor/goinfo v0.0.0-20210802170112-c078a2b0f08b go: downloading github.com/mcuadros/go-version v0.0.0-20190830083331-035f6764e8d2 go: downloading golang.org/x/mod v0.4.2 go: downloading golang.org/x/sys v0.0.0-20220412211240-33da011f77ad go: downloading github.com/BurntSushi/toml v1.1.0 go: downloading golang.org/x/tools v0.1.8-0.20211022200916-316ba0b74098 go: downloading github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e go: downloading github.com/akavel/rsrc v0.10.2 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.1 go: downloading github.com/russross/blackfriday/v2 v2.1.0 root@56bef002dd08:/app/fyne-cross/tmp/linux-amd64# /usr/local/bin/fyne package -os linux -name telstar-client -icon /app/fyne-cross/tmp/linux-amd64/Icon.png -appBuild 1 -appVersion 1.0 -appID com.glasstty.telstar-client -executable /app/fyne-cross/bin/linux-amd64/telstar-client Failed to create archive with tar: exit status 1 root@56bef002dd08:/app/fyne-cross/tmp/linux-amd64# `
Just to let you know that the workaround for me is as shown below. Note that I have added "; true" to the end of the command to stop Make being aborted and I have added a copy to move the .tar.xz to the dist directory.
fyne-cross linux -pull -app-id=com.glasstty.telstar-client -arch=amd64; true
cp ./fyne-cross/tmp/linux-amd64/telstar-client.tar.xz ./fyne-cross/dist/linux-amd64/
fyne-cross linux -pull -app-id=com.glasstty.telstar-client -arch=arm64; true
cp ./fyne-cross/tmp/linux-arm64/telstar-client.tar.xz ./fyne-cross/dist/linux-arm64/
This might sound like a silly question, but is that .tar.xz file uncompressing properly with no error message when you use your work around?
Not a silly question at all. Yes it does. I have decompressed it and used 'make install' to install my app successfully on Linux.
On Fri, 17 Jun 2022, 16:48 Cedric BAIL, @.***> wrote:
This might sound like a silly question, but is that .tar.xz file uncompressing properly with no error message when you use your work around?
— Reply to this email directly, view it on GitHub https://github.com/fyne-io/fyne-cross/issues/85#issuecomment-1159009418, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUKBUGGPDFIXPVJCG3VQCLVPSM53ANCNFSM5LANBR5A . You are receiving this because you were mentioned.Message ID: @.***>
Describe the bug:
When running the command...
fyne-cross linux -pull -app-id=com.glasstty.telstar-client -arch=amd64,arm64
I receive the following error:
The binary itself is created successfully.
All builds and packaging work as expected for Windows (386/amd64) and Darwin (amd64 and arm64).
The docker images I am using are:
Device and debug info (please complete the following information):
Debug info