bugFreeON - Bugs: bug #28116, cannot link FreeON

 
 

bug #28116: cannot link FreeON

Submitted by:  Vyacheslav Gonakhchyan <ortho>
Submitted on:  Sat 28 Nov 2009 07:52:44 PM UTC  
 
Category: InstallationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Nicolas Bock <nicolasbock>Open/Closed: Closed
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 02 Dec 2009 12:51:35 PM UTC, comment #9:

You are welcome. Let us know if you have any other problems or qustions.

I will close this bug for now, as everything seems to work fine with gfortran.

Nicolas Bock <nicolasbock>
Project AdministratorIn charge of this item.
Wed 02 Dec 2009 12:27:51 PM UTC, comment #8:

I built it with gcc fortran.
Thanks for help, Nicolas.

Vyacheslav Gonakhchyan <ortho>
Wed 02 Dec 2009 04:44:04 AM UTC, comment #7:

I am having difficulties compiling g95 and can't directly check, but I suspect that the line length limit is still the problem here. The file AA95c.f is interpreted as fixed form fortran, and your -ffree-line-length-huge command line option to g95 only affects free form fortran. You might be able to fix this by adding -ffree-form to your FFLAGS, but as I said, I don't have a working g95 compiler so can't check that.

We build with gfortran. Your system might have it installed, you are using a very recent gcc version (4.4.2).

Nicolas Bock <nicolasbock>
Project AdministratorIn charge of this item.
Tue 01 Dec 2009 06:15:33 PM UTC, comment #6:

Thanks. Your underscore suggestion helped but build failed later on syntax error.

(file #19177, file #19178)

Vyacheslav Gonakhchyan <ortho>
Tue 01 Dec 2009 03:00:06 PM UTC, comment #5:

Sorry, I forgot to mention that you have to "make clean" before you "make". The "-fno-second-underscore" option will change all names generated by the compiler and hence you won't be able to link to any of the already compiled modules.

I have already committed a fix for the underscoring problem on my local branch. Once we confirm that what you are seeing is really the underscoring problem I will commit this patch to our master branch here on savannah.

Thanks for helping us fix this.

Nicolas Bock <nicolasbock>
Project AdministratorIn charge of this item.
Tue 01 Dec 2009 06:31:43 AM UTC, comment #4:

Ran make - got whole bunch of undefined symbols.
Although for faster build I added --with-lapacklibs=-lblas -llapack

(file #19168, file #19169)

Vyacheslav Gonakhchyan <ortho>
Mon 30 Nov 2009 10:10:56 PM UTC, comment #3:

Looks like g95 appends a second underscore to names. Could you run configure again and add the

-fno-second-underscore

to your FFLAGS and FCFLAGS?

Nicolas Bock <nicolasbock>
Project AdministratorIn charge of this item.
Mon 30 Nov 2009 08:30:21 PM UTC, comment #2:

Attached config.log.

Vyacheslav Gonakhchyan <ortho>
Mon 30 Nov 2009 02:47:32 PM UTC, comment #1:

Vyacheslav, could you attach a copy of your config.log?

Nicolas Bock <nicolasbock>
Project AdministratorIn charge of this item.
Sat 28 Nov 2009 07:52:44 PM UTC, original submission:

The linking command:
libtool --tag FC --silent --mode=link g95 -g -O0 -I. -I../Modules -I. -I.. -all-static -lm -lz -o FreeON ConflictDetect.o ControlStructures.o DynamicsKeys.o FreeON.o GeometryKeys.o GeomOptKeys.o GetPID.o Hessian.o InCoords.o ls_rmsd.o Massage.o MDynamics.o MLP.o MonteCarlo.o NEB.o Numerics.o Optimizer.o OptionKeys.o Overlay.o ParallelKeys.o ParseBasis.o ParseCommands.o ParseDynamics.o ParseExtraCoords.o ParseGeometries.o ParseGeomOpt.o ParseInput.o ParseOptions.o ParseParallel.o ParsePeriodic.o ParseProperties.o PeriodicKeys.o PrintParsed.o PunchHDF.o QUICCA.o Response.o RQI.o SCFKeys.o SCFs.o Spawn.o ZippyQuote.o ../Modules/libfreeonmodules.la ../Modules/lapack/lapack/libfreeonlapack.la ../Modules/lapack/blas/libfreeonblas.la ../Modules/lapack/install/libfreeonlapackextra.la ../Modules/hdf5-1.8.3/src/libhdf5.la

yields result:
libtool: link: warning: complete static linking is impossible in this configuration
../Modules/.libs/libfreeonmodules.a(Utilities.o): In function `utilities_MP_getmemoryusage':
/home/corrupt/misc/AUR/freeon/src/freeon-1.0-alpha-Nov-20-2009/Modules/Utilities-preprocessed.f90:78: undefined reference to `getmemoryusage_wrapper__'

Vyacheslav Gonakhchyan <ortho>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #19178:  make.log added by ortho (3KiB - application/octet-stream)
file #19177:  config.log added by ortho (49KiB - application/octet-stream)
file #19169:  config.log added by ortho (49KiB - application/octet-stream)
file #19168:  make.log added by ortho (14KiB - application/octet-stream)
file #19162:  config.log added by ortho (48KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nicolasbock (Posted a comment)
  • -unavailable- added by ortho (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 02 Dec 2009 12:51:35 PM UTCnicolasbockStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Wed 02 Dec 2009 04:44:04 AM UTCnicolasbockStatusNone=>In Progress
    Tue 01 Dec 2009 06:15:33 PM UTCorthoAttached File-=>Added config.log, #19177
      Attached File-=>Added make.log, #19178
    Tue 01 Dec 2009 06:31:43 AM UTCorthoAttached File-=>Added make.log, #19168
      Attached File-=>Added config.log, #19169
    Mon 30 Nov 2009 10:10:56 PM UTCnicolasbockAssigned toNone=>nicolasbock
    Mon 30 Nov 2009 08:28:59 PM UTCorthoAttached File-=>Added config.log, #19162

    Back to the top


    Powered by Savane 3.1-cleanup1