[Beginner-Q] Soalris 10 x86 Gcc faild to compile
Hello
I want install a newer release from GCC-4.3.3 on me Solaris x86 machine,
Configure finish witout question, make it appaer the following error and
i dont know why, please for any help
/usr/source/gcc4.3.3/objsrc/configure with-gnu-as with-as=/usr/sfw/bin/as without-gnu-ld with-ld=/usr/ccs/bin/ld
# gcc -v
Lese Spezifikationen von /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Konfiguriert mit: ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld enable-shared enable-languages=c,c++,f77
Thread-Modell: posix
gcc-Version 3.4.6
# ld -v
GNU ld (GNU Binutils) 2.19
# as -v
GNU assembler version 2.19 (i386-pc-solaris2.10) using BFD version (GNU Binutils) 2.19
# uname -a -r
SunOS unknown 5.10 Generic_137138-09 i86pc i386 i86pc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/source/gcc-4.3.3/install-sh -c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for i386-pc-solaris2.10-ar... /usr/local/i386-pc-solaris2.10/bin/ar
checking for i386-pc-solaris2.10-lipo... lipo
checking for i386-pc-solaris2.10-nm... /usr/source/gcc-4.3.3/objsrc/./gcc/nm
checking for i386-pc-solaris2.10-ranlib... /usr/local/i386-pc-solaris2.10/bin/ranlib
checking for i386-pc-solaris2.10-strip... /usr/local/i386-pc-solaris2.10/bin/strip
checking whether ln -s works... yes
checking for i386-pc-solaris2.10-gcc... /usr/source/gcc-4.3.3/objsrc/./gcc/xgcc -B/usr/source/gcc-4.3.3/objsrc/./gcc/ -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib/ -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-pc-solaris2.10/sys-include -m64
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/usr/source/gcc-4.3.3/objsrc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/source/gcc-4.3.3/objsrc'
make: *** [all] Error 2
[config.log | .li]I have found following lines that's possible mistake ?
configure:4975: $? = 0
configure:4978: test -s conftest.o
configure:4981: $? = 0
configure:4992: result: yes
configure:6234: checking for library containing strerror
configure:6269: gcc -o conftest -g -fkeep-inline-functions conftest.c >&5
configure:6275: $? = 0
configure:6279: test -z
|| test ! -s conftest.err
configure:6282: $? = 0
configure:6285: test -s conftest
configure:6288: $? = 0
configure:6363: result: none required
configure:6374: checking for asprintf
configure:6430: gcc -o conftest -g -fkeep-inline-functions conftest.c >&5
Undefined first referenced
symbol in file
asprintf /var/tmp//ccciEjmm.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6436: $? = 1
configure: failed program was:
| /* confdefs.h. */
Nopassw1 wrote:
Hello
I want install a newer release from GCC-4.3.3 on me Solaris x86 machine,
Configure finish witout question, make it appaer the following error and
i dont know why, please for any helpIf the configure that you ran is what is posted below then it did not finish without errors.
/usr/source/gcc4.3.3/objsrc/configure with-gnu-as with-as=/usr/sfw/bin/as without-gnu-ld with-ld=/usr/ccs/bin/ld
# gcc -v
Lese Spezifikationen von /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Konfiguriert mit: ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld enable-shared enable-languages=c,c++,f77
Thread-Modell: posix
gcc-Version 3.4.6This is someone else's gcc and not the one supplied by SUN. You should just use /usr/sfw/bin/gcc and take /usr/local out of the path statement.
# ld -v
GNU ld (GNU Binutils) 2.19
# as -v
GNU assembler version 2.19 (i386-pc-solaris2.10) using BFD version (GNU Binutils) 2.19If you use the gcc that you showed earlier then these are irrelevant. That gcc will use as and ld from /usr/ccs/bin unless you rename them and symlink the gnu one's into their old places.
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/source/gcc-4.3.3/install-sh -c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for i386-pc-solaris2.10-ar... /usr/local/i386-pc-solaris2.10/bin/ar
checking for i386-pc-solaris2.10-lipo... lipo
checking for i386-pc-solaris2.10-nm... /usr/source/gcc-4.3.3/objsrc/./gcc/nm
checking for i386-pc-solaris2.10-ranlib... /usr/local/i386-pc-solaris2.10/bin/ranlib
checking for i386-pc-solaris2.10-strip... /usr/local/i386-pc-solaris2.10/bin/strip
checking whether ln -s works... yes
checking for i386-pc-solaris2.10-gcc... /usr/source/gcc-4.3.3/objsrc/./gcc/xgcc -B/usr/source/gcc-4.3.3/objsrc/./gcc/ -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib/ -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-pc-solaris2.10/sys-include -m64
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/usr/source/gcc-4.3.3/objsrc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/source/gcc-4.3.3/objsrc'
make: *** [all] Error 2
[config.log | .li]I have found following lines that's possible mistake ?
configure:4975: $? = 0
configure:4978: test -s conftest.o
configure:4981: $? = 0
configure:4992: result: yes
configure:6234: checking for library containing strerror
configure:6269: gcc -o conftest -g -fkeep-inline-functions conftest.c >&5
configure:6275: $? = 0
configure:6279: test -z
|| test ! -s conftest.err
configure:6282: $? = 0
configure:6285: test -s conftest
configure:6288: $? = 0
configure:6363: result: none required
configure:6374: checking for asprintf
configure:6430: gcc -o conftest -g -fkeep-inline-functions conftest.c >&5
Undefined first referenced
symbol in file
asprintf /var/tmp//ccciEjmm.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:6436: $? = 1
configure: failed program was:
| /* confdefs.h. */Just start again and use /usr/sfw/bin/gcc and you should be ok.
alan
Similar Messages
-
hi i am trying to install NI-VISA driver on SUSE LINUX 11.1.
the error message it shows is
******************************** ERROR ****************************************
* The version of gcc in the path does not match the version of gcc used to *
* compile the currently running kernel. This can cause unpredictable *
* behavior in kernel drivers and should be fixed. *
* gcc version: Linux) *
* kernel compiled with: 4.3.2 *
******************************** ERROR ****************************************
my kernel source version is
linux-8nes:/home/admin # rpm -qi kernel-source
Name : kernel-source Relocations: /usr/src
Version : 2.6.27.29 Vendor: openSUSE
Release : 0.1.1 Build Date: Sun 16 Aug 2009 03:43:52 PM IST
Install Date: Sat 24 Oct 2009 02:13:12 AM IST Build Host: rinck
Group : Development/Sources Source RPM: kernel-source-2.6.27.29-0.1.1.src.rpm
Size : 309251954 License: GPL v2 only
Signature : RSA/8, Sun 16 Aug 2009 03:57:25 PM IST, Key ID b88b2fd43dbdc284
Packager : http://bugs.opensuse.org
URL : http://www.kernel.org/
Summary : The Linux Kernel Sources
Description :
Linux kernel sources with many fixes and improvements.
Authors:
Linus Torvalds <[email protected]>
see /usr/src/linux/CREDITS for more details.
Source Timestamp: 2009-08-15 17:53:59 +0200
GIT Revision: 8a413546901c407e96f7fba18574cceeb40452af
GIT Branch: SLE11_BRANCH
Distribution: openSUSE 11.1
i had also installed GCC 4.3.2.
it shows the error message as i had posted.
please kindly help me on this.
Thanks and regards,
P.karthickCheck this solution
-
I installed Solaris 8 x86 02/02, but later I used the same disk to install other OS, it said the disk geometry is invalid. I have to spend 3 hours to fix the disk.
No matter what disk I use (Maxtor 40G, 80G, Quntum), and no matter if I enable DMA, it's same. What can I do here?
ThanksThanks for the reply.
I format the whole harddrive, so it is not a issue.
I have an older version 04/01 which doesn't have this problem. -
Sgen driver for Soalris 10 x86
Hi,
Is this driver available on Solaris 10 x86 ?
Dummy question, but I don't have a Solaris x86 box for now to verify this.
RegardsYes:
% ls -l /kernel/drv/sgen /kernel/drv/amd64/sgen
-rwxr-xr-x 1 root sys 40136 Jan 23 2005 /kernel/drv/amd64/sgen
-rwxr-xr-x 1 root sys 23980 Jan 23 2005 /kernel/drv/sgen -
GCC as main compiler on 10.9
Hello, I have been unable to succesfully install gcc 4.8 or 4.9 on Mac OS X Mavericks. Nor i can use clang anymore as well. I tried installing GCC with homebrew and followed some instructions to add plugin for XCode but it seems it broke both of the compilers. Mainly i want GCC because clang won't allow me to have definitions in separate cpp file. I get error that compiler can't 'read' symobls, but when i put definition in header file everything works fine.
colask8 wrote:
And so on, i have found that clang has bugs as ****.
Such as? Clang has a very active development community. The possibility that it would have any bug that could impede the progress of a developer ranges from virtually zero for experts to absolute zero for beginners.
So that might be the reason why i wanted to use gcc, but i see as you stated that they dont want to get involved with apple anymore.
You are unsure about why you wanted to use GCC?
GNU never wanted to be involved with Apple. It was only a bug in their licensing that allowed Apple to use GCC. When GNU fixed that bug with version 3 of the GPL, Apple started heavy developlent of LLVM and, eventually, CLang.
So if you know the way to update to clang 3.5? Because i cannot seem to find a proper tutorial for it. Thank you
There are no such tutorials. If you want to install a private build of Clang, or GCC for that matter, just do it. It is not a simple task and I doubt you will find any tutorials. That is something that the developers of those compilers might do.
What I suggest you do is clearly explain what you are trying to do, at a very high level. What code are you trying to compile that the built-in compiler in Xcode cannot compile? -
Hello World :
#include<iostream>
using namespace std;
int main ()
cout << "what am I doing wrong?";
return 0;
All the strace sh!t
execve("/usr/bin/gcc", ["gcc", "hello.cpp"], [/* 43 vars */]) = 0
uname({sys="Linux", node="stryder", ...}) = 0
brk(0) = 0x805d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f59000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=65638, ...}) = 0
mmap2(NULL, 65638, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f48000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "177ELF111331220R1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1363203, ...}) = 0
mmap2(NULL, 1150540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e2f000
mmap2(0xb7f3e000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10f) = 0xb7f3e000
mmap2(0xb7f46000, 7756, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f46000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e2e000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e2e6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f48000, 65638) = 0
brk(0) = 0x805d000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38399616, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c2e000
close(3) = 0
brk(0x807e000) = 0x807e000
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804ade0, [INT], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x804ade0, [HUP], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804ade0, [TERM], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {0x804ade0, [PIPE], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
access("/bin/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
lstat64("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=85296, ...}) = 0
access("/bin/gcc", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/bin/gcc", X_OK) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
lstat64("/usr/bin/gcc", {st_mode=S_IFREG|0755, st_size=85296, ...}) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/", X_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/", X_OK) = 0
access("hello.cpp", F_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs", R_OK) = 0
open("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs", O_RDONLY) = 3
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs", {st_mode=S_IFREG|0644, st_size=3869, ...}) = 0
read(3, "*asm:n%{v:-V} %{Qy:} %{!Qn:-Qy} "..., 3869) = 3869
close(3) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/", X_OK) = 0
access("/tmp", R_OK|W_OK|X_OK) = 0
gettimeofday({1121809872, 830804}, NULL) = 0
getpid()
open("/tmp/ccTAp7N8.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3) = 0
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus", {st_mode=S_IFREG|0755, st_size=9274676, ...}) = 0
access("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus", X_OK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e2e708) = 7198
waitpid(7198, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7198
--- SIGCHLD (Child exited) @ 0 (0) ---
gettimeofday({1121809873, 223825}, NULL) = 0
open("/tmp/ccLSz9Bn.o", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3) = 0
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/3.4.3/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/as", 0xbfc6c28c) = -1 ENOENT (No such file or directory)
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e2e708) = 7199
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(7199, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 7199
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", {st_mode=S_IFREG|0755, st_size=127724, ...}) = 0
access("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", X_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crt1.o", R_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/crti.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/crti.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crti.o", R_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbegin.o", R_OK) = 0
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/.", 0xbfc6b33c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/.", 0xbfc6b35c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/.", 0xbfc6b35c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../.", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
stat64("/lib/i686-pc-linux-gnu/3.4.3/.", 0xbfc6b38c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686-pc-linux-gnu/3.4.3/.", 0xbfc6b37c) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtend.o", R_OK) = 0
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../i686-pc-linux-gnu/3.4.3/crtn.o", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../crtn.o", R_OK) = 0
stat64("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", {st_mode=S_IFREG|0755, st_size=127724, ...}) = 0
access("/usr/libexec/gcc/i686-pc-linux-gnu/3.4.3/collect2", X_OK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e2e708) = 7200
waitpid(7200, /tmp/ccLSz9Bn.o(.text+0xd): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
/tmp/ccLSz9Bn.o(.text+0x60): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
/tmp/ccLSz9Bn.o(.text+0x9f): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
/tmp/ccLSz9Bn.o(.text+0xce): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
/tmp/ccLSz9Bn.o(.text+0x127): In function `main':
: undefined reference to `std::cout'
/tmp/ccLSz9Bn.o(.text+0x12c): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccLSz9Bn.o(.text+0x155): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
/tmp/ccLSz9Bn.o(.text+0x186): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccLSz9Bn.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 7200
--- SIGCHLD (Child exited) @ 0 (0) ---
stat64("/tmp/ccLSz9Bn.o", {st_mode=S_IFREG|0600, st_size=2468, ...}) = 0
unlink("/tmp/ccLSz9Bn.o") = 0
stat64("/tmp/ccTAp7N8.s", {st_mode=S_IFREG|0600, st_size=6022, ...}) = 0
unlink("/tmp/ccTAp7N8.s") = 0
exit_group(1)
Any help would be appreciated immensly.well, the compiler output would have been much more useful than an strace. The gnu compilers are used by millions of people - I'm pretty sure someone would have noticed if it didn't compile c++ programs. Following that logic, it's most likely a program error.
Also, like biio said, use g++ for c++ apps, instead of gcc - that'll probably fix your issue because it compiles fine here:
g++ hello.cpp -o hello -
Dear all,
I hope this is clear
Goal: To install gnuplot for OS X.
Problem: gcc make command not found. When I try to install gnuplot 4.4.3 on os X 10.6.8
System hardware : Mac mini 2010.
OS : OS X 10.6.8 snow leopard
Application installed working : TeXshop 2.3.7, AquaTerm v1.0.1 (1.0.1)
Questions: Any help or advise on how and where to get the make command ?BTW...This is my error message at terminal....shown below
Last login: Thu Feb 23 09:37:21 on console
/Users/lim/Desktop/Source_gnuplot4.4.4/gnuplot-4.4.4/configure ; exit;
lims-mac-mini:~ lim$ /Users/lim/Desktop/Source_gnuplot4.4.4/gnuplot-4.4.4/configure ; exit;
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /Users/lim/Desktop/Source_gnuplot4.4.4/gnuplot-4.4.4/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/Users/lim':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
logout
[Process completed] -
Gcc error : C compiler cannot create executables
+I am getting the same error from all my Configure scripts+.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
+config.log shows:+
configure:1728: checking for gcc
configure:1744: found /usr/bin/gcc
configure:1754: result: gcc
configure:1998: checking for C compiler version
configure:2001: gcc --version </dev/null >&5
2.95.2
configure:2004: $? = 0
configure:2006: gcc -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-938, based on gcc version 2.95.2 19991024 (release)
configure:2009: $? = 0
configure:2011: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2014: $? = 1
configure:2038: checking for C compiler default output
configure:2041: gcc conftest.c >&5
dyld: lazy symbol binding failed: Symbol not found: _NXOpenFile
Referenced from: /usr/libexec/gcc/darwin/ppc/cpp-precomp
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _NXOpenFile
Referenced from: /usr/libexec/gcc/darwin/ppc/cpp-precomp
Expected in: /usr/lib/libSystem.B.dylib
gcc: Internal compiler error: program cpp-precomp got fatal signal 5
configure:2044: $? = 1
configure: failed program was:
| #line 2017 "configure"
+The simplest compile has essentially the same error:+
gcc hello.c
dyld: lazy symbol binding failed: Symbol not found: _NXOpenFile
Referenced from: /usr/libexec/gcc/darwin/ppc/cpp-precomp
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _NXOpenFile
Referenced from: /usr/libexec/gcc/darwin/ppc/cpp-precomp
Expected in: /usr/lib/libSystem.B.dylib
gcc: Internal compiler error: program cpp-precomp got fatal signal 5
I'm stumped. This is Mac OS 10.6.5 Snow Leopard; 2 Ghz Intel Core 2 Duo; 4 G RAM.
gcc2.95.2.pkg installed.
X11SDK.pkg installed
This all began when I moved to to MacBook from my old iBook.The Snow Leopard install CD has a sub-directory "Optional Installs" which holds a package "Xcode.mpkg". Installing Xcode.mpkg fixed my problem. My compiler is running fine now.
-
platform: windows server 2008 r2; ide: visual studio 2005 (installed the x64 development kit)
Hi, everyone.
I want to migrate my application to x64 platform from x86/win32 platform. I added x64 platform in visual c++ 2005 option, and compiled successfully. But the application can not start. When start it always pop up an alert dialog saying "The application
was unable to start correctly (0xc0000142). Click OK to close the application." Meanwhile, it's worked well when I use win32 option to compile.
Someone says online, the dependency walker can detect some root cause. I used it, and found that IEFRAME.dll may be had some problem because when I double click it, pop up a dialogue saying "Errors were detected when processing "c:\windows\system32\IEFRAME.DLL".
See the log window for details.". But I can not resolve this issue.
Please help me.If I had to try to solve this:
I'd start by verifying that I can compile, and run a skeleton x64 Windows app. Just create one from scratch using the Windows Application project template, add the x64 platform, build it and run. Hopefully all goes well.
If that works, then I'd try trimming down your app to just its essentials. If you're not using revision control software, back up your projects now, because once you find the problem by hacking and slashing, you'll want to revert so you can make a
clean fix.
The first thing to do here is just put a return 0; in the beginning of WinMain to see if it's code at runtime that's causing the problem or something about the linking and dependent library loading.
I'm guessing that, even with return 0, you will still have a problem, which would suggest that you are perhaps still linking against a 32-bit version of a library or something like that. Start removing dependencies or references or libraries until
you can build and run your stripped-down application. Eventually you'll find the one reference/library that causes it to fail to load.
You can also check the debug window to see if some modules loaded correctly and others not.
You can also run
Process Monitor (sysinternals) to see which dll it was accessing when it failed to load.
Make sure you revert any changes you made while hacking and slashing, then make your platform fixes, and have another go.
I suspect that eventually you'll find that you've added a link library that is a 32-bit .lib or a component that references a 32-bit library. You'll have to make sure you specify the x64 .libs for whatever libraries you are using. Sometimes this
means that you have to change you additional linker directories to point to the x64 libs instead of the x86/win32 libs. Be very careful about your platform when specifying linker libraries, directories, etc.
It could also be that the x64 version of a dll has been copied to your output folder rather than the x86 version, assuming they have the same name. You'll have to sort out your SDKs and get the right .libs and .dlls.
Make sure that your settings and property pages are set correctly for Release and Debug, and for x86 and x64. -
Error compiling GCC 4.3.1 on Solaris 10 x86 (Update 5)
I am getting error when building GCC 4.3.1 on Solaris 10 x86.
Have any of you built GCC 4.3.1 on Sol 10 x86?
Here's the background:
$ cat /etc/release
Solaris 10 5/08 s10x_u5wos_10 X86
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 24 March 2008
$ isainfo -x
amd64: cx16 mon sse3 sse2 sse fxsr mmx cmov amd_sysc cx8 tsc fpu
i386: cx16 mon sse3 sse2 sse fxsr mmx cmov sep cx8 tsc fpu
$ isalist
amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
$ echo $PATH
/usr/sfw/bin:/usr/local/bin:/usr/X/bin:/etc:/sbin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/bin
$ ../gcc-4.3.1/configure program-suffix=-4.3.1 enable-languages=c,c++
with-mpfr=/usr/local with-gmp=/usr/local
with-gnu-as with-as=/usr/sfw/bin/gas
without-gnu-ld with-ld=/usr/ccs/bin/ld
And here's the failure:
/usr/local/src/gcc-4.3.1/s10i/./gcc/xgcc
-B/usr/local/src/gcc-4.3.1/s10i/./gcc/
-B/usr/local/i386-pc-solaris2.10/bin/
-B/usr/local/i386-pc-solaris2.10/lib/
-isystem /usr/local/i386-pc-solaris2.10/include
-isystem /usr/local/i386-pc-solaris2.10/sys-include
-O2 -O2 -g -g -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -shared
-nodefaultlibs -Wl,-h,libgcc_s.so.1
-Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc.map
-o amd64/libgcc_s.so.1.tmp -g -fkeep-inline-functions
-m64 -B./ muldi3s.o negdi2s.o lshrdi3s.o ashldi3s.o
ashrdi3s.o
cmpdi2s.o ucmpdi2s.o clearcache_s.o enableexecute_stack_s.o
trampolines.o __main_s.o absvsi2s.o absvdi2s.o addvsi3s.o
addvdi3s.o subvsi3s.o subvdi3s.o mulvsi3s.o mulvdi3s.o negvsi2s.o
negvdi2s.o ctorss.o ffssi2s.o ffsdi2s.o clzs.o clzsi2s.o clzdi2s.o
ctzsi2s.o ctzdi2s.o popcounttab_s.o popcountsi2s.o popcountdi2s.o
paritysi2s.o paritydi2s.o powisf2s.o powidf2s.o powixf2s.o powitf2s.o
mulsc3s.o muldc3s.o mulxc3s.o multc3s.o divsc3s.o divdc3s.o
divxc3s.o divtc3s.o bswapsi2s.o bswapdi2s.o fixunssfsis.o
fixunsdfsis.o fixunsxfsis.o fixsfdis.o fixdfdis.o fixxfdis.o fixtfdis.o
fixunssfdis.o fixunsdfdis.o fixunsxfdis.o fixunstfdis.o floatdisfs.o
floatdidfs.o floatdixfs.o floatditfs.o floatundisfs.o floatundidfs.o
floatundixfs.o floatunditfs.o divdi3s.o moddi3s.o udivdi3s.o umoddi3s.o
udivw_sdiv_s.o udivmoddi4s.o unwind-dw2_s.o unwind-dw2-fde_s.o unwind-sjlj_s.o
gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc && rm -f amd64/libgcc_s.so
&& if [ -f amd64/libgcc_s.so.1 ]; then mv -f amd64/libgcc_s.so.1 amd64/libgcc_s.so.1.backup; else true; fi
&& mv amd64/libgcc_s.so.1.tmp amd64/libgcc_s.so.1
&& ln -s libgcc_s.so.1 amd64/libgcc_s.so
ld: fatal: unwind table: file /usr/local/src/gcc-4.3.1/s10i/./gcc/amd64/crtend.o: section .eh_frame:
bad cie version 0: offset 0xfffffd7fffdfb700
How do I build GCC 4.3.1 on Solaris x86?
ThanksThe bootstrap compiler is GCC 3.4.3.
I tried Sun's assembler (/usr/ccs/bin/as) too and got another error (below)
I also tried bootstrapping with Sun's Studio 12 compiler but that too failed.
*$ pkginfo -x SUNWbinutils SMCbinut*
SMCbinut binutils
(x86) 2.17
SUNWbinutils binutils - GNU binutils
(i386) 11.10.0,REV=2005.01.08.01.09
*$ whence gcc*
/usr/sfw/bin/gcc
*$ gcc -v*
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure prefix=/usr/sfw with-as=/usr/sfw/bin/gas with-gnu-as with-ld=/usr/ccs/bin/ld without-gnu-ld enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
The error this time is:
/big1/usr.local.src/gcc-4.3.1/s10i/./gcc/xgcc -B/big1/usr.local.src/gcc-4.3.1/s10i/./gcc/ -B/usr/local/i386-pc-solaris2.10/bin/ -B/usr/local/i386-pc-solaris2.10/lib/ -isystem /usr/local/i386-pc-solaris2.10/include -isystem /usr/local/i386-pc-solaris2.10/sys-include -g -fkeep-inline-functions -m64 -O2 -O2 -g -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I../../../../gcc-4.3.1/libgcc -I../../../../gcc-4.3.1/libgcc/. -I../../../../gcc-4.3.1/libgcc/../gcc -I../../../../gcc-4.3.1/libgcc/../include -DHAVE_CC_TLS -o gcov.o -MT gcov.o -MD -MP -MF gcov.dep -DLgcov -c ../../../../gcc-4.3.1/libgcc/../gcc/libgcov.c
Assembler: libgcov.c
"/var/tmp//ccYcw90K.s", line 1936 : Syntax error
Near line: " repz cmpsb" -
Compiling Apache 1.3 with gcc
Hi all,
I have trying to set up Apache server in Soalris 10, and to compile with gcc but I am having problems.
The first part of ./configure --prefix=... is fine, but when I type make I am getting this:
# make
===> src
===> src/regex
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c
In file included from /usr/include/sys/wait.h:24,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
from /usr/include/sys/wait.h:25,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1096,
from os.c:21:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `os.o'
Current working directory /web-download/apache_1.3.33/src/os/unix
*** Error code 1
The following command caused the error:
for i in regex os/unix ap main lib modules; do \
echo "===> src/$i"; \
case ".Solaris 2100" in \
.OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
*) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
esac; \
echo "<=== src/$i"; \
done
make: Fatal error: Command failed for target `subdirs'
Current working directory /web-download/apache_1.3.33/src
*** Error code 1
The following command caused the error:
case "xi86pc-sun-solaris2.2100" in \
x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
esac; \
cd ./src; make SDP=src/ all
make: Fatal error: Command failed for target `build-std'
Current working directory /web-download/apache_1.3.33
*** Error code 1
The following command caused the error:
make -f ./Makefile root= build-std
make: Fatal error: Command failed for target `build'
# svcadm
Usage: svcadm [-v] enable [-rt] {FMRI | pattern}...
svcadm [-v] disable [-t] {FMRI | pattern}...
svcadm [-v] restart {FMRI | pattern}...
svcadm [-v] refresh {FMRI | pattern}...
svcadm [-v] mark [-It] {degraded | maintenance} {FMRI | pattern}...
svcadm [-v] clear {FMRI | pattern}...
svcadm [-v] delegate restarter_FMRI {FMRI | pattern}...
svcadm [-v] milestone [-d] milestone_FMRI
# svcadm -v
Usage: svcadm [-v] enable [-rt] {FMRI | pattern}...
svcadm [-v] disable [-t] {FMRI | pattern}...
svcadm [-v] restart {FMRI | pattern}...
svcadm [-v] refresh {FMRI | pattern}...
svcadm [-v] mark [-It] {degraded | maintenance} {FMRI | pattern}...
svcadm [-v] clear {FMRI | pattern}...
svcadm [-v] delegate restarter_FMRI {FMRI | pattern}...
svcadm [-v] milestone [-d] milestone_FMRI
# make
===> src
===> src/regex
<=== src/regex
===> src/os/unix
gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c
In file included from /usr/include/sys/wait.h:24,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/sys/procset.h:24,
from /usr/include/sys/wait.h:25,
from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1079,
from os.c:21:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
In file included from ../../include/ap_config.h:1096,
from os.c:21:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `os.o'
Current working directory /web-download/apache_1.3.33/src/os/unix
*** Error code 1
The following command caused the error:
for i in regex os/unix ap main lib modules; do \
echo "===> src/$i"; \
case ".Solaris 2100" in \
.OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
*) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
esac; \
echo "<=== src/$i"; \
done
make: Fatal error: Command failed for target `subdirs'
Current working directory /web-download/apache_1.3.33/src
*** Error code 1
The following command caused the error:
case "xi86pc-sun-solaris2.2100" in \
x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
esac; \
cd ./src; make SDP=src/ all
make: Fatal error: Command failed for target `build-std'
Current working directory /web-download/apache_1.3.33
*** Error code 1
The following command caused the error:
make -f ./Makefile root= build-std
make: Fatal error: Command failed for target `build'
And I have no idea what is the problem. Has anyone experience the same?
I am newbie so...
Thanks,
JuanCompiling Apache 1.3 with gcc on linux or unix? If you are using unix, I would be compiling with cc and not gcc. You have gcc set to compile using regular expressions and I believe that has to be specified during SunOS install as posix compliant.
-
Solaris 10 sparc - cpan - gcc/make issue
Hi all,
I am attempting to install necessary perl modules to run a perl script. I need to use gcc as my compiler and believe I have an issue, also may have a (g)make issue as well. I will copy the output of two install failures, and then my current o conf setup. if someone could help me out I would sincerely appreciate it.
When trying to install IO::Pty I received the following output.
cpan[1]> install IO::Pty
Reading '/.cpan/Metadata'
Database was generated on Thu, 26 Sep 2013 13:53:03 GMT
Running install for module 'IO::Pty'
Running make for T/TO/TODDR/IO-Tty-1.10.tar.gz
CPAN: checksum security checks disabled because Digest::SHA not installed.
Please consider installing the Digest::SHA module.
Scanning cache /.cpan/build for sizes
..........................................................................--DONE
DEL(1/3): /.cpan/build/Data-Dumper-2.145-wR9zqH
DEL(2/3): /.cpan/build/Time-Local-1.2300-_ZUYVw
DEL(3/3): /.cpan/build/Time-Local-1.2300-_ZUYVw.yml
CPAN.pm: Building T/TO/TODDR/IO-Tty-1.10.tar.gz
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1868.
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1869.
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1879.
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1880.
Now let's see what we can find out about your system
(logfiles of failing tests are available in the conf/ dir)...
sh: cc: not found
ERROR: cannot run the configured compiler 'cc'
(see conf/compilerok.log). Suggestions:
1) The complier 'cc' is not in your PATH. Add it
to the PATH and try again. OR
2) The compiler isn't installed on your system. Install it. OR
3) You only have a different compiler installed (e.g. 'gcc').
Either fix the compiler config in the perl Config.pm
or install a perl that was built with the right compiler
(you could build perl yourself with the available compiler).
Note: this is a system-administration issue, please ask your local
admin for help. Thank you.
Warning: No success on command[/usr/perl5/5.8.4/bin/perl Makefile.PL]
TODDR/IO-Tty-1.10.tar.gz
/usr/perl5/5.8.4/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
TODDR/IO-Tty-1.10.tar.gz : writemakefile NO '/usr/perl5/5.8.4/bin/perl Makefile.PL' returned status 512
When trying to install Data::Dumper I received the following output.
cpan[2]> install Data::Dumper
Running install for module 'Data::Dumper'
Running make for S/SM/SMUELLER/Data-Dumper-2.145.tar.gz
CPAN: checksum security checks disabled because Digest::SHA not installed.
CPAN.pm: Building S/SM/SMUELLER/Data-Dumper-2.145.tar.gz
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1868.
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1869.
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1879.
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 1880.
Checking if your kit is complete...
Looks good
Generating a GNU-style Makefile
Writing Makefile for Data::Dumper
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value in scalar assignment at /usr/perl5/5.8.4/lib/CPAN/Distribution.pm line 2033.
cp Dumper.pm blib/lib/Data/Dumper.pm
/usr/perl5/5.8.4/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap Dumper.xs > Dumper.xsc && mv Dumper.xsc Dumper.c
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"2.145\" -DXS_VERSION=\"2.145\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DUSE_PPPORT_H Dumper.c
/bin/sh: cc: not found
gmake: *** [Dumper.o] Error 1
SMUELLER/Data-Dumper-2.145.tar.gz
/usr/sfw/bin/gmake -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
SMUELLER/Data-Dumper-2.145.tar.gz : make NO
cpan[3]> o conf
$CPAN::Config options from /usr/perl5/5.8.4/lib/CPAN/Config.pm:
commit [Commit changes to disk]
defaults [Reload defaults from disk]
help [Short help about 'o conf' usage]
init [Interactive setting of all options]
applypatch []
auto_commit [0]
build_cache [10]
build_dir [/.cpan/build]
build_dir_reuse [0]
build_requires_install_policy [yes]
bzip2 [/usr/bin/bzip2]
cache_metadata [1]
check_sigs [0]
colorize_debug undef
colorize_output [0]
colorize_print undef
colorize_warn undef
commandnumber_in_prompt [1]
commands_quote undef
connect_to_internet_ok [1]
cpan_home [/.cpan]
curl undef
dontload_hash
dontload_list undef
ftp [/usr/bin/ftp]
ftp_passive [1]
ftp_proxy [Proxy info removed]
ftpstats_period undef
ftpstats_size undef
getcwd [cwd]
gpg []
gzip [/usr/bin/gzip]
halt_on_failure [0]
histfile [/.cpan/histfile]
histsize [100]
http_proxy [Proxy info removed]
inactivity_timeout [0]
index_expire [1]
inhibit_startup_message [0]
keep_source_where [/.cpan/sources]
load_module_verbosity [none]
lynx []
make [/usr/sfw/bin/gmake] I have also tried [/usr/sfw/bin/make] and still the installs fail
make_arg []
make_install_arg [UNINST=1]
make_install_make_command [/usr/sfw/bin/gmake] I have also tried [/usr/sfw/bin/make] and still the installs fail
makepl_arg []
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg []
ncftp []
ncftpget []
no_proxy []
pager [/usr/bin/less]
password undef
patch [/usr/bin/patch]
patches_dir undef
perl5lib_verbosity [none]
prefer_external_tar [0]
prefer_installer [MB]
prefs_dir [/.cpan/prefs]
prerequisites_policy [ask]
proxy_pass undef
proxy_user []
randomize_urllist undef
scan_cache [atstart]
shell [/sbin/sh]
show_unparsable_versions [0]
show_upload_date [0]
show_zero_versions [0]
tar [/usr/sfw/bin/gtar]
tar_verbosity [none]
term_is_latin [1]
term_ornaments [1]
test_report [0]
trust_test_report_history [0]
unzip [/usr/bin/unzip]
urllist
0 [http://cpan.cse.msu.edu/]
1 [http://httpupdate23.cpanel.net/CPAN/]
2 [http://cpan.llarian.net/]
use_sqlite [0]
username undef
version_timeout [15]
wait_list undef
wget [/usr/sfw/bin/wget]
yaml_load_code [0]
yaml_module [YAML]
I would appreciate any assistance,
Thank you in advance,
Steve Os@mira123 wrote:
Dear All,
I am trying to set the date as per the time zone,
I have succeeded doing that on solaris 10 x86 server after i modified the /etc/TIMEZONE file and ran the rtc command/etc/TIMEZONE is only read at boot time.
The rtc command is used to set the real time (bios) clock. It should have no effect on the running clock.
as i configured the /etc/TIMEZONE, i couldnt run the rtc command and figured that it is for X86
what is the alternative on SPARC?There is no alternative. x86 has a tradition of running the BIOS clock in local time. The rtc program allows you to continue doing that, which is handy if you multi-boot with other operating systems that require that setting (such as windows). As such, the rtc clock needs to be reset when local time changes (usually associated with daylight saving or summer time). If you do not multi-boot with windows, you may wish to set the bios clock to UTC. It makes certain things easier.
SPARC systems do not multi-boot windows, and the onboard nvram clock always runs in UTC. So the rtc command is not needed.
The date output is +2 over the timezone taht i have specified
TZ=Europe/Paris
CMASK=022
LANG=en_US.UTF-8Please show output of the following commands:
TZ=Europe/Paris date
date
echo $TZ
Darren -
I need to download 11g for Solaris10 x86
sorry for easy question.
I hope to install Oracle 11g on Soalris 10 x86 with VMware.
but I can't finding for a 11g x86.
Where can I do that?user3531902 wrote:
sorry for easy question.
I hope to install Oracle 11g on Soalris 10 x86 with VMware.
but I can't finding for a 11g x86.
Where can I do that?You can not find it because it is not available. And, apparently it will not become available.
According to information, you will need to wait until Oracle releases 11gR2 for Solaris x86. Unfortunately we have no date for that. -
GCC Compiler problems!!!
how do i setup GCC to compile software?? i've downloaded the package from www.sunfreeware.com. Are there any other packages i need?? i'm using a Bourne shell...do i just edit /etc/profile and add /usr/ccs/bin to the path?? when i make the changes and used ECHO $PATH, it shows /usr/ccs/bin, but when i reboot, it doesnt show /usr/ccs/bin anymore. how do i add it to the PATH and keep the changes?? i tried following --> http://solaris-x86.org/documents/guides/compile.mhtml . I know i was missing some of the packages they have listed in order to compile. I tried to search for them on Software CD 1 & 2 and couldnt find them. I'm running Solaris 9 X86. ANY help is much appreciated.
Thanks!Hi.
I can't check right now (no Solaris machine nearby) but as far as I remember, GCC
installs in /usr/local, meaning that the libs are in /usr/local/lib, binaries in /usr/local/bin,
manual pages in /usr/local/man and so on.
So, in order compile w/ GCC you ought to add /usr/local/lib to LD_LIBRARY_PATH and
/usr/local/bin to PATH. Rather than modifying the init files system-wide I usually modify
~/.bashrc or ~/.bash_profile to set the environment variables.
You may specify /usr/local/include for special GCC include files in your Makefile
(option -I)
eb -
Hi there:
I need help. I am trying to write a program that compiles *.c file(s) and capture the compilation result. Here is what I tried:
BufferedReader br = new BufferedReader(new FileReader(srcFile));
fileName = br.readLine();
System.out.println(fileName);
Runtime rt1 = Runtime.getRuntime();
Process proc1 = rt1.exec("cmd /c C:/jdk1.3.1_07/bin/gcc "+fileName); //***here is the problem ***
InputStream inp = proc1.getInputStream();
int charIn1;
while( (charIn1 = inp.read()) != -1 )
System.out.print( (char)charIn1 );
Here GCC should show compilation errors because I planted syntax errors in my test *.c file. But for some reason nothing gets displayed on the screen. Is there a way to know whats going on behind the scene! Or do I need to pursue something else such as JNI instead of directly calling gcc program !
Please help if possible.
-JCoddaDon't invoke gcc throught the 'cmd' command shell; invoke it directly like this --
String gcc= "C:/jdk1.3.1_07/bin/gcc";
Process rt1.exec(new String[] { gcc, filename });
// etc.
[/code
I've used this form of exec() just because 'filename' might contain whitespace which gets tokenzed out and splits up the file name.
kind regards,
Jos
Maybe you are looking for
-
Memory Question??? Where's Jocko?
I have a question on the memory frequencey showing in the bios of my motherboard it states that I have 200ddr is this correct? I have pc3500 mushkin 222. Is there a way to change this or is this just the way it shows? amd 64 3400+ kt8 neo 34 gig wd 1
-
Pavilion dv8t 1200 - simple pass/digital persona software won't install
Howdy, Windows 7 Home Premimum 64 bit Intel Core i7 Q720 @1.60GHz Pavilion dv8t - 1200 Notebook PC The reader worked fine for the first few months/year, however it then only started working for signing in & occasionaly for sites & gTalk. I was cool w
-
i am doing day report. it should show the details of empname and amount every day. I am using the below query .. select a.Extra_Amount,a.Emp_Name,to_date(b.days,'DD-MM-YYYY') from (select api1.invoice_type_lookup_code , api1.invoice_num
-
Disjointed slices, creating expandable site
This is my first time using DW and am learning as I go along. I imported my slices/html file from Photoshop. Everything looked great until I began trying to make the site expandable vertically to accommodate an auto-expanding content area. Bars that
-
My screen no longer turns off when idol.
My screen won't turn off after idol period. Set for 2 minutes but stays on unless I turn it of manually. Any suggestion?