HyukjinKwon opened a new pull request, #48751:
URL: https://github.com/apache/arrow/pull/48751

   ### Rationale for this change
   
   After commit cbd48a4d98ef4291927d940eb095f359bc270624 migrated 
`OpenTelemetry` from `ExternalProject` to `FetchContent`, the documentation 
build started failing with symbol redefinition errors:
   
   ```
   error: redefinition of 'const google::protobuf::internal::MigrationSchema 
schemas []'
   ```
   
   `FetchContent` integrates `OpenTelemetry` into the parent CMake 
configuration, causing it to inherit `CMAKE_UNITY_BUILD=ON`. Unity builds 
combine multiple `.pb.cc` files into a single compilation unit, which causes 
collision of `static` symbols (like `schemas[]` and `file_default_instances[]`) 
that exist in each `protobuf-generated` file.
   
   ### What changes are included in this PR?
   
   Changed `CMAKE_UNITY_BUILD=ON` to `CMAKE_UNITY_BUILD=OFF` in 
`ci/docker/linux-apt-docs.dockerfile` (line 124)
   
   This disables Unity builds for the entire documentation build, including 
`OpenTelemetry` dependencies fetched via `FetchContent`.
   
   ### Are these changes tested?
   
   Has to be tested via CI.
   
   ### Are there any user-facing changes?
   
   No, dev-only.


-- 
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]

Reply via email to