GNU GCC -m32 Problem?
Dear Mr. Randi J. Rost, et al.: I have a copy of your book entitled, OpenGL Shading Language, Second Edition, T 385 R665 2006 MAIN, UT Austin, and learned that you have also worked with Motif. I have had a problem getting my "long double" version of XEphem 3.7.2 to build under Red Hat Linux Fedora 7, x86_64 on an AMD Athlon 64 X2 Dual-Core Processor 5600+ based PC. It builds OK under Red Hat Linux Fedora Core 6 on a Celeron based 32-bit computer. I could then bring the 32-bit application executable to the 64-bit PC, and it worked fine also. However, I could not get it to build (using make) on the 64-bit PC, even when I had specified ~ gcc -m32 . . ., using the latest GNU GCC Compiler Collection (i.e., gcc-4.1.2-33.x86_64.rpm, et caetera, installed). Also, when I tried a simple C program - NO Motif at all involved - I got compile error messages related to ~ stdlib.h, ~ 32 bit stub missing, I seem to recall, for, I'm not at home now. I obviously would like to be able to also build on my 64-bit PC, as well as develop and run in that environment entirely. Any assistance would be most gratefully appreciated. Tempus fugit et ad augusta per angusta. Nil desparare (Gauss), Joseph Roy D. North LeRoi Du Nord 3220 Duval Road, Apt. 1110 Austin, TX 78759-3524, USA Scientia est Potentia! I Prefer Pi (a palindrome)!
Re: GNU GCC -m32 Problem?
On 10/28/07, Kai Ruottu <[EMAIL PROTECTED]> wrote: > Joseph North wrote: > >I have had a problem getting my "long double" version of > > XEphem 3.7.2 to build under Red Hat Linux Fedora 7, x86_64 > > on an AMD Athlon 64 X2 Dual-Core Processor 5600+ based > > PC. > >It builds OK under Red Hat Linux Fedora Core 6 on a Celeron > > based 32-bit computer. I could then bring the 32-bit application > > executable to the 64-bit PC, and it worked fine also. > >However, I could not get it to build (using make) on the 64-bit PC, > > even when I had specified ~ gcc -m32 . . ., using the latest GNU > > GCC Compiler Collection (i.e., gcc-4.1.2-33.x86_64.rpm, et caetera, > > installed). Also, when I tried a simple C program - NO Motif at all > > involved - I got compile error messages related to ~ stdlib.h, ~ 32 bit > > stub missing, I seem to recall, for, I'm not at home now. > > > The 32-bit development libraries maybe are not installed... But at least > that 'stdlib.h' should be common > for both the default 64-bit and the optional 32-bit libraries, so maybe > also the 64-bit libraries were > not installed... > > I myself have the 32-bit Fedora7 and remember that those "C/C++ > development" things, wanted > or not, were asked when installing... For bare "kernel compiling" those > C libraries are not needed. > > Dear Kai: Thank you! I'll try to check into the details when I get back home, and let you know more. I thought the entire GCC suite (x86_64 version) installed OK. I believe I just need that suite for "-m32" to work OK. Tempus fugit et ad augusta per angusta. Nil desparare (Gauss), Joseph Roy D. North LeRoi Du Nord 3220 Duval Road, Apt. 1110 Austin, TX 78759-3524, USA Scientia est Potentia! I Prefer Pi (a palindrome)!
Re: GNU GCC -m32 Problem?
On 10/28/07, Jonathan Wakely <[EMAIL PROTECTED]> wrote: > >Thank you! > >I'll try to check into the details when I get back home, and let you know > > more. > >I thought the entire GCC suite (x86_64 version) installed OK. I believe > > I just need that suite for "-m32" to work OK. > > No, you also need to install the 32-bit glibc-devel package before you > can link 32-bit applications on the 64-bit system. For FC6 this would > be glibc-devel-2.5-18.fc6.i386.rpm > > Your question is off-topic on the gcc mailing list, which is for > discussion of development *of* GCC, not *with* GCC. For help using > the compiler you should use [EMAIL PROTECTED] so please follow up > there (although I'm not sure your question is related to Motif or GCC > but just a system not set up for what you want to do) > > Regards, > > Jon > Dear Jon: Thanks a lot, ~ "gcc -m32 . . " worked! However, then, I got, /usr/bin/ld: skipping incompatible ../../libastro/libastro.a when searching for -lastro /usr/bin/ld: cannot find -lastro collect2: ld returned 1 exit status make: *** [xephem] Error 1 [EMAIL PROTECTED] xephem]# ll . Mayday, Veuillez M'Aider, s'il vous plait! Tempus fugit et ad augusta per angusta. Nil desparare (Gauss), Joseph Roy D. North LeRoi Du Nord 3220 Duval Road, Apt. 1110 Austin, TX 78759-3524, USA Scientia est Potentia! I Prefer Pi (a palindrome)!