Originally created by: grtht... (code.google.com)@gmail.com
*What steps with reproduce the problem?*
1.cmake with fgadmin ON
2.make -j4
3.
*What is the expected output? What do you see instead?*
An FG built
*Any output in the console (black window)?*
inking CXX executable fgadmin
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcFontSetDestroy'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternAddString'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftFontOpenXlfd'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftListFonts'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternAddMatrix'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcUtf8ToUcs4'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftTextExtents32'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftDrawSetClip'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcMatrixRotate'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftFontMatch'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcNameUnparse'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XineramaQueryScreens'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternCreate'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftFontOpen'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftDrawString32'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcFontList'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcUtf8Len'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftDrawCreate'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XineramaIsActive'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftFontOpenPattern'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `XftDrawChange'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternAddDouble'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcObjectSetBuild'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternAddInteger'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternDestroy'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcInit'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libfltk.so: undefined reference to `FcPatternGetDouble'
collect2: ld returned 1 exit status
make[2]: *** [utils/fgadmin/src/fgadmin] Erreur 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Erreur 2
make[1]: *** Attente des tâches non terminÊes....
[ 95%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGNozzle.cpp.o
[ 95%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGPiston.cpp.o
[ 95%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGPropeller.cpp.o
[ 95%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGRocket.cpp.o
[ 96%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGRotor.cpp.o
[ 96%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGTank.cpp.o
[ 96%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGThruster.cpp.o
[ 96%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGTurbine.cpp.o
[ 96%] Building CXX object src/FDM/JSBSim/CMakeFiles/fgJSBSim.dir/models/propulsion/FGTurboProp.cpp.o
Linking CXX static library libfgJSBSim.a
[ 96%] Built target fgJSBSim
make: *** [all] Erreur 2
*What FlightGear version are you using (when using GIT version, please
mention date)?*
git today
*What operating system and graphics card?*
SUSE 11.4
*Please provide any additional information below or as attachment (Avoid
expiring external links, such as to imageshack/pastebin/...).*
Just a comment:
FGAdmin seems to be by default ON, since it introduce some crash during build, it would be better to to have it by default OFF. ( that tool is not very useful to run FGFS )
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: bre... (code.google.com)@gmail.com
Issue 469 has been merged into this issue.
Related
Tickets:
#469View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: grtht... (code.google.com)@gmail.com
Le lundi 07 novembre 2011 09:11:24, vous avez écrit :
BAD IDEA
Both issues are not the same origine.
The last is really a bug with FGADMIN, nothing to do with multicore
CPU.
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: bre... (code.google.com)@gmail.com
Good idea. There is no multi-core issue. Only a fgadmin issue.
We tried to explain, that it is default GNU make behavior to abort a parallel build _immediately_ when any error in any build job is observed. The parallel jobs to build fgfs take the longest (since fgfs is the biggest program in FlightGear). Hence, when any of the small utilities (fgadmin, fgpanel, ...) fails to build, then the fgfs build job won't complete - since the error for the small utility aborts the entire make. With a purely sequential build (make -j1) it is different. We _first_ build fgfs - and only build the utilities afterwards - which is why fgfs completes (built first), even when fgadmin or any other utility fails (built later) in a single-threaded build.
Anyone who doesn't like that default Make behavior should call make with the "-k" (keep going) option, i.e. "make -kj4". This tells GNU make to keep going and at least build all those targets, that are not affected by an error (i.e. when fgadmin fails, fgfs is still completed...).
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: zakalawe@mac.com
I wonder if we can educate Cmake a bit more about the build dependency? Or is it really down at the Makefile level?
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: bre... (code.google.com)@gmail.com
Hard to say. I just know that there's something wrong about building fgadmin - either with dependencies or the sequence of the libraries. It always fails (same error messages as above) in the OpenSuSE build server project I created - so I had to disable fgadmin there. However, I can build it ok locally - though I have the same OpenSuSE version installed. Unfortunately debugging build scripts on a remote server is painful.
Labels: Linux
Status: Accepted
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: frbo... (code.google.com)@gmail.com
I think I already solved that in fgrun. I will push something and see if Jenkins is still happy.
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: frbo... (code.google.com)@gmail.com
Please test https://gitorious.org/fg/flightgear/commit/dc95e5e84be9c020c005fd5ae2ea39680d919848
Status: Testing
View and moderate all "codetickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: bre... (code.google.com)@gmail.com
Yes, that has fixed the FLTK errors (as above). I also had to add a direct ZLIB dependency to make the build work with "SIMGEAR_SHARED":
https://www.gitorious.org/fg/flightgear/commit/f77c6b95fa25c720ac600bbb068b647df9783701
The OpenSuSE build service projects are all "green" now.
Status: Fixed