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

Asked by Lonny Wong

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ioana Lasc (ilasc) said :
#1

Hi

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 :
#2

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 :
#3

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.