Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go test fails: undefined: runtime.main_main #164

Open
pebbe opened this issue Dec 12, 2015 · 0 comments
Open

go test fails: undefined: runtime.main_main #164

pebbe opened this issue Dec 12, 2015 · 0 comments

Comments

@pebbe
Copy link

pebbe commented Dec 12, 2015

Ubuntu 14.04.3 LTS
go version go1.5.2 linux/amd64
Qt version 5.1.1
Qt installed with the Qt installer in /net/aps/64/opt/Qt5.1.1
qml installed with:

export PATH="/net/aps/64/opt/Qt5.1.1/5.1.1/gcc_64/bin:$PATH"
export PKG_CONFIG_PATH=/net/aps/64/opt/Qt5.1.1/5.1.1/gcc_64/lib/pkgconfig
export LD_RUN_PATH="/net/aps/64/opt/Qt5.1.1/5.1.1/gcc_64/lib"
go get gopkg.in/qml.v1

Without setting LD_RUN_PATH, installation fails. Shouldn't setting PKG_CONFIG_PATH be enough?

Then running go test gopkg.in/qml.v1 I get:

# testmain
gopkg.in/qml.v1/cdata.Addrs: runtime.main_main: not defined
gopkg.in/qml.v1/cdata.Addrs: undefined: runtime.main_main
FAIL    gopkg.in/qml.v1 [build failed]

See attachment, the output of running go test -x -v gopkg.in/qml.v1
qml_test.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant