hello, I encounter a strange gcc behavior - it hangs ! this is not happening always. It can hang sometimes, and sometimes not, with the exact same source file and gcc command line. My command is simple, i use several -I parameters (include folders), -c and -o.. that's it.. gcc -I <folder1> -I <folder2> -I <folder3> -I <folder4> -I <folder5> -c -o folder6/output.o folder6/source.c
Attached is the end of the strace output, the last line just hangs.. (waitpid). my gcc version: $ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) any ideas ? thank you sunzir <snip> ... close(3) = 0 munmap(0xb7eed000, 4096) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=238336, ...}) = 0 mmap2(NULL, 238336, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d61000 close(3) = 0 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=25460, ...}) = 0 mmap2(NULL, 25460, PROT_READ, MAP_SHARED, 3, 0) = 0xb7ee7000 close(3) = 0 open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 close(3) = 0 open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0 mmap2(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ee6000 close(3) = 0 open("/usr/share/locale/en_US/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en_US/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT (No such file or directory) rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGINT, {0x804f8d0, [INT], SA_RESTART}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGHUP, {0x804f8d0, [HUP], SA_RESTART}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGTERM, {0x804f8d0, [TERM], SA_RESTART}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGPIPE, {0x804f8d0, [PIPE], SA_RESTART}, {SIG_IGN}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 access("/usr/local/sbin/gcc", X_OK) = -1 ENOENT (No such file or directory) access("/usr/local/bin/gcc", X_OK) = -1 ENOENT (No such file or directory) access("/usr/sbin/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=65536, ...}) = 0 lstat64("/usr/bin/gcc", {st_mode=S_IFLNK|0777, st_size=16, ...}) = 0 readlink("/usr/bin/gcc", "/usr/bin/gcc-4.1", 4096) = 16 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=65536, ...}) = 0 lstat64("/usr/bin/gcc-4.1", {st_mode=S_IFREG|0755, st_size=183904, ...}) = 0 access("/usr/local/sbin/gcc", X_OK) = -1 ENOENT (No such file or directory) access("/usr/local/bin/gcc", X_OK) = -1 ENOENT (No such file or directory) access("/usr/sbin/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=65536, ...}) = 0 lstat64("/usr/bin/gcc", {st_mode=S_IFLNK|0777, st_size=16, ...}) = 0 readlink("/usr/bin/gcc", "/usr/bin/gcc-4.1", 4096) = 16 lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=65536, ...}) = 0 lstat64("/usr/bin/gcc-4.1", {st_mode=S_IFREG|0755, st_size=183904, ...}) = 0 access("/usr/lib/gcc/i486-linux-gnu/4.1.2/", X_OK) = 0 access("/usr/lib/gcc/i486-linux-gnu/4.1.2/", X_OK) = 0 access("uart/bthal_uart.c", F_OK) = 0 access("/usr/lib/gcc/i486-linux-gnu/4.1.2/specs", R_OK) = -1 ENOENT (No such file or directory) access("/usr/lib/gcc/i486-linux-gnu/4.1.2/specs", R_OK) = -1 ENOENT (No such file or directory) access("/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/lib/i486-linux-gnu/4.1.2/specs", R_OK) = -1 ENOENT (No such file or directory) access("/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i486-linux-gnu/lib/specs", R_OK) = -1 ENOENT (No such file or directory) access("/usr/lib/gcc/i486-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory) access("/usr/lib/gcc/i486-linux-gnu/4.1.2/", X_OK) = 0 access("/tmp", R_OK|W_OK|X_OK) = 0 gettimeofday({1203241782, 490589}, NULL) = 0 getpid() = 25471 open("/tmp/ccNPhP4H.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3 close(3) = 0 stat64("/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1", {st_mode=S_IFREG|0755, st_size=5061332, ...}) = 0 access("/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1", X_OK) = 0 vfork() = 25472 waitpid(25472,