MarkusJx / install-boost

Install boost on Github actions
MIT License
62 stars 3 forks source link

x64 platform #36

Closed damian123 closed 1 year ago

damian123 commented 1 year ago

Thank you for a great install package!!

Do you have any plans to support x64 platforms?

MarkusJx commented 1 year ago

x64 platforms should be supported, both linux and macOs images ship just with x64 binaries, windows images come with support for both x32 and x64.

Is there any specific configuration that's not working for you?

MGuillaumeF commented 1 year ago

Hello, packages works well with x64 platforms, but on Linux with arch x32 i have an error

The error :

usr/bin/ld: i386:x86-64 architecture of input file `/home/runner/work/cpp-coso/cpp-coso/boost/boost/lib/libboost_filesystem-mt-x64.a(operations.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/home/runner/work/cpp-coso/cpp-coso/boost/boost/lib/libboost_filesystem-mt-x64.a(path.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/home/runner/work/cpp-coso/cpp-coso/boost/boost/lib/libboost_filesystem-mt-x64.a(unique_path.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/home/runner/work/cpp-coso/cpp-coso/boost/boost/lib/libboost_filesystem-mt-x64.a(exception.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/home/runner/work/cpp-coso/cpp-coso/boost/boost/lib/libboost_filesystem-mt-x64.a(directory.o)' is incompatible with i386 output
/usr/bin/ld: /home/runner/work/cpp-coso/cpp-coso/boost/boost/lib/libboost_filesystem-mt-x64.a(path.o): in function `boost::filesystem::path::codecvt() [clone .cold]':
…

The use of package :

  build-release-Linux:
    runs-on: ubuntu-latest
    steps:

    - name: Install boost
      uses: MarkusJx/install-boost@v2.4.4
      id: install-boost
      with:
        boost_version: 1.81.0
        platform_version: 20.04
MarkusJx commented 1 year ago

It seems like x32 libraries are not included in the packages for linux. Probably because of memory constraints.

Anyways, this shouldn't be a huge issue, as you can simply install the boost binaries on linux using the os's package manager. Using ubuntu, you'd need to enable the i386 arch and then install your required binaries using apt. Unfortunately it seems like boost version 1.74 is the only one supported on the ubuntu runners.

If you still need x32 binaries, feel free to open a new issue requesting this feature.

MarkusJx commented 1 year ago

I'm just realizing this whole issue may be about x32. Or maybe not, don't know. And I wrote in my first comment that only x64 is supported on linux and macos.

well...

MGuillaumeF commented 1 year ago

thank you, I had misread indeed, I will give up the arch x32 for linux

for information after test (with boost 1.81.0) :

Thanks a lot

MarkusJx commented 1 year ago

You're welcome

I'll close this issue for now as I'm not sure what this issue is really about. Reopen if the issue still persists or if you have further information regarding this problem.