{"action":"created","issue":{"url":"https://api.github.com/repos/AppImage/AppImageKit/issues/666","repository_url":"https://api.github.com/repos/AppImage/AppImageKit","labels_url":"https://api.github.com/repos/AppImage/AppImageKit/issues/666/labels{/name}","comments_url":"https://api.github.com/repos/AppImage/AppImageKit/issues/666/comments","events_url":"https://api.github.com/repos/AppImage/AppImageKit/issues/666/events","html_url":"https://github.com/AppImage/AppImageKit/issues/666","id":300196970,"number":666,"title":"CMake: Missing flags for linker command?","user":{"login":"thopiekar","id":1847437,"avatar_url":"https://avatars3.githubusercontent.com/u/1847437?v=4","gravatar_id":"","url":"https://api.github.com/users/thopiekar","html_url":"https://github.com/thopiekar","followers_url":"https://api.github.com/users/thopiekar/followers","following_url":"https://api.github.com/users/thopiekar/following{/other_user}","gists_url":"https://api.github.com/users/thopiekar/gists{/gist_id}","starred_url":"https://api.github.com/users/thopiekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thopiekar/subscriptions","organizations_url":"https://api.github.com/users/thopiekar/orgs","repos_url":"https://api.github.com/users/thopiekar/repos","events_url":"https://api.github.com/users/thopiekar/events{/privacy}","received_events_url":"https://api.github.com/users/thopiekar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-26T11:11:02Z","updated_at":"2018-02-26T12:48:04Z","closed_at":null,"author_association":"NONE","body":"Here again something I noticed when trying to build AppImageKit in a minimal environment using a prefix.\r\nDuring build time I get this:\r\n```\r\n+ objcopy --add-section .upd_info=1024_blank_bytes --set-section-flags .upd_info=noload,readonly runtime.o runtime2.o\r\n+ objcopy --add-section .sha256_sig=1024_blank_bytes --set-section-flags .sha256_sig=noload,readonly runtime2.o runtime3.o\r\n+ squashfuse_libs='/home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit-build/squashfuse-prefix/src/squashfuse/.libs/libsquashfuse.a;/home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit-build/squashfuse-prefix/src/squashfuse/.libs/libsquashfuse_ll.a;/home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit-build/squashfuse-prefix/src/squashfuse/.libs/libfuseprivate.a'\r\n+ clang -Os -ffunction-sections -fdata-sections -s -Wl,--gc-sections -o runtime /home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit/src/elf.c /home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit/src/notify.c /home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit/src/getsection.c runtime3.o /home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit-build/squashfuse-prefix/src/squashfuse/.libs/libsquashfuse.a /home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit-build/squashfuse-prefix/src/squashfuse/.libs/libsquashfuse_ll.a /home/gitlab-runner/builds/aec59c0c/0/Cura/cura-build-environment/build/AppImageKit-prefix/src/AppImageKit-build/squashfuse-prefix/src/squashfuse/.libs/libfuseprivate.a -L -Wl,-Bdynamic -lpthread -lz -Wl,-Bstatic -llzma -Wl,-Bdynamic -ldl\r\n/usr/bin/ld: cannot find -lz\r\n/usr/bin/ld: cannot find -llzma\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n+ cleanup\r\n+ '[' -d /tmp/tmp.b4s3pmgZyS ']'\r\n+ rm -r /tmp/tmp.b4s3pmgZyS\r\nsrc/CMakeFiles/appimagetool.dir/build.make:65: recipe for target 'src/runtime' failed\r\nmake[5]: *** [src/runtime] Error 1\r\n```\r\n\r\nI'm wondering how it comes, that both are found during `cmake ..` execution, but during a build, it fails.\r\n\r\nThe full log is attached.\r\n[raw.txt](https://github.com/AppImage/AppImageKit/files/1758288/raw.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/AppImage/AppImageKit/issues/comments/368489233","html_url":"https://github.com/AppImage/AppImageKit/issues/666#issuecomment-368489233","issue_url":"https://api.github.com/repos/AppImage/AppImageKit/issues/666","id":368489233,"user":{"login":"thopiekar","id":1847437,"avatar_url":"https://avatars3.githubusercontent.com/u/1847437?v=4","gravatar_id":"","url":"https://api.github.com/users/thopiekar","html_url":"https://github.com/thopiekar","followers_url":"https://api.github.com/users/thopiekar/followers","following_url":"https://api.github.com/users/thopiekar/following{/other_user}","gists_url":"https://api.github.com/users/thopiekar/gists{/gist_id}","starred_url":"https://api.github.com/users/thopiekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thopiekar/subscriptions","organizations_url":"https://api.github.com/users/thopiekar/orgs","repos_url":"https://api.github.com/users/thopiekar/repos","events_url":"https://api.github.com/users/thopiekar/events{/privacy}","received_events_url":"https://api.github.com/users/thopiekar/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T12:48:04Z","updated_at":"2018-02-26T12:48:04Z","author_association":"NONE","body":"Alright, but it might take some time :grinning: "}}
{"actor":{"display_login":"thopiekar"}}