I copy golang-1.18 from jammy to trusty, build success but install nothing, why?

Asked by Lonny Wong

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ioana Lasc (ilasc) said :


Just from looking at the logs that looks like an incompatible gcc version:
gcc: error: unrecognized command line option '-fdiagnostics-color'

Perhaps the build would fail with failing tests, but they are run with the -k option ?

Revision history for this message
Lonny Wong (lonnywong) said :

I skiped the tests. It didn't work.

I make my own Makefile, and copy them to the install path. It failed at first, and it took me a lot of time to find out that the strip destroying the static library. Finally, It works now.

I still wondering why the copy of jammy install nothing.

Revision history for this message
Jürgen Gmach (jugmac00) said :

Good to see you seem to have found a solution which works for you.

I am afraid we do not have the bandwidth to give detailed build support.

As Ioana already suggested, it might not be a good idea to just skip the failing test suite - it fails for a reason.

I am not very experienced with deb packaging, but e.g. for Python you can certainly have successful builds, but a broken installation.

Additionally, you did not provide what happens when you try to install the build, e.g. an error message.

I do not know your use case, but if you need to install go on Trusty, I would have suggested to use the snap, see https://snapcraft.io/install/go/ubuntu

Unfortunately, it looks like installation of snapd is broken on Trusty, which I have reported at https://bugs.launchpad.net/snapd/+bug/1979956

Can you help with this problem?

Provide an answer of your own, or ask Lonny Wong for more information if necessary.

To post a message you must log in.