nealrichardson commented on PR #35147: URL: https://github.com/apache/arrow/pull/35147#issuecomment-1531472870
> I did get a build error after unsetting ARROW_HOME (see below); however, it worked beautifully on MacOS x86! I don't think my M1 problem should block this...this rewrite makes it much easier to fix if it does turn out to be a script issue. > > I'll try on Windows and on a few suitable Ubuntu docker images tomorrow. > > ``` > unable to load shared object '/Users/deweydunnington/Library/R/arm64/4.2/library/00LOCK-r/00new/arrow/libs/arrow.so': > dlopen(/Users/deweydunnington/Library/R/arm64/4.2/library/00LOCK-r/00new/arrow/libs/arrow.so, 0x0006): symbol not found in flat namespace (__ZN4absl12lts_2023012510FormatTimeENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS0_4TimeENS0_8TimeZoneE) > Error: loading failed > Execution halted > ERROR: loading failed > * removing ‘/Users/deweydunnington/Library/R/arm64/4.2/library/arrow’ > * restoring previous ‘/Users/deweydunnington/Library/R/arm64/4.2/library/arrow’ > > Exited with status 1. > ``` That looks similar to the build failure I saw [here](https://github.com/ursacomputing/crossbow/actions/runs/4833911390/jobs/8614891010), where it appears that we are bundling absl because there is a (newer) version installed by homebrew but we require an exact version match (because absl is very unstable, it seems): https://github.com/ursacomputing/crossbow/actions/runs/4833911390/jobs/8614891010#step:13:416 I don't understand well enough how the linker resolves things to understand how we would insist that we prefer the static symbols in `-larrow_bundled_dependencies` over shared libraries found in `-L/opt/homebrew/lib`. @kou would reordering the `-L` and `-l`s help? In that build, [PKG_LIBS](https://github.com/ursacomputing/crossbow/actions/runs/4833911390/jobs/8614891010#step:13:1638) is `-L/Users/voltrondata/tmp/RtmpQAJbFi/R.INSTALLca181e5538f5/arrow/libarrow/arrow-11.0.0.100000506/lib -L/opt/homebrew/lib -larrow /opt/homebrew/lib/libsnappy.1.1.10.dylib /opt/homebrew/lib/libre2.10.0.0.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libbz2.tbd /opt/homebrew/lib/libaws-cpp-sdk-config.dylib /opt/homebrew/lib/libaws-cpp-sdk-transfer.dylib /opt/homebrew/lib/libaws-cpp-sdk-identity-management.dylib /opt/homebrew/lib/libaws-cpp-sdk-cognito-identity.dylib /opt/homebrew/lib/libaws-cpp-sdk-sts.dylib /opt/homebrew/lib/libaws-cpp-sdk-s3.dylib /opt/homebrew/lib/libaws-cpp -sdk-core.dylib -larrow_bundled_dependencies -R/opt/homebrew/lib -lbrotlidec -R/opt/homebrew/lib -lbrotlienc -lthrift -lz -llz4 -lzstd -lutf8proc` In any case, I doubt this is a regression introduced in this PR but I could be wrong. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
