On 18/01/2019 01:12. Bill Somerville wrote:

> On 17/01/2019 22:27, Jon Tabor wrote:
> > Target: x86_64-unknown-openbsd6.4
> > Configured with: /usr/obj/ports/gcc-4.9.4/gcc-4.9.4/configure
> > --enable-libgcj --without-jar --verbose
> > --program-transform-name='s,^,e,' --disable-nls --with-system-zlib
> > --disable-libmudflap *--disable-libgomp* --disable-tls --with-gnu-ld
> > --with-gnu-as --enable-threads=posix --enable-wchar_t
> > --with-gmp=/usr/local --enable-languages=c,c++,fortran,objc,java,ada
> > --disable-libstdcxx-pch --enable-cpp --prefix=/usr/local
> > --sysconfdir=/etc --mandir=/usr/local/man --infodir=/usr/local/info
> > --localstatedir=/var --disable-silent-rules --disable-gtk-doc
> > Thread model: posix
> > gcc version 4.9.4 (GCC)
>
>
> Hi Jon,
>
> and there is the issue, for some reason the author of the OpenBSD recipe
> to build gcc/g++/gfortran has elected to disable OpenMP, or at lest the
> support library for it.
>
> 73
> Bill
> G4WJS.

I've picked this up again with OpenBSD 6.6 amd64, and after installing Gnu
CC 8.3.0 et al:

openbsd66$ egcc -v
Using built-in specs.
COLLECT_GCC=egcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-openbsd6.6/8.3.0/lto-wrapper
Target: x86_64-unknown-openbsd6.6
Configured with: /usr/obj/ports/gcc-8.3.0/gcc-8.3.0/configure
--with-stage1-ldflags=-L/usr/obj/ports/gcc-8.3.0/bootstrap/lib --verbose
--program-transform-name='s,^,e,' --disable-nls --with-system-zlib
--disable-libmudflap --disable-libgomp --disable-libssp --disable-tls
--with-gnu-ld --with-gnu-as --enable-threads=posix --enable-wchar_t
--with-gmp=/usr/local --enable-languages=c,c++,fortran,objc,ada
--disable-libstdcxx-pch --enable-default-ssp --enable-default-pie
--without-isl --enable-cpp --prefix=/usr/local --sysconfdir=/etc
--mandir=/usr/local/man --infodir=/usr/local/info --localstatedir=/var
--disable-silent-rules --disable-gtk-doc
Thread model: posix
gcc version 8.3.0 (GCC)

Modifying CMakeCache.txt to point at gcc 8.3.0 and egfortan over in
/usr/local/bin, and adding the global option -fopenmp to the compilers, we
get this result:

openbsd66$ cmake ../src
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is Clang 8.0.1
-- The Fortran compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/local/bin/egcc
-- Check for working C compiler: /usr/local/bin/egcc -- broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:60
(message):
  The C compiler

    "/usr/local/bin/egcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/larry/projects/wsjt-wsjtx/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make cmTC_9fdaf/fast && /usr/bin/make -f
CMakeFiles/cmTC_9fdaf.dir/build.make CMakeFiles/cmTC_9fdaf.dir/build
    Building C object CMakeFiles/cmTC_9fdaf.dir/testCCompiler.c.o
    /usr/local/bin/egcc   -fopenmp    -o
CMakeFiles/cmTC_9fdaf.dir/testCCompiler.c.o   -c
/home/larry/projects/wsjt-wsjtx/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_9fdaf
    /usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_9fdaf.dir/link.txt --verbose=1
    /usr/local/bin/egcc -fopenmp
CMakeFiles/cmTC_9fdaf.dir/testCCompiler.c.o  -o cmTC_9fdaf
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib
    egcc: error: libgomp.spec: No such file or directory
    *** Error 1 in . (CMakeFiles/cmTC_9fdaf.dir/build.make:87 'cmTC_9fdaf')
    *** Error 1 in
/home/larry/projects/wsjt-wsjtx/build/CMakeFiles/CMakeTmp (Makefile:121
'cmTC_9fdaf/fast')





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:25 (project)


-- Configuring incomplete, errors occurred!
See also "/home/larry/projects/wsjt-wsjtx/build/CMakeFiles/CMakeOutput.log".
See also "/home/larry/projects/wsjt-wsjtx/build/CMakeFiles/CMakeError.log".

I grepped about for a bit for information about where the missing
libgomp.spec file should live, and I couldn't find anything. Searching the
system for .spec files yields the following:

openbsd66# find / -depth -name "*.spec"
/home/larry/projects/wsjt-wsjtx/src/boost/tools/build/src/engine/boost-jam.spec
/usr/local/lib/libitm.spec
/usr/local/lib/libgfortran.spec
/usr/local/share/libxml2/docbook.spec
/usr/local/share/libxml2/docbook-xsl.spec

Makes it look like maybe OpenMP support is only partially present?

--
Larry Gadallah, lgadallah AT gmail DOT com
PGP Sig: AE93 1785 6874 7111 48AD  63A6 2136 3651 981C F87B
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to