Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8112375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:28:45+00:00 2026-06-06T02:28:45+00:00

I am compiling the package BLACS on Linux. I compiled the package, the contents

  • 0

I am compiling the package BLACS on Linux. I compiled the package, the contents of the INSTALL directory. When I try to build the contents of the directory TESTING, I get errors

blacstest.f:(.text+0xb9): undefined reference to `blacs_gridinit_'

etc.

When I tried looking for the function in the library, the message I get is,

~/sources/BLACS/LIB$ nm blacs_MPI-LINUX-0.a | less | grep blacs_gridinit_
blacs_gridinit_.o:
0000000000000000 T blacs_gridinit__
Cblacs_gridinit_.oo:

So the function exists, but with a double underscore. How to make it have just one?

I have tried a few things in Bmake.inc.

#   INTFACE = -Df77IsF2C
#   INTFACE = -fno-underscoring
    INTFACE = -DAdd_

But none of it seems to work. Anyone has some experience with this?

Thanks,
Elan.

EDIT:
BLACS comes with a .inc file where everything is configured. I have:

   F77            = mpif77
   F77NO_OPTFLAGS = 
   F77FLAGS       = $(F77NO_OPTFLAGS) -O -fPIC 
   F77LOADER      = $(F77)
   F77LOADFLAGS   = 
   CC             = mpicc
   CCFLAGS        = -O4 -fPIC
   CCLOADER       = $(CC)
   CCLOADFLAGS    =

-assume 2underscore was not accepted in either of the compile flags. In addition, the template .inc file says:

#  ---------------------------------------------------------------------------
#  The Fortran 77 to C interface to be used.  If you are unsure of the correct
#  setting for your platform, compile and run BLACS/INSTALL/xintface.
#  Choices are: Add_, NoChange, UpCase, or f77IsF2C.
#  ---------------------------------------------------------------------------
#   INTFACE = -Df77IsF2C
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:28:47+00:00Added an answer on June 6, 2026 at 2:28 am

    EasyBuild (partially) solves this issue for you, see https://github.com/hpcugent/easybuild-easyblocks/blob/master/easybuild/easyblocks/b/blacs.py for the Python code that implements the build procedure for BLACS.

    It doesn’t build the tests (yet), but it does build BLACS in the correct way.

    As you already saw in the template.inc file, you should build the xintface tool and run it, which will help you figure out what the correct setting for INTFACE is.
    You also need to make sure the TRANSCOMM setting is correct, you can use the xtc_CsameF77 and xtc_UseMpich tools for that.

    Once you’ve figured the values for INTFACE and TRANSCOMM out, rebuild BLACS and set these on the make command line. Then try building the tests again (using the same options).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when compiling some projects on linux terminal, I get usually a long output consisting
I am compiling a package using maven and it says build failure with following
I'm trying get cross compiling between 2.7.7 and 2.8.0. The package is included, this
I get compile errors when compiling valid code against a Java model enhanced with
I am compiling a JDK6 project and is having build errors about not being
I installed the build-essential package for ubuntu x86_64, compiling c programs and c++ programs
Compiling a kernel module on 32-Bit Linux kernel results in __udivdi3 [mymodule.ko] undefined! __umoddi3
When compiling my wxWidget HelloWorld application, I am getting the following errors: Warning 1
When compiling with gmcs on Linux, how can I set the explorer icon the
When compiling my project with gcc and the -Wall option, I get a warning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.