[sac-user] Building sac2c Stdlib fails, no <hwloc.h>
S.Scholz at hw.ac.uk
Wed Sep 6 12:49:23 CEST 2017
Thanks for taking care of this! I CC’ed sac-user at sac-home.org<mailto:sac-users at sac-home.org> :-)
On 6 Sep 2017, at 11:36, Hans-Nikolai Viessmann <hv15 at hw.ac.uk<mailto:hv15 at hw.ac.uk>> wrote:
[This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing]
Thanks for the report... I'm not near my desk at the moment so I can't
look at this right now.
Hopefully this evening I'll get a chance.
As far as I can tell the HWLOC include file (yes the one provided by the
OpenMPI group), is
being pulled in, even though it wasn't activated when you compiled
sac2c. Installing HWLOC
(compiling from source and placing it in ~/.local for instance) could
work, but its a lot of
hassle for you.
On 09/06/2017 02:29 AM, Richard A. O'Keefe wrote:
OS X El Capitan, version 10.11.6, iMac (27-inch, Late 2014)
Processor 3.2 GHz core i5, 16 GiB of memory.
Xcode version 7.3.1, clang/cc version Apple LLVM 7.3.0 (clang-703.0.31),
Target: x86_64-apple-darwin15.6.0, Thread model: posix.
Today I downloaded and installed
I then followed the instructions at
% git clone https://github.com/SacBase/Stdlib.git
% cd Stdlib
% git submodule init
% git submodule update
% mkdir build
% cd build
% cmake ..
-- where I left out the -j4 --
Scanning dependencies of target create-sac2crc-file
[ 0%] Creating package sac2crc file in user's home directory
-- Creating sac2crc package file
[ 0%] Built target create-sac2crc-file
Scanning dependencies of target seq-module-Rand48
[ 0%] Running /home/cshome/o/ok/Desktop/MacDrive/ok/commands.d/bison on `/home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/src/stdio/src/FibreIO/FibreScan.l'
[ 0%] Generating /home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/build/src-seq/classes/random/src/Rand48/Rand48.o for target `seq'
In file included from /home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/src/classes/random/src/Rand48/Rand48.c:9:
/usr/local/include/sac2c/1.2-beta-BlackForest-467-gce8d4/release/sac.h:5640:10: fatal error:
'hwloc.h' file not found
1 error generated.
abort: System failed to execute shell
abort: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -O3 -pedantic -g -fbracket-depth=2048 -Wall -Wextra -Weverything -Wno-padded -Wno-documentation -Wstrict-prototypes -Wno-unused-parameter -Wno-reserved-id-macro -Wno-shadow -Wno-undef -Wno-conversion -Wno-missing-prototypes -Wno-unused-function -Wno-covered-switch-default -Wno-format-nonliteral -Wno-switch-enum -Wno-missing-noreturn -Wno-float-equal -Wno-unused-macros -Wno-cast-align -Wno-cast-qual -Wno-documentation-unknown-command -march=native -mtune=native -std=c99 -pedantic -Wno-unused -fno-builtin -I. -I/opt/local/include -DHAVE_CONFIG_H -DEXT_STDLIB -I/home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/build/include -I/home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/include -I/home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/src/classes/random/src/Rand48 -I/home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/build/src-seq/classes/random/src/Rand48 -DSAC_TARGET_STRING=\"seq\" -DSAC_MODEXT_STRING=\".dylib\" -DSAC_TARGET_ENV_STRING=\"host\" -DSAC_SBI_STRING=\"seq\" -DSAC_RC_METHOD=SAC_RCM_local -DSAC_BACKEND_C99 -DSAC_MT_LIB_ -DSAC_MT_MODE=0 -DSAC_DO_RTSPEC=0 -I/usr/local/include/sac2c/1.2-beta-BlackForest-467-gce8d4/release -c -o /home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/build/src-seq/classes/random/src/Rand48/Rand48.o /home/cshome/o/ok/Downloads/sac2c-1.2-stdlib/Stdlib/src/classes/random/src/Rand48/Rand48.c
abort: with exit code 1
compilation failed while initial.
make: *** [src-seq/classes/random/src/Rand48/Rand48.o] Error 255
make: *** [src-seq/CMakeFiles/seq-module-Rand48.dir/all] Error 2
make: *** [all] Error 2
Something somewhere has #defined ENABLE_HWLOC
m% find /usr/local/include/sac2c/ -name hwloc.h -print
<< no output >>
Apparently this is supposed to come from OpenMPI.
It is not clear if I can install the library in a directory
of my own choosing. This is actually important.
Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences.
This email is generated from the Heriot-Watt University Group, which includes:
1. Heriot-Watt University, a Scottish charity registered under number SC000278
2. Edinburgh Business School a Charity Registered in Scotland, SC026900. Edinburgh Business School is a company limited by guarantee, registered in Scotland with registered number SC173556 and registered office at Heriot-Watt University Finance Office, Riccarton, Currie, Midlothian, EH14 4AS
3. Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.
The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sac-user