Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 424
    • Issues 424
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1627
Closed
Open
Issue created Mar 11, 2020 by Nikola Majksner@majksner

Build with AOCC Compiler Fails

Hi there,

I'm trying to build OpenFOAM v1912 with the AOCC compiler that is optimized for the new AMD processors. But I'm getting an error at the very end of the compilation process when the OpenFOAM applications are getting compiled.

OS: Ubuntu 18.04

OpenFOAM Version: v1912

Compiler: AOCC(Clang)

Below are the commands that I'm running:

$ apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev libscotch-dev libcgal-dev curl wget

$ wget https://sourceforge.net/projects/openfoam/files/v1912/OpenFOAM-v1912.tgz

$ wget https://sourceforge.net/projects/openfoam/files/v1912/ThirdParty-v1912.tgz

$ mkdir /opt/OpenFOAM && tar -xzf OpenFOAM-v1912.tgz -C /opt/OpenFOAM && tar -xzf ThirdParty-v1912.tgz -C /opt/OpenFOAM

$ sed -i 's/export WM_COMPILER=.*/export WM_COMPILER=Clang/' /opt/OpenFOAM/OpenFOAM-v1912/etc/bashrc

$ source /opt/OpenFOAM/OpenFOAM-v1912/etc/bashrc

$ curl 'https://developer.amd.com/aocc-compiler-eula/' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-GB,en;q=0.5' --compressed -H 'Content-Type: application/x-www-form-urlencoded' -H 'Origin: https://developer.amd.com' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: https://developer.amd.com/aocc-compiler-eula/' -H 'Cookie: c_slidebox_lists=; AKA_A2=A; ak_bmsc=08125A7934F9BC415C45AA72039B16E35435930DA136000064E6685E238A1876~pldSTaRB4wo4gj/7xqZwXbAwCMYYxDpl7AudDCN5q/uyPftrKXIBfjWmPvOTtHqaQALZ5YfYDBwbjJu6wqJwvtJIMB+WaJ1MWYgiREFZ77EA7xTBk7xsVM7E8O2+qzX9Yqf4o9fkwDuK3BKxyT97gLGgIz/kQZhjxmxqGEkfa3QRzWYj5Ar4onwEXHpr7YncScOzkQotLixqAh3bf3Ekhfu54ZkqnuAOIPl6+IyTwEdFg=; c_rurl=https%3A//developer.amd.com/aocc-compiler-eula/' -H 'Upgrade-Insecure-Requests: 1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: Trailers' --data 'amd_developer_central_nonce=7a6cd4da48&_wp_http_referer=%2Faocc-compiler-eula%2F&f=YW9jYy1jb21waWxlci0yLjEuMF8xX2FtZDY0LmRlYg%3D%3D' --output aocc.deb

$ dpkg -i aocc.deb

$ source /opt/AMD/aocc-compiler-2.1.0/setenv_AOCC.sh

$ foam

$ ./Allwmake -j -s -l

Most of the commands are taken from https://www.openfoam.com/documentation/system-requirements.php and https://www.openfoam.com/code/build-guide.php

Changing back export WM_COMPILER=Gcc in /opt/OpenFOAM/OpenFOAM-v1912/etc/bashrc results in successful build of OpenFOAM

Attached is the output of compile process.

Thanks,

log.linux64ClangDPInt32Opt

Assignee
Assign to
Time tracking