{"action":"closed","issue":{"url":"https://api.github.com/repos/kraj/meta-clang/issues/241","repository_url":"https://api.github.com/repos/kraj/meta-clang","labels_url":"https://api.github.com/repos/kraj/meta-clang/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/kraj/meta-clang/issues/241/comments","events_url":"https://api.github.com/repos/kraj/meta-clang/issues/241/events","html_url":"https://github.com/kraj/meta-clang/issues/241","id":533854526,"node_id":"MDU6SXNzdWU1MzM4NTQ1MjY=","number":241,"title":"Compile error on master & zeus with clang-native and shared-libs","user":{"login":"priv-kweihmann","id":46938494,"node_id":"MDQ6VXNlcjQ2OTM4NDk0","avatar_url":"https://avatars1.githubusercontent.com/u/46938494?v=4","gravatar_id":"","url":"https://api.github.com/users/priv-kweihmann","html_url":"https://github.com/priv-kweihmann","followers_url":"https://api.github.com/users/priv-kweihmann/followers","following_url":"https://api.github.com/users/priv-kweihmann/following{/other_user}","gists_url":"https://api.github.com/users/priv-kweihmann/gists{/gist_id}","starred_url":"https://api.github.com/users/priv-kweihmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priv-kweihmann/subscriptions","organizations_url":"https://api.github.com/users/priv-kweihmann/orgs","repos_url":"https://api.github.com/users/priv-kweihmann/repos","events_url":"https://api.github.com/users/priv-kweihmann/events{/privacy}","received_events_url":"https://api.github.com/users/priv-kweihmann/received_events","type":"User","site_admin":false},"labels":[{"id":128813563,"node_id":"MDU6TGFiZWwxMjg4MTM1NjM=","url":"https://api.github.com/repos/kraj/meta-clang/labels/bug","name":"bug","color":"fc2929","default":true,"description":null}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-12-06T09:47:02Z","updated_at":"2019-12-12T00:58:13Z","closed_at":"2019-12-12T00:58:12Z","author_association":"NONE","body":"**Describe the bug**\r\nFor another native tool I need to have \"shared-libs\" from the PACKAGE_CONFIG enabled.\r\nSo I made an bbappend with `PACKAGE_CONFIG_class_native += \"shared_libs\"`.\r\nThis works on warrior-branch pretty well. On zeus and master I get the stack trace shown below.\r\nIf I leave out the PACKAGE_CONFIG append compilation works as expected, but then I have the issues further on in the build chain.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. poky:zeus, meta-clang:zeus, my layer with default `qemu-x86-64` target\r\n2. Create \"clang_%.bbappend\" in my layer with `PACKAGE_CONFIG_class_native += \"shared_libs\"`\r\n3. run `bitbake clang-native`\r\n4. See error\r\n\r\nReproducible on Debian-9, Ubuntu 16.04 and 19.04 host system\r\n\r\n**Expected behavior**\r\n\r\n- compilation works\r\n\r\n**Additional context**\r\n\r\nhere is the stack trace\r\n> $ORIGIN::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\" lib/libclangAST.a lib/libclangBasic.a lib/libclangDriver.a lib/libclangFrontend.a lib/libclangIndex.a lib/libclangLex.a lib/libclangSema.a lib/libclangSerialization.a lib/libclangTooling.a lib/libclangARCMigrate.a lib/libclangTidyPlugin.a lib/libclangIncludeFixerPlugin.a lib/libclangTidyAbseilModule.a lib/libclangTidyAndroidModule.a lib/libclangTidyBoostModule.a lib/libclangTidyCERTModule.a lib/libclangTidyFuchsiaModule.a lib/libclangTidyHICPPModule.a lib/libclangTidyBugproneModule.a lib/libclangTidyCppCoreGuidelinesModule.a lib/libclangTidyGoogleModule.a lib/libclangTidyLLVMModule.a lib/libclangTidyMiscModule.a lib/libclangTidyModernizeModule.a lib/libclangTidyObjCModule.a lib/libclangTidyOpenMPModule.a lib/libclangTidyPerformanceModule.a lib/libclangTidyPortabilityModule.a lib/libclangTidyReadabilityModule.a lib/libclangTidyZirconModule.a lib/libclangTidyMPIModule.a lib/libclangTidyUtils.a lib/libclangTidy.a lib/libclangStaticAnalyzerFrontend.a lib/libclangToolingRefactoring.a lib/libclangStaticAnalyzerCheckers.a lib/libclangStaticAnalyzerCore.a lib/libclangCrossTU.a lib/libclangIndex.a lib/libclangIncludeFixer.a lib/libfindAllSymbols.a lib/libclangTooling.a lib/libclangFrontend.a lib/libclangDriver.a lib/libclangParse.a lib/libclangSerialization.a lib/libclangSema.a lib/libclangEdit.a lib/libclangAnalysis.a lib/libclangFormat.a lib/libclangToolingInclusions.a lib/libclangToolingCore.a lib/libclangRewrite.a lib/libclangASTMatchers.a lib/libclangAST.a lib/libclangLex.a lib/libclangBasic.a lib/libLLVM-9.so -lpthread && :\r\n> 2019-12-06T06:04:39.2987224Z | tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexer.cpp.o: In function `clang::CIndexer::getClangResourcesPath[abi:cxx11]()':\r\n> 2019-12-06T06:04:39.2987601Z | CIndexer.cpp:(.text._ZN5clang8CIndexer21getClangResourcesPathB5cxx11Ev+0x8b): undefined reference to `dladdr'\r\n> 2019-12-06T06:04:39.2987729Z | collect2: error: ld returned 1 exit status\r\n> 2019-12-06T06:04:39.2987851Z | [4641/4785] Building CXX object tools/lldb/tools/driver/CMakeFiles/lldb.dir/Driver.cpp.o\r\n> 2019-12-06T06:04:39.2987965Z | ninja: build stopped: subcommand failed.\r\n> 2019-12-06T06:04:39.2988072Z | WARNING: exit code 1 from a shell command.\r\n> 2019-12-06T06:04:39.2988155Z | \r\n> 2019-12-06T06:04:39.2988453Z NOTE: recipe clang-native-9.0.1-r0: task do_compile: Failed\r\n> 2019-12-06T06:04:41.1101780Z NOTE: Tasks Summary: Attempted 1255 tasks of which 0 didn't need to be rerun and 1 failed.\r\n"}}
{"actor":{"display_login":"kraj"}}