View Issue Details

IDProjectCategoryView StatusLast Update
0001048ThirdPartyBugpublic2013-10-16 10:16
Reporterwyldckat Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version13.10 (beta2)
Summary0001048: Heads up on building Scotch 6.0.0 on Ubuntu 13.10
DescriptionThis report is just to give you a "heads up" on what new headaches will appear on the ThirdParty software, when Ubuntu 13.10 is released:

When building Scotch 6.0.0 in the "ThirdParty-2.2.x" folder, by running the "Allwmake" script, it will build all of Scotch by default. But on Ubuntu 13.10, there is a problem with building the applications side of Scotch, because of not being able to find the "fmod" function that should be present in "libm.so".

The simple and quick fix is to add the linker flags that have been in use by OpenFOAM since Fedora started all of the confusion about linking to libraries, namely to add the "-Xlinker --add-needed -Xlinker --no-as-needed" options.

The following command should fix the issue, when executed from the "ThirdParty-2.2.x" folder:

  sed -i -e 's=-lz -lm -lrt=-Xlinker --add-needed -Xlinker --no-as-needed -lz -lm -lrt=' \
  etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-*
Additional InformationThe build was done with the standard GCC 4.8.1 that Ubuntu 13.10 uses.
TagsNo tags attached.

Activities

wyldckat

2013-10-14 21:12

updater   ~0002544

I forgot to mention that although the Scotch applications are not used in OpenFOAM, they are part of Scotch's Makefile "build-flow", therefore an unsuccessful build of any of those applications implies that "make install" will not be executed.

user4

2013-10-15 08:55

  ~0002546

Dear wyldcat,

does it need both flags? And since these are link flags does it work without the -Xlinker?

wyldckat

2013-10-15 10:25

updater   ~0002547

Dear Mattijs,

Unfortunately the "-Xlinker" can't be dropped, because the whole command in the file "scotch_6.0.0/src/scotch/Makefile" is this:

  $(CC) $(CFLAGS) -I$(includedir) -I../libscotch $(<) -o $(@) -L$(libdir) -l$(SCOTCHLIB) -lscotch -l$(SCOTCHLIB)errexit $(LDFLAGS)


As for the need to have both options for the linker, I'll have to check this later in the evening.
Nonetheless, I assumed that using both options was the safest bet, since they work fine for OpenFOAM.

But I'll test this later on and report back.

wyldckat

2013-10-15 22:53

updater   ~0002551

Good news: "-Xlinker --no-as-needed" is enough! At least for Ubuntu 13.10...

user4

2013-10-16 08:57

  ~0002552

Also reported as [#16541] on the scotch project at inriagforge.

user4

2013-10-16 10:16

  ~0002553

This will be fixed in the next major release. Thanks for reporting.

Issue History

Date Modified Username Field Change
2013-10-14 21:10 wyldckat New Issue
2013-10-14 21:12 wyldckat Note Added: 0002544
2013-10-15 08:55 user4 Note Added: 0002546
2013-10-15 10:25 wyldckat Note Added: 0002547
2013-10-15 22:53 wyldckat Note Added: 0002551
2013-10-16 08:57 user4 Note Added: 0002552
2013-10-16 10:16 user4 Note Added: 0002553
2013-10-16 10:16 user4 Status new => resolved
2013-10-16 10:16 user4 Fixed in Version => other
2013-10-16 10:16 user4 Resolution open => fixed
2013-10-16 10:16 user4 Assigned To => user4