Skip to content

Commit

Permalink
adding easyconfigs: Boost-1.81.0-intel-compilers-2022.2.1.eb and patc…
Browse files Browse the repository at this point in the history
…hes: boost-1.81.0_intel.patch
  • Loading branch information
SimonPinches committed Sep 25, 2023
1 parent be30e2a commit 720fee1
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
##
# Authors:: Denis Kristak <[email protected]>
##
name = 'Boost'
version = '1.81.0'

homepage = 'https://www.boost.org/'
description = """Boost provides free peer-reviewed portable C++ source libraries."""

toolchain = {'name': 'intel-compilers', 'version': '2022.2.1'}
toolchainopts = {'pic': True}

source_urls = ['https://boostorg.jfrog.io/artifactory/main/release/%(version)s/source/']
sources = ['%%(namelower)s_%s.tar.gz' % '_'.join(version.split('.'))]
patches = ['%(namelower)s-%(version)s_intel.patch']
checksums = [
{'boost_1_81_0.tar.gz': '205666dea9f6a7cfed87c7a6dfbeb52a2c1b9de55712c9c1a87735d7181452b6'},
{'boost-1.81.0_intel.patch': 'ada377759fcda0146c744f103d9e3cd58cae1c6e8cd3132bb958166171539c61'},
]

dependencies = [
('bzip2', '1.0.8'),
('zlib', '1.2.12'),
('XZ', '5.2.7'),
('zstd', '1.5.2'),
('ICU', '72.1'),
]

configopts = '--without-libraries=python,mpi'

# disable MPI, build Boost libraries with tagged layout
boost_mpi = False
tagged_layout = True

moduleclass = 'devel'
15 changes: 15 additions & 0 deletions easybuild/easyconfigs/b/Boost/boost-1.81.0_intel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Fix build for Intel compiler following:
# https://www.intel.com/content/www/us/en/developer/articles/technical/building-boost-with-oneapi.html
# S.D.Pinches
diff -Nru boost_1_81_0-orig/tools/build/src/tools/intel-linux.jam boost_1_81_0/tools/build/src/tools/intel-linux.jam
--- boost_1_81_0-orig/tools/build/src/tools/intel-linux.jam 2022-12-08 02:02:50.000000000 +0100
+++ boost_1_81_0/tools/build/src/tools/intel-linux.jam 2023-09-25 14:18:09.460485592 +0200
@@ -277,7 +277,7 @@
#
actions compile.c++.pch
{
- rm -f "$(<)" && LD_LIBRARY_PATH="$(RUN_PATH)" "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -pch-create "$(<)" "$(>)"
+ rm -f "$(<)" && LD_LIBRARY_PATH="$(RUN_PATH)" "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -Xclang -emit-pch -o "$(<)" "$(>)"
}

actions compile.fortran

0 comments on commit 720fee1

Please sign in to comment.