{"action":"opened","issue":{"url":"https://api.github.com/repos/effenel/bootimg/issues/2","labels_url":"https://api.github.com/repos/effenel/bootimg/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/effenel/bootimg/issues/2/comments","events_url":"https://api.github.com/repos/effenel/bootimg/issues/2/events","html_url":"https://github.com/effenel/bootimg/issues/2","id":113063379,"number":2,"title":"vboot_reference doesn't compile with musl","user":{"login":"cdotstout","id":12143740,"avatar_url":"https://avatars.githubusercontent.com/u/12143740?v=3","gravatar_id":"","url":"https://api.github.com/users/cdotstout","html_url":"https://github.com/cdotstout","followers_url":"https://api.github.com/users/cdotstout/followers","following_url":"https://api.github.com/users/cdotstout/following{/other_user}","gists_url":"https://api.github.com/users/cdotstout/gists{/gist_id}","starred_url":"https://api.github.com/users/cdotstout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdotstout/subscriptions","organizations_url":"https://api.github.com/users/cdotstout/orgs","repos_url":"https://api.github.com/users/cdotstout/repos","events_url":"https://api.github.com/users/cdotstout/events{/privacy}","received_events_url":"https://api.github.com/users/cdotstout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-23T17:23:43Z","updated_at":"2015-10-23T17:23:43Z","closed_at":null,"body":"Currently vboot_reference is built with the host toolchain instead of the target toolchain.\r\n\r\nWhen I attempted to fix that, I found that vboot_reference is looking for execinfo.h which isn't provided by musl.\r\n\r\n LDLIBS='-lssl -lcrypto' make -j32 -C /media/cstout/t1_ext4/projects/fnljiri/vboot_reference -f Makefile CC=x86_64-fuchsia-linux-musl-gcc && touch /media/cstout/t1_ext4/projects/fnljiri/out/bootimg/.fuchsia-touch_vboot-reference\r\nmake: Entering directory '/media/cstout/t1_ext4/projects/fnljiri/vboot_reference'\r\nPackage libcrypto was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `libcrypto.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'libcrypto' found\r\nPackage liblzma was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `liblzma.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'liblzma' found\r\nPackage yaml-0.1 was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `yaml-0.1.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'yaml-0.1' found\r\n    CC            futility/dump_kernel_config_lib.o\r\n    CC            firmware/stub/vboot_api_stub_sf.o\r\n    CC            firmware/lib/cgptlib/cgptlib.o\r\n    CC            firmware/lib/cgptlib/cgptlib_internal.o\r\n    CC            firmware/lib/cgptlib/crc32.o\r\n    CC            firmware/lib/utility_string.o\r\n    CC            firmware/stub/vboot_api_stub_region.o\r\n    CC            firmware/lib/gpt_misc.o\r\nIn file included from futility/dump_kernel_config_lib.c:11:0:\r\n/media/cstout/t1_ext4/projects/fnljiri/out/root/x86_64-fuchsia-linux-musl/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]\r\n #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>\r\n  ^\r\n    CC            host/lib21/host_signature.o\r\n    CC            host/lib21/host_misc.o\r\n    CC            firmware/2lib/2api.o\r\n    CC            firmware/2lib/2common.o\r\n    CC            firmware/2lib/2crc8.o\r\n    CC            firmware/2lib/2sha512.o\r\n    CC            firmware/2lib/2sha1.o\r\n    CC            firmware/2lib/2misc.o\r\n    CC            firmware/2lib/2sha256.o\r\n    CC            firmware/2lib/2secdatak.o\r\n    CC            firmware/2lib/2nvstorage.o\r\nfirmware/stub/vboot_api_stub_sf.c:8:22: fatal error: execinfo.h: No such file or directory\r\n #include <execinfo.h>\r\n                      ^\r\ncompilation terminated.\r\n    CC            firmware/stub/vboot_api_stub.o\r\n    CC            firmware/2lib/2rsa.o\r\n    CC            firmware/2lib/2secdata.o\r\nMakefile:1160: recipe for target '/media/cstout/t1_ext4/projects/fnljiri/vboot_reference/build/firmware/stub/vboot_api_stub_sf.o' failed\r\nmake: *** [/media/cstout/t1_ext4/projects/fnljiri/vboot_reference/build/firmware/stub/vboot_api_stub_sf.o] Error 1\r\n"}}