Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.0.12 fails to compile on FreeBSD 13 #2402

Closed
bravecrayon opened this issue Dec 8, 2021 · 5 comments
Closed

6.0.12 fails to compile on FreeBSD 13 #2402

bravecrayon opened this issue Dec 8, 2021 · 5 comments

Comments

@bravecrayon
Copy link

Issue report

Question 1: What is the problem?

  • What is the expected behavior?
    Passenger apache module fully compiles

  • What is the actual behavior?
    Compilation fails with this message:

In file included from src/agent/Watchdog/WatchdogMain.cpp:68:
In file included from src/agent/Watchdog/Config.h:32:
In file included from src/agent/Core/Config.h:49:
In file included from src/agent/Core/AdminPanelConnector.h:43:
In file included from src/cxx_supportlib/WebSocketCommandReverseServer.h:29:
In file included from src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls_client.hpp:32:
In file included from src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/endpoint.hpp:32:
In file included from src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/connection.hpp:31:
In file included from src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/base.hpp:31:
In file included from src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio.hpp:61:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp:22:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp:20:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp:22:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp:18:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp:20:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp:20:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp:20:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_invocable.hpp:20:
In file included from src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp:38:
src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp:44:10: fatal error: 'boost/align/detail/aligned_alloc.hpp' file not found
#include <boost/align/detail/aligned_alloc.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
rake aborted!
Command failed with status (1): [c++ -o buildout/support-binaries/WatchdogMain.o  -Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -Isrc/cxx_supportlib/vendor-modified/libev -Wno-ambiguous-member-template -Isrc/cxx_supportlib/vendor-copy/libuv/include -Isrc/cxx_supportlib/vendor-modified/websocketpp -I/usr/local/include -DHAS_CURL_EASY_RESET -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -Wno-ambiguous-member-template -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -g -fno-limit-debug-info -Wno-unused-local-typedefs -Wno-format-nonliteral -DHAS_UNORDERED_MAP -c src/agent/Watchdog/WatchdogMain.cpp]

Tasks: TOP => apache2 => buildout/support-binaries/PassengerAgent => buildout/support-binaries/WatchdogMain.o
(See full trace by running task with --trace)

  • How can we reproduce it?
  1. Launch a new EC2 c4.large instance with AMI ami-00e91cb82b335d15f (FreeBSD 13.0-RELEASE).
  2. Install packages pkg install ruby ruby-gems apache24
  3. Install passenger gem gem install passenger --version=6.0.12
  4. Compile passenger with Ruby selected passenger-install-apache2-module

Question 2: Passenger version and integration mode:

Open source, 6.0.12, Apache module

Question 3: OS or Linux distro, platform (including version):

Freebsd 13.0-RELEASE-p5

Question 4: Passenger installation method:

Your answer:
[ ] RubyGems + Gemfile
[x ] RubyGems, no Gemfile
[ ] Phusion APT repo
[ ] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[ ] Other, please specify:

Question 5: Your app's programming language (including any version managers) and framework (including versions):

Ruby 2.7.4p191, Apache 2.4.51

Question 6: Are you using a PaaS and/or containerization? If so which one?

No containerization

Question 7: Anything else about your setup that we should know?

This server is running in AWS. Stock FreeBSD 13.0 RELEASE (ami-00e91cb82b335d15f) running on c4.large instance.

@CamJN
Copy link
Member

CamJN commented Dec 10, 2021

7dc4e99

@bravecrayon
Copy link
Author

@CamJN

That helps but now there is a new error:

In file included from src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp:44:
src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp:12:10: fatal error: 'boost/align/align.hpp' file not found
#include <boost/align/align.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

In looking at the includes for aligned_alloc.hpp, maybe boost/align/align.hpp and boost/align/alignment_of.hpp need to be added as well?

Thanks

@CamJN
Copy link
Member

CamJN commented Dec 10, 2021

Yeah, i figure this is going to be a game of whack a mole if I rely on you kind people to report incremental build errors to get this fixed. So i setup a freebsd13 vm and am going through the process of building passenger there.

@CamJN
Copy link
Member

CamJN commented Dec 10, 2021

Ok this seems to work for me: 4c8d0a1

@bravecrayon
Copy link
Author

@CamJN Works for me too. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants