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

Unable to compile i2pd #6

Open
xaozai opened this issue Feb 23, 2019 · 6 comments
Open

Unable to compile i2pd #6

xaozai opened this issue Feb 23, 2019 · 6 comments
Labels
wontfix This will not be worked on

Comments

@xaozai
Copy link

xaozai commented Feb 23, 2019

Hello!
Could you please compile i2pd 2.23 for arch-88f6281-6.2 or arch-88f6281-6.1. I can't do it :(

@publicarray
Copy link
Owner

Unfortunately I do not have the bandwidth/space at the moment to download an additional toolchain. If you get an error can you please tell me what it is?

Here are the steps to compile i2pd:

# Install docker
docker pull synocommunity/spksrc
git clone https://github.com/publicarray/spksrc.git
cd spksrc
docker run -it --rm -v $(pwd):/spksrc synocommunity/spksrc /bin/bash
cd spk/i2pd
make arch-88f6281-6.1

Note it can take easily take longer than a few hours to compile all of the dependencies (zlib, openssl and boost) with docker. You can try to use make -j 4 to use multiple jobs, but use it at your own risk.

@publicarray
Copy link
Owner

Actually never mind I can get circleCI to build the package

@publicarray
Copy link
Owner

publicarray commented Feb 24, 2019

I received this error while building in circleCI.

-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   program_options
--   date_time
-- Found OpenSSL: /spksrc/spk/i2pd/work-88f6281-6.1/install/usr/local/i2pd/lib/libssl.a;/spksrc/spk/i2pd/work-88f6281-6.1/install/usr/local/i2pd/lib/libcrypto.a (found version "1.0.2n") 
-- Found ZLIB: /spksrc/spk/i2pd/work-88f6281-6.1/install/usr/local/i2pd/lib/libz.a (found version "1.2.8") 
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Failed
-- Looking for __atomic_load_8 in atomic
-- Looking for __atomic_load_8 in atomic - not found
CMake Error at cmake_modules/CheckAtomic.cmake:74 (message):
  Host compiler appears to require libatomic, but cannot find it.
Call Stack (most recent call first):
  CMakeLists.txt:403 (include)


-- Configuring incomplete, errors occurred!
See also "/spksrc/spk/i2pd/work-88f6281-6.1/i2pd-2.23.0/CMakeFiles/CMakeOutput.log".
See also "/spksrc/spk/i2pd/work-88f6281-6.1/i2pd-2.23.0/CMakeFiles/CMakeError.log".

So If I read this right, the compiler from the 88f6281-6.1 toolchain can't compile boost because it doesn't come with libatomic. I'm now trying the 6.2 toolchain. If this doesn't work you can try building with https://github.com/ivmai/libatomic_ops.

@publicarray
Copy link
Owner

Yea the 6.2 toolchain returns the same error

@xaozai
Copy link
Author

xaozai commented Feb 28, 2019

Either the kernel is too old or the compiler is too old, but the resulting binary does not work on DiskStation. I compile with static linking аnd "$ file i2pd" says it's linked statically, but on DiskStation it displays a message that libatomic, libstd++ libraries are not found, etc.

@xaozai
Copy link
Author

xaozai commented Mar 7, 2019

I ran a java client on my model. I'll use it...

@publicarray publicarray added the wontfix This will not be worked on label Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants