Solaris newbie Development questions.
Hi all and here we go, sorry if this is a repeat but i lost much time while looking for usable FAQ and i'm gonna kill myself cause seems like someone spent much time to make GCC unusable in Solaris because of native SunStudio.
Ok lets see on steps right after Solaris install: 1. go and grab gcc-4.5.1-sol10-x86-local.gz on ftp.sunfreeware.com 2. then for sure also grabbed gmp-4.2.1 mpfr-2.4.0 mpc-0.8.2 cause when i try to compile sources it says about this dependencies. 3. then libgcc-3.4.6 libiconv-1.13.1 libintl-3.4.0 libpng-1.2.44 libtool-2.4 libxml2-2.7.7 glib-2.25.13 coreutils-8.9 binutils-2.21 automake-1.11.1 autoconf-2.68 make-3.82 pcre-8.12 slang-2.1.4 zlib-1.2.5 perl-5.12.2 4. GCC 4.5.1 installs to /usr/local/gcc4 5. PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/gcc4/bin 6. LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/gcc4/lib And afterall it still hack my brain with ./configure errors and any sources cant be compiled saying something like this: Configuring TinTin++ checking for gcc... gcc checking for C compiler default output file name... configure: error: in `/home/user/Downloads/tt/src': configure: error: C compiler cannot create executables Log says about bugs but any Solaris, OpenSolaris, OpenIndiana got this.. where i'm lagging? or there also need some sort of linking cause SS works as intended, thx. |
What kind of machine is this?
What happens when you try to compile (with just gcc, no configure or make) a simple hello world program? |
its x86 distros
gcc hello (gcc) ld: fatal: file crt1.o: open failed: No such file or directory collect2: ld returned 1 exit status cc hello (sunstudio) ld: fatal: file hello: unknown file type ld: fatal: file processing errors. No output written to a.out hello <called file> #include <stdio.h> int main() { printf("Hello, world!\n"); return 0; } and here some config log gcc version 4.5.1 (GCC) configure:2151: $? = 0 configure:2158: gcc -V >&5 gcc: '-V' option must have argument configure:2162: $? = 1 configure:2185: checking for C compiler default output file name configure:2207: gcc conftest.c >&5 ld.so.1: cc1: fatal: libmpfr.so.4: open failed: No such file or directory gcc: Internal error: Killed (program cc1) Please submit a full bug report. See <http://gcc.gnu.org/bugs.html> for instructions. configure:2211: $? = 1 configure:2249: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2255: error: in `/home/user/Downloads/tt/src': configure:2257: error: C compiler cannot create executables See `config.log' for more details. |
Looks like it's missing libmpfr.so.4. You sure you installed mpfr?
|
1 Attachment(s)
Yes libmpfr.so.4 was missing cause its not included in 2.4.0 package from sunfreeware.com. so i installed http://solaris.guengel.ch/solaris/do...-3.0.0.pkg.bz2 and now it says about AMD_3DNOW missing and seems like it compiled on amd platform.
after downgrade gcc to 4.4.2 wich dont need it Thread model: posix gcc version 4.4.2 (GCC) configure:2151: $? = 0 configure:2158: gcc -V >&5 gcc: '-V' option must have argument configure:2162: $? = 1 configure:2185: checking for C compiler default output file name configure:2207: gcc conftest.c >&5 ld: fatal: file crt1.o: open failed: No such file or directory collect2: ld returned 1 exit status configure:2211: $? = 1 configure:2249: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2255: error: in `/home/user/Downloads/tt/src': configure:2257: error: C compiler cannot create executables Seems like need some specific things like here http://www.graffe.com/forums/showthr...s-10&p=1190889 i'll try to install "missing packages" And i have new question %) why after installing oi-dev-148-text-x86.iso and installing same big pack MC 4.7.0.10 with all dependencies written for mc, libiconv, libintl, ligcc etc shows bugs like this: (standart OI-b148 with gnome works fine) |
Greetingz!
That's not a bug with MC, you seem to have the wrong codepage loaded. 1) "env|grep LC" should give you what the current locale is set to. 2) Look for a locale that matches the language you want to use. 3) Then "export $VARIABLE_NAME=value" before you run MC. As for your compiler problem, do the following; find / -type f -name "crt1.*" This should find the object file compiled somewhere in your source tree. We need to know if GCC made it that far and is hanging when linking, or if this is something else. "which ld" Does this return /usr/ucb/ld or /usr/css/bin/ld? If so, you may need to re-order things in your $PATH. |
All times are GMT -5. The time now is 01:57 AM. |