Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] C compiling error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Tue May 08, 2007 2:49 pm    Post subject: [SOLVED] C compiling error Reply with quote

I'm currently programming in c. I compile using GCC 4.1.1. I get errors when compiling not related to my program:

Code:

raph@mastahome ~/epfl/eclipse/RSA $ gcc -Wall -ansi main.c -o main.o
In file included from /usr/include/stdio.h:34,
                 from main.c:31:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from main.c:31:
/usr/include/gconv.h:72: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:88: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:97: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before 'size_t'
In file included from /usr/include/stdio.h:72,
                 from main.c:31:
/usr/include/libio.h:328: error: expected specifier-qualifier-list before 'size_t'
/usr/include/libio.h:360: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:369: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:485: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from main.c:31:
/usr/include/stdio.h:306: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:608: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/usr/include/stdio.h:614: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
In file included from main.c:32:
/usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ctype_get_mb_cur_max'
/usr/include/stdlib.h:589: error: expected ')' before '__size'
/usr/include/stdlib.h:591: error: expected ')' before '__nmemb'
/usr/include/stdlib.h:600: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:782: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:874: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:878: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:885: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mbstowcs'
/usr/include/stdlib.h:888: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstombs'
In file included from main.c:33:
/usr/include/string.h:39: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:43: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:59: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:62: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:66: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:88: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:96: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:102: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm'
/usr/include/string.h:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
/usr/include/string.h:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
/usr/include/string.h:242: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
/usr/include/string.h:288: error: expected declaration specifiers or '...' before 'size_t'
In file included from main.c:35:
/usr/include/time.h:200: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strftime'
main.c: In function 'main':
main.c:77: warning: implicit declaration of function 'malloc'
main.c:77: warning: incompatible implicit declaration of built-in function 'malloc'
main.c:87: warning: this decimal constant is unsigned only in ISO C90
main.c:88: warning: this decimal constant is unsigned only in ISO C90
main.c:90: warning: this decimal constant is unsigned only in ISO C90
main.c:111: warning: this decimal constant is unsigned only in ISO C90
main.c:54: warning: unused variable 'rand3'
main.c: In function 'creat_random':
main.c:164: warning: incompatible implicit declaration of built-in function 'malloc'
main.c: In function 'big_add':
main.c:192: warning: incompatible implicit declaration of built-in function 'malloc'
main.c:209: error: too many arguments to function 'realloc'
main.c: In function 'big_sub':
main.c:244: warning: incompatible implicit declaration of built-in function 'malloc'
main.c: In function 'big_mult':
main.c:303: warning: implicit declaration of function 'calloc'
main.c:303: warning: incompatible implicit declaration of built-in function 'calloc'
main.c:325: warning: integer constant is too large for 'long' type
main.c:330: warning: integer constant is too large for 'long' type
main.c:332:13: warning: integer constant is too large for its type
main.c: In function 'montgomery_rep':
main.c:466: warning: incompatible implicit declaration of built-in function 'calloc'
main.c: In function 'multiply_mont':
main.c:539: warning: incompatible implicit declaration of built-in function 'calloc'
main.c: In function 'exponention_mont':
main.c:610: warning: incompatible implicit declaration of built-in function 'malloc'
main.c: In function 'montgomery_bootstrap':
main.c:652: warning: incompatible implicit declaration of built-in function 'calloc'
main.c:650: warning: unused variable 'tempsize'
main.c:650: warning: unused variable 'k'


It was working properly a few days ago last time I worked on this. Only thing I remember updating is glibc to version 2.5-r2. Any ideas how I could get this working again?


Last edited by NewB on Fri May 11, 2007 8:57 am; edited 1 time in total
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Tue May 08, 2007 3:54 pm    Post subject: Reply with quote

including stddef.h reduces the error message... but it's still not working.

here is what I include:

Code:

#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>


the error message is now:

Code:

raph@mastahome ~/epfl/eclipse/RSA $ gcc -Wall -ansi main.c -o main.o
In file included from main.c:37:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/stddef.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
main.c: In function 'main':
main.c:66: warning: implicit declaration of function 'time'
main.c:91: warning: this decimal constant is unsigned only in ISO C90
main.c:92: warning: this decimal constant is unsigned only in ISO C90
main.c:94: warning: this decimal constant is unsigned only in ISO C90
main.c:115: warning: this decimal constant is unsigned only in ISO C90
main.c:58: warning: unused variable 'rand3'
main.c: In function 'big_mult':
main.c:323: warning: implicit declaration of function 'pow'
main.c:323: warning: incompatible implicit declaration of built-in function 'pow'
main.c:329: warning: integer constant is too large for 'long' type
main.c:334: warning: integer constant is too large for 'long' type
main.c:336:13: warning: integer constant is too large for its type
main.c: In function 'montgomery_rep':
main.c:463: warning: incompatible implicit declaration of built-in function 'pow'
main.c: In function 'multiply_mont':
main.c:558: warning: incompatible implicit declaration of built-in function 'pow'
main.c: In function 'montgomery_bootstrap':
main.c:661: warning: incompatible implicit declaration of built-in function 'pow'
main.c:654: warning: unused variable 'tempsize'
main.c:654: warning: unused variable 'k'
Back to top
View user's profile Send private message
tboloo
Guru
Guru


Joined: 20 Jan 2006
Posts: 403
Location: Grodzisq, Poland

PostPosted: Tue May 08, 2007 4:35 pm    Post subject: Reply with quote

Maybe if you show the code I'd be able to help, coz you see my crystal ball stopped working somehow ... :)
_________________
The clock is ticking, brothers and sisters, counting down to Armageddon.
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Tue May 08, 2007 4:44 pm    Post subject: Reply with quote

hehe sry... yeah maybe it will help:
Code:

.....



I didn't put all the code (it's quite long and really messy)... but actually I don't think it's related to my code...

EDIT: code complete now


Last edited by NewB on Fri May 11, 2007 9:00 am; edited 4 times in total
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Tue May 08, 2007 5:58 pm    Post subject: Re: C compiling error Reply with quote

NewB wrote:

It was working properly a few days ago last time I worked on this. Only thing I remember updating is glibc to version 2.5-r2. Any ideas how I could get this working again?


Your main.c compiles fine for me. When updating toolchain components (glibc, gcc, binutils, linux-headers) it is generally
a good idea to re-compile all of them to make sure everything is in sync.
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Tue May 08, 2007 9:00 pm    Post subject: Reply with quote

just finished an "emerge glibc gcc binutils linux-headers", gcc is set to 4.1.2 and binutils to 2.17.50.0.15. It didn't help... I still get the same error!
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Tue May 08, 2007 10:13 pm    Post subject: Reply with quote

NewB wrote:
just finished an "emerge glibc gcc binutils linux-headers", gcc is set to 4.1.2 and binutils to 2.17.50.0.15. It didn't help... I still get the same error!


Could you please

1) Post your emerge --info
2) Peak at and around line 152/214 of stddef.h and check if anything looks odd;
3) Compile a bare bones hello_world.c that includes stddef.h and see if that
works.

Thanks :)
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Wed May 09, 2007 5:33 am    Post subject: Reply with quote

emerge --info:

Quote:

Portage 2.1.2.6 (!../usr/local/overlays/emission/profiles/default-linux/x86/emission-2006.0, gcc-4.1.2, glibc-2.5-r2, 2.6.21-viper1 i686)
=================================================================
System uname: 2.6.21-viper1 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 08 May 2007 14:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17.50.0.6, 2.17.50.0.15
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -fweb -frename-registers -fgcse-after-reload"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -fweb -frename-registers -fgcse-after-reload"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch "
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,-znow"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/xeffects-experimental /usr/portage/local/layman/xeffects /usr/local/portage /usr/local/overlays/toolchain_overlay /usr/local/overlays/emission /usr/local/overlays/kernels_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi aiglx alsa avi berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus divx dri dts dvd dvdr dvdread eds emboss encode esd evdev fam firefox fortran gdbm gif glibc-omitfp glitz gmedia gnome gpm gtk gtk2 hal iconv ipv6 isdnlog java jpeg ldap libg++ mad matroska midi mikmod mmx mp3 mpeg musepack ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre pdf pdflib perl png ppds pppd python quicktime readline realmedia reflection sdl session spell spl sse sse2 ssl svg symlink synaptics tcpd tetex truetype truetype-fonts type1-fonts unicode vcd vidix vorbis win32codecs wma wmp x86 xml xorg xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Hello world program compiles fine and works fine (no warning, no errors, nothing).

stddef.h (line 149-220):

Code:

#ifndef __PTRDIFF_TYPE__
#define __PTRDIFF_TYPE__ long int
#endif
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#endif /* _GCC_PTRDIFF_T */
#endif /* ___int_ptrdiff_t_h */
#endif /* _BSD_PTRDIFF_T_ */
#endif /* _PTRDIFF_T_ */
#endif /* __PTRDIFF_T */
#endif /* _T_PTRDIFF */
#endif /* _T_PTRDIFF_ */
#endif /* _PTRDIFF_T */

/* If this symbol has done its job, get rid of it.  */
#undef   __need_ptrdiff_t

#endif /* _STDDEF_H or __need_ptrdiff_t.  */

/* Unsigned type of `sizeof' something.  */

/* Define this type if we are doing the whole job,
   or if we want this type in particular.  */
#if defined (_STDDEF_H) || defined (__need_size_t)
#ifndef __size_t__   /* BeOS */
#ifndef __SIZE_T__   /* Cray Unicos/Mk */
#ifndef _SIZE_T   /* in case <sys/types.h> has defined it. */
#ifndef _SYS_SIZE_T_H
#ifndef _T_SIZE_
#ifndef _T_SIZE
#ifndef __SIZE_T
#ifndef _SIZE_T_
#ifndef _BSD_SIZE_T_
#ifndef _SIZE_T_DEFINED_
#ifndef _SIZE_T_DEFINED
#ifndef _BSD_SIZE_T_DEFINED_   /* Darwin */
#ifndef _SIZE_T_DECLARED   /* FreeBSD 5 */
#ifndef ___int_size_t_h
#ifndef _GCC_SIZE_T
#ifndef _SIZET_
#ifndef __size_t
#define __size_t__   /* BeOS */
#define __SIZE_T__   /* Cray Unicos/Mk */
#define _SIZE_T
#define _SYS_SIZE_T_H
#define _T_SIZE_
#define _T_SIZE
#define __SIZE_T
#define _SIZE_T_
#define _BSD_SIZE_T_
#define _SIZE_T_DEFINED_
#define _SIZE_T_DEFINED
#define _BSD_SIZE_T_DEFINED_   /* Darwin */
#define _SIZE_T_DECLARED   /* FreeBSD 5 */
#define ___int_size_t_h
#define _GCC_SIZE_T
#define _SIZET_
#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
/* __size_t is a typedef on FreeBSD 5!, must not trash it. */
#else
#define __size_t
#endif
#ifndef __SIZE_TYPE__
#define __SIZE_TYPE__ long unsigned int
#endif
#if !(defined (__GNUG__) && defined (size_t))
typedef __SIZE_TYPE__ size_t;
#ifdef __BEOS__
typedef long ssize_t;
#endif /* __BEOS__ */
#endif /* !(defined (__GNUG__) && defined (size_t)) */
#endif /* __size_t */
#endif /* _SIZET_ */


I don't get it.... thanks for your help...
Back to top
View user's profile Send private message
basvanlola
n00b
n00b


Joined: 10 Oct 2004
Posts: 52
Location: Eefde, The Netherlands

PostPosted: Wed May 09, 2007 10:05 am    Post subject: Reply with quote

The code you posted doesn't even compile:
Code:

compyx@localhost ~ $ gcc -ansi -pedantic -Wall -Wextra -O2 -g -lm foo.c
foo.c: In function 'main':
foo.c:58: warning: this decimal constant is unsigned only in ISO C90
foo.c:59: warning: this decimal constant is unsigned only in ISO C90
foo.c:61: warning: this decimal constant is unsigned only in ISO C90
foo.c:82: warning: this decimal constant is unsigned only in ISO C90
foo.c:25: warning: unused variable 'rand3'
foo.c:23: warning: unused parameter 'argc'
foo.c:23: warning: unused parameter 'argv'
foo.c: In function 'montgomery_bootstrap':
foo.c:211: warning: ISO C90 forbids mixed declarations and code
foo.c:243: warning: comparison between signed and unsigned
foo.c:213: warning: unused variable 'tempsize'
foo.c:213: warning: unused variable 'k'
foo.c:243: warning: 'mask' is used uninitialized in this function
foo.c:213: warning: 'carry' may be used uninitialized in this function
/tmp/cc6cpqju.o: In function `montgomery_bootstrap':
/home/compyx/foo.c:233: undefined reference to `big_sub'
/tmp/cc6cpqju.o: In function `main':
/home/compyx/foo.c:97: undefined reference to `inverse_modB'
/home/compyx/foo.c:104: undefined reference to `montgomery_rep'
/home/compyx/foo.c:105: undefined reference to `montgomery_rep'
/home/compyx/foo.c:106: undefined reference to `big_mult'
/home/compyx/foo.c:107: undefined reference to `montgomery_rep'
/home/compyx/foo.c:110: undefined reference to `multiply_mont'
/home/compyx/foo.c:113: undefined reference to `exponention_mont'
collect2: ld returned 1 exit status


Please post the entire code, the error messages you get are probably related to a missing semi-colon in your prototypes. But without seeing the actual code, who knows?

BTW: check each and every return value of malloc(), don't assume malloc always succeeds.
_________________
Athlon-XP 2000 @ 2083MHz
Asus A7V8X-X
1 GB DDR-333 ram
nVidia Geforce FX-5500
120 GB Maxtor 6Y120P0
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed May 09, 2007 1:30 pm    Post subject: Reply with quote

basvanlola wrote:
The code you posted doesn't even compile:
compyx@localhost ~ $ gcc -ansi -pedantic -Wall -Wextra -O2 -g -lm foo.c
BTW: check each and every return value of malloc(), don't assume malloc always succeeds.


Agreed, but if I understood NewB correctly his problem occurs by compiling main.c
as posted (no linking). In this case I don't see it being a problem with prototypes
but then again, I didn't have my morning cup of coffee yet ;)

I am not too fond of "-fweb -frename-registers -fgcse-after-reload" in your CFLAGS, but
I am not sure if it is related to your problem at all. Hard to tell.
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Wed May 09, 2007 3:33 pm    Post subject: Reply with quote

The code is complete now (see EDIT above). My CFLAGS are the same since the install of the system (over a year ago), never had a problem with that. But I check by removing them!

EDIT:
Here is what I get by commenting out the "unusual" CFLAGS:

Code:

raph@mastahome ~/epfl/eclipse/RSA $ gcc -Wall -ansi main.c -o main.o
In file included from main.c:30:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/stddef.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
main.c: In function 'big_mult':
main.c:325: warning: integer constant is too large for 'long' type
main.c:330: warning: integer constant is too large for 'long' type
main.c:332:13: warning: integer constant is too large for its type
main.c: In function 'montgomery_bootstrap':
main.c:753: warning: control reaches end of non-void function


Still this error...
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Thu May 10, 2007 9:49 am    Post subject: Reply with quote

Would it maybe help if I reemerge system or something like this? I really need a hand on this... thanks
Back to top
View user's profile Send private message
jlh
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2007
Posts: 145
Location: Switzerland::Zürich

PostPosted: Thu May 10, 2007 10:32 am    Post subject: Reply with quote

As mentioned, the entire, compilable source would help. Nobody can try to reproduce the problem with only fragments of the code.

You can try to have a look at the preprocessed source by running "gcc -Wall -ansi main.c -E -o main.i" and then look at the file main.i for the error. (Or put that file somewhere where we can see it, but note that it might be a bit long for posting on the forum).

Edit: Disregard the following, I see you already tried 4.1.1 in the first post. Finally, I see that gcc-4.1.1-r3 is the latest stable gcc, so I guess 4.1.2 is masked. Did you try the latest stable version? Maybe it's a problem with 4.1.2.
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Thu May 10, 2007 12:00 pm    Post subject: Reply with quote

The code is complete (check above I updated it when it was asked for it). And any ideas where I could post this main.i? Unfortunately I don't have any web page...

I check this morning on an other computer and the posted code compiled fine.

I switched back to gcc 4.1.1 (using gcc-config) but no changes comparing to gcc 4.1.2. I try now to reemerge gcc 4.1.1 (and not 4.1.2 as before), but I must say I don't have much hope with this :-(


Last edited by NewB on Fri May 11, 2007 9:00 am; edited 2 times in total
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Thu May 10, 2007 2:00 pm    Post subject: Reply with quote

As expected no change after new install of gcc 4.1.1-r3. Running now a "emerge -e system"...

EDIT: the "emerge -e system" solved the problem... but I still have no idea which package was wrong...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum