View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001048 | ThirdParty | Bug | public | 2013-10-14 21:10 | 2013-10-16 10:16 |
Reporter | wyldckat | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 13.10 (beta2) |
Summary | 0001048: Heads up on building Scotch 6.0.0 on Ubuntu 13.10 | ||||
Description | This 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 Information | The build was done with the standard GCC 4.8.1 that Ubuntu 13.10 uses. | ||||
Tags | No tags attached. | ||||
|
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. |
|
Dear wyldcat, does it need both flags? And since these are link flags does it work without the -Xlinker? |
|
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. |
|
Good news: "-Xlinker --no-as-needed" is enough! At least for Ubuntu 13.10... |
|
Also reported as [#16541] on the scotch project at inriagforge. |
|
This will be fixed in the next major release. Thanks for reporting. |
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 |
|
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 |
|
Note Added: 0002552 | |
2013-10-16 10:16 |
|
Note Added: 0002553 | |
2013-10-16 10:16 |
|
Status | new => resolved |
2013-10-16 10:16 |
|
Fixed in Version | => other |
2013-10-16 10:16 |
|
Resolution | open => fixed |
2013-10-16 10:16 |
|
Assigned To | => user4 |