# Format for this file: # Epoch Channel Nickname Action Message # # All separated with a single space, empty values are replaced with a dash '-' # except messages which are kept empty. # Lines starting with '#' are comments; comments are not allowed except as the only content of the line # 1358643934 - devcoder quit Quit: devcoder 1358644392 - Eddiie quit Quit: Page closed 1358644716 - smartin quit Quit: leaving 1358651988 #crosstool-ng imMute say now you wait. 1358654046 #crosstool-ng herdingcat say hi, what's the usage of sysroot in ct-ng installation directory? Can I install other libs to this place? 1358654066 #crosstool-ng imMute say herdingcat: you know when you compile things normally how it looks for headers and libraries and stuff? 1358654081 #crosstool-ng herdingcat say imMute, ah, got it. 1358654091 #crosstool-ng imMute say the sysroot is where the cross compiler looks for those things. 1358654096 #crosstool-ng herdingcat say imMute, So I can install other libs I need in that dir.. 1358654107 #crosstool-ng imMute say so if you want to compile a library to be used by another program, put the headers and library files in the sysroot 1358654123 #crosstool-ng imMute say (bonus is that you don't have to specify those things when compiling the other program) 1358654131 #crosstool-ng herdingcat say imMute, got it... :) 1358654584 #crosstool-ng herdingcat say imMute, it seems I cannot mkdir in sysroot 1358654594 #crosstool-ng herdingcat say [huli@localhost sysroot]$ pwd 1358654595 #crosstool-ng herdingcat say /home/huli/Projects/arm-devel-rpi/arm-rpi-linux-gnueabi/sysroot 1358654595 #crosstool-ng herdingcat say [huli@localhost sysroot]$ mkdir opt 1358654595 #crosstool-ng herdingcat say mkdir: cannot create directory `opt': Permission denied 1358654639 #crosstool-ng imMute say permissions 1358654675 #crosstool-ng imMute say also, you'll want to put the includes in /home/huli/Projects/arm-devel-rpi/arm-rpi-linux-gnueabi/sysroot/usr/include and the libraries in /home/huli/Projects/arm-devel-rpi/arm-rpi-linux-gnueabi/sysroot/usr/lib otherwise the compiler wont find them 1358654781 #crosstool-ng herdingcat say imMute, because there's no ld.so.config so I need to copy those headers and libs to the default places, right? 1358654811 #crosstool-ng imMute say ld.so.config has zero interaction when compiling. the places the compiler searches is hardcoded when the compiler was compiled 1358654988 #crosstool-ng herdingcat say imMute, I installed openmpi so I need to copy those libs to the sysroot, right? 1358655026 #crosstool-ng imMute say if you indend to compile something that uses that library. also, when you say "installed" did you install using the host computer's pacakge manager? 1358655139 #crosstool-ng herdingcat say imMute, yes, I use Fedora 1358655151 #crosstool-ng imMute say then you can't use those when cross compiling 1358655165 #crosstool-ng imMute say they're compiled for your host computer, which is most likely not ARM 1358655176 #crosstool-ng herdingcat say imMute, you are right... hmm 1358655191 #crosstool-ng herdingcat say imMute, So I still need a platform to do compile ARM programs. 1358655210 #crosstool-ng imMute say you have one - your fedora machine. 1358655425 #crosstool-ng herdingcat say imMute, I mean, here's my current situation. I have compiled openmpi ARM version in mu x86_64 host and I need to compile other MPI-based programs which using the ARM openmpi libs and binaries. So is that possible? 1358655431 #crosstool-ng herdingcat say *my 1358655464 #crosstool-ng imMute say if you compiled the openmpi library using the cross-compiler, then copy the headers and library files to the cross-compiler sysroot, and off you go 1358655570 #crosstool-ng herdingcat say imMute, but the ARM openmpi binaries are not executable in x86_64. 1358655594 #crosstool-ng imMute say so? your host system won't be executing the binaries 1358655625 #crosstool-ng herdingcat say imMute, so the MPI-based programs I wanna compile cannot be generated.. 1358655627 #crosstool-ng herdingcat say right? 1358655632 #crosstool-ng imMute say of course they can 1358655665 #crosstool-ng imMute say the cross compiler can link against libraries that aren't compiled for the host system 1358655702 #crosstool-ng herdingcat say imMute, cannot executable but can link against libs? 1358655781 #crosstool-ng imMute say yes, that is the point of a cross-compiler 1358655795 #crosstool-ng imMute say to link against a library, you don't have to execute anything from that library 1358656058 #crosstool-ng herdingcat say imMute, that's interesting.... 1358656126 #crosstool-ng imMute say not really. canadian cross compilers. those are interesting 1358656158 #crosstool-ng herdingcat say imMute, what's canadian compiler? 1358656211 #crosstool-ng imMute say a "canadian cross" is a term used to describe a cross compiler that was created on one architecture which targets a second, but intended to be run on a third. Like building the cross compiler on x86 that targets ARM, but the compiler is intended to run on a SPARC system. 1358656329 #crosstool-ng herdingcat say imMute, is that possible? 1358656352 #crosstool-ng imMute say possible? definitely. useful? not entirely 1358656401 #crosstool-ng herdingcat say imMute, hmm, make sense. 1358656415 #crosstool-ng herdingcat say imMute, ./configure --prefix=/home/huli/Projects/arm-devel-rpi/arm-rpi-linux-gnueabi/sysroot/opt/mpiblast --build=x86_64-redhat-linux --host=armv6-rpi-linux-gnueabi --with-mpi=/home/huli/Projects/arm-devel-rpi/arm-rpi-linux-gnueabi/sysroot/opt/openmpi 1358656440 #crosstool-ng herdingcat say imMute, then still cannot find the mpicc compiler.. 1358656441 #crosstool-ng herdingcat say checking for mpicc... no 1358656442 #crosstool-ng herdingcat say checking for mpicxx... no 1358656442 #crosstool-ng herdingcat say configure: error: no MPI C compiler found 1358656476 #crosstool-ng imMute say that seems like openmpi is looking for a special compiler.. I've never used OpenMPI, so I have no idea 1358656590 #crosstool-ng herdingcat say imMute, following paste would be more interesting: 1358656599 #crosstool-ng imMute say pastebin it, please. 1358656611 #crosstool-ng herdingcat say imMute, http://fpaste.org/pCDu/ 1358656642 #crosstool-ng herdingcat say imMute, "C compiler cannot create executables" 1358656685 #crosstool-ng imMute say heh, I've seen that before. And I recall it being that the ./configure script forgot that it was cross compiling, and tried to execute something it built (which obviously fails). no idea how to fix that, sorry. 1358656727 #crosstool-ng herdingcat say imMute, okay.. 1358656887 #crosstool-ng herdingcat say imMute, thank you very much.. 1358657186 #crosstool-ng herdingcat say ls -l 1358668815 - herdingcat quit Remote host closed the connection 1358671169 #crosstool-ng smartin join 1358672466 - sfan5|OFF nick sfan5 1358672585 #crosstool-ng sfan5 part 1358678667 #crosstool-ng y_morin join 1358685410 #crosstool-ng smartin say y_morin: hi 1358685494 #crosstool-ng smartin say any specific reason to restrict CT_LOAD to an integer, and more specifically the -l argument passed to make? 1358687253 #crosstool-ng tdlrali join 1358687823 #crosstool-ng herdingcat join 1358687852 #crosstool-ng herdingcat say y_morin, hey mate 1358689143 - tdlrali quit Quit: Page closed 1358689218 #crosstool-ng y_morin say smartin: No, not really. 'load' can indeed be a float. 1358689223 #crosstool-ng y_morin say herdingcat: howdy? 1358689300 #crosstool-ng herdingcat say y_morin, I'm good and still working on cross-compile 1358689331 #crosstool-ng herdingcat say y_morin, I have built up the openmpi well w/ the tool chain but seems cannot compile other MPI-based programs 1358689426 #crosstool-ng y_morin say herdingcat: waht's the error? 1358689504 #crosstool-ng herdingcat say y_morin, http://fpaste.org/Af8a/ 1358689529 #crosstool-ng y_morin say herdingcat: what is the "MPI C compiler found" ? 1358689569 #crosstool-ng herdingcat say y_morin, that makes me confused, I have installed ARM version openmpi in /home/huli/Projects/arm-devel-rpi/arm-rpi-linux-gnueabi/sysroot/opt/openmpi 1358689574 #crosstool-ng smartin say y_morin: CT_LOAD could be the percentage of load... 1358689585 #crosstool-ng herdingcat say y_morin, I think it would find the mpi C compiler 1358689601 #crosstool-ng herdingcat say y_morin, let me paste config.log 1358689607 #crosstool-ng herdingcat say y_morin, http://fpaste.org/gOif/ 1358689641 #crosstool-ng y_morin say smartin: CT_LOAD has to be a value accepted by 'make -l'. 1358689701 #crosstool-ng smartin say y_morin: yep, something like that: -l$((${CT_LOAD}/100)).$((${CT_LOAD}%100)) 1358689707 #crosstool-ng y_morin say smartin: as 'make -l' accepts a floating-point number, CT_LOAD can indeed be a float (and not an integer). But we can invent a new meaning to CT_LOAD 1358689734 #crosstool-ng y_morin say smartin: No, too complex. Just accept that CT_LOAD is passed as-is to 'make -l' 1358689746 #crosstool-ng smartin say with this, the entry in ct-ng still expect an integer, just the range change 1358689772 #crosstool-ng y_morin say smartin: kconfig does not have a 'float' type, only integer. The only way is to have CT_LOAD be a string. 1358689818 #crosstool-ng y_morin say herdingcat: again: what is an 'MPI C compiler' ? 1358689862 #crosstool-ng herdingcat say y_morin, it's openmpi C compiler. 1358689873 #crosstool-ng herdingcat say y_morin, do you know openmpi? 1358689897 #crosstool-ng y_morin say herdingcat: I know MPI only by name. Never used it, even less openmpi. 1358689970 #crosstool-ng y_morin say herdingcat: I think the underlying issue is that, when you cross-compile openmpi, it cross-compiles everything, even its compiler. What you want is that openmpi cross-compiles only its libraries( if that makes sense), but natively builds its compiler. 1358689978 #crosstool-ng y_morin say herdingcat: that's an openmpi issue. 1358689984 #crosstool-ng smartin say y_morin: i know, i see 2 solutions, 1) ask for the percentage (so an integer in kconfig) + some trivial math; 2)ask the actual 'make -l' value (so a string in kconfig) and add some pattern check. 1358690031 #crosstool-ng y_morin say smartin: definitiely, we want 2). And I don;t care about insane values passed by the user, so no need for a check: the build will fail anyway. 1358690038 #crosstool-ng smartin say y_morin: don't know which on is the best one, and at the end, it'll be your call ;) 1358690051 #crosstool-ng y_morin say smartin: we can't protect the user against his/her own foolishnes. 1358690086 #crosstool-ng smartin say agree 1358690226 #crosstool-ng herdingcat say y_morin, the program I wanna compile is mpiblast which also needs mpi compiler and libs both.. 1358690257 #crosstool-ng y_morin say herdingcat: that's an issue with openmpi. Ask them how do properly handle cross-compilation. 1358690266 #crosstool-ng y_morin say *how to... 1358690268 #crosstool-ng herdingcat say y_morin, ah okay. 1358691256 #crosstool-ng mingwandroid join 1358694160 - tkil quit Ping timeout: 260 seconds 1358694168 - herdingcat quit Remote host closed the connection 1358694415 #crosstool-ng tkil join 1358701234 - diorcety quit Quit: Leaving. 1358706414 #crosstool-ng diorcety join 1358707471 - plfiorini quit Ping timeout: 244 seconds 1358707616 #crosstool-ng plfiorini join 1358715683 #crosstool-ng alan_o join 1358715704 #crosstool-ng hrubi join 1358720185 - plfiorini quit Read error: Connection reset by peer 1358720200 #crosstool-ng plfiorini_ join 1358721579 - smartin quit Quit: leaving 1358724290 #crosstool-ng devcoder join 1358724633 - y_morin quit Quit: Nighty Night!