Comments (1)
Using docker compose --profile ubuntu20.04 build
on Windows 11 with Docker Desktop 4.28.0 on the main branch results in a successful build. However attempting to build for ARM64 by changing this first line in instrumentation\otel-webserver-module\docker\ubuntu20.04\Dockerfile
from FROM ubuntu:20.04
to FROM --platform=linux/arm64 ubuntu:20.04
and running docker compose --profile ubuntu20.04 build
results in the following error when attempting what is currently line 198.
> Task :buildApacheModule
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -m64 -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel/ApacheTracing.o.d.raw -c -o out/Default/obj.target/mod_apache_otel/ApacheTracing.o ../../../src/apache/ApacheTracing.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -m64 -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel/ExcludedModules.o.d.raw -c -o out/Default/obj.target/mod_apache_otel/ExcludedModules.o ../../../src/apache/ExcludedModules.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -m64 -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel/ApacheConfig.o.d.raw -c -o out/Default/obj.target/mod_apache_otel/ApacheConfig.o ../../../src/apache/ApacheConfig.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -m64 -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel/ApacheHooks.o.d.raw -c -o out/Default/obj.target/mod_apache_otel/ApacheHooks.o ../../../src/apache/ApacheHooks.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -m64 -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel/HookContainer.o.d.raw -c -o out/Default/obj.target/mod_apache_otel/HookContainer.o ../../../src/apache/HookContainer.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel22/ApacheTracing.o.d.raw -c -o out/Default/obj.target/mod_apache_otel22/ApacheTracing.o ../../../src/apache/ApacheTracing.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel22/ApacheConfig.o.d.raw -c -o out/Default/obj.target/mod_apache_otel22/ApacheConfig.o ../../../src/apache/ApacheConfig.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.4.23/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -m64 -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel/mod_apache_otel.o.d.raw -c -o out/Default/obj.target/mod_apache_otel/mod_apache_otel.o ../../../src/apache/mod_apache_otel.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel22/ExcludedModules.o.d.raw -c -o out/Default/obj.target/mod_apache_otel22/ExcludedModules.o ../../../src/apache/ExcludedModules.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel22/ApacheHooks.o.d.raw -c -o out/Default/obj.target/mod_apache_otel22/ApacheHooks.o ../../../src/apache/ApacheHooks.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel22/HookContainer.o.d.raw -c -o out/Default/obj.target/mod_apache_otel22/HookContainer.o ../../../src/apache/HookContainer.cpp
g++ -I../../../src/apache/../../include/core -I../../../src/apache/../../include/util -I../../../src/apache/../../include/apache -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include -I/otel-webserver-module/build/linux-aarch64/httpd-2.2.31/include/../os/unix -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr/1.7.0/include/apr-1 -I/otel-webserver-module/build/linux-aarch64/module-dependencies/apr-util/1.6.1/include/apr-1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -pipe -Wall -Wp,-O1 -D_FORTIFY_SOURCE=1 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fno-strict-aliasing -Wno-unused-local-typedefs -std=c++0x -MMD -MF out/Default/.deps/out/Default/obj.target/mod_apache_otel22/mod_apache_otel.o.d.raw -c -o out/Default/obj.target/mod_apache_otel22/mod_apache_otel.o ../../../src/apache/mod_apache_otel.cpp
g++: error: unrecognized command line option '-m64'
g++: error: unrecognized command line option '-m64'
g++: error: unrecognized command line option '-m64'
g++: error: unrecognized command line option '-m64'
make: *** [mod_apache_otel.target.mk:51: out/Default/obj.target/mod_apache_otel/ApacheHooks.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [mod_apache_otel.target.mk:51: out/Default/obj.target/mod_apache_otel/ExcludedModules.o] Error 1
make: *** [mod_apache_otel.target.mk:51: out/Default/obj.target/mod_apache_otel/ApacheTracing.o] Error 1
make: *** [mod_apache_otel.target.mk:51: out/Default/obj.target/mod_apache_otel/HookContainer.o] Error 1
g++: error: unrecognized command line option '-m64'
g++: error: unrecognized command line option '-m64'
make: *** [mod_apache_otel.target.mk:51: out/Default/obj.target/mod_apache_otel/ApacheConfig.o] Error 1
make: *** [mod_apache_otel.target.mk:51: out/Default/obj.target/mod_apache_otel/mod_apache_otel.o] Error 1
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<built-in>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
../../../src/apache/ApacheTracing.cpp: In static member function 'static void ApacheTracing::logStartupTrace(server_rec*)':
../../../src/apache/ApacheTracing.cpp:85:66: warning: format not a string literal and no format arguments [-Wformat-security]
85 | ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, it->c_str());
| ^
> Task :buildApacheModule FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildApacheModule'.
> Process 'command 'make'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 18m 18s
12 actionable tasks: 12 executed
Trying the same using version 1.0.4 produces the same result.
from opentelemetry-cpp-contrib.
Related Issues (20)
- unknown directive "NginxModuleAttributes" HOT 1
- Add more Resource Attributes to the Otel-Webserver-Module Nginx instrumentation. HOT 1
- Feature to add nginx variables to access tracing context information HOT 1
- [ADMIN] Define labels for the opentelemetry-cpp-contrib repository
- [CI] Add CI for instrumentation/boost_log
- [CI] Add CI for instrumentation/glog
- [CI] Add CI for instrumentation/log4cxx
- [CI] Add CI for instrumentation/spdlog
- [RELEASE] Prepare release for opentelemetry-cpp-contrib 1.15.0
- [CI] Upgrade Prometheus CI to opentelemetry-cpp 1.15.0
- [CI] Upgrade otel-webserver-module CI to opentelemetry-cpp 1.15.0 HOT 1
- Upgrade otel-webserver module for nginx stable version 1.26 and mainline 1.25.5 HOT 1
- Release webserver/v1.1.0 is broken HOT 1
- [BUILD] boost_log compilation error (possibly dangling reference) HOT 2
- Support for legacy Cloud Trace propagation header HOT 1
- Nginx instrumentation generate multi propogation header when request header count >= 20 HOT 1
- Use correct type for severity_logger
- NginxModuleTraceAsError` directive not working as expected in ngx_http_opentelemetry_module HOT 3
- NginxModuleRequestHeaders and NginxModuleResponseHeaders are case sensitives
- nginx span shorter than upstream server span
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-cpp-contrib.