hi,
i am using gentoo and have installed code::blocks. i also have installed gcc (GCC) 4.2.0 and GNU gdb 6.6
now i've created an new project an would test the "hello world" code but there is my problem, i couldn't build it beacuase of the following error:
-------------- Build: Debug in test ---------------
WARNING: Can't read file's timestamp: /home/unknown/coding/test/main.c
Linking console executable: bin/Debug/test
g++: obj/Debug/main.o: No such file or directory
g++: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
what am i doin wrong?
thx4help!
sorry for my bad english (please correct me if i'am wrong with it) i'am still learning :)
GCC 4.2 series has a bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32328) when using -O2 optimization, which causes C::B's depslib component to be miscompiled. For a workaround, use -O2 -fno-strict-aliasing.
sry but i don'T have any optimmizationflags enabled. i've just installed codeblocks and tested it with the named result..
i've checked all compileroptions but no optimization is enabled
any other idea?
I'm also using Gentoo and GCC 4.2.0, and the same thing happened to me a few weeks ago. What I can't understand is why the "force compilation if can't read timestamp but file exists" code isn't working for others.
When I separated that code (depslib) to find the reason why it wasn't working, it worked fine. I tried with Code::Blocks once again, and it worked fine too.
Try uninstalling Code::Blocks, cleaning (delete object files and pch) and building again.
where coul'd i find the
Quote"force compilation if can't read timestamp but file exists"
option?
and what is
Quotedepslib
?
i've allready uninstalled codeblocks and even if i make a new project the error still exists :(
is there any option i have (unknown) activated?
i could compile the code without problems in the shell
gcc main.c but not with CB
thx
"force compilation if can't read timestamp but file exists" is _NOT_ an option, it's in the compiler plugin's code. If it's not forcing a compilation then wxFileExists is failing (returning false), which is even more intriguing.
depslib is the library the compiler plugin uses to get the timestamp, and I suppose it checks all dependencies too.
Try compiling Code::Blocks adding the -fno-strict-aliasing flag and see if that solves the problem.
i have created the /etc/portage/package.use and added the following line: dev-util/codeblocks -fno-strict-aliasing and after deleting the .codeblocks directory in my homefolder and the projects and unmerging codeblocks i recompiled it! but i still have the problem!
my make.conf has the following lines:
USE="X alsa cdr crypt dri doc dvd encode gif gtk java javascript jpeg jpeg2k nvidia opengl qt3 sse sse2 ssl"
CFLAGS="-march=pentium4 -O3 -pipe"
maybe there is a problem....
or have i understood anything wrong?
Remove the line you added to /etc/portage/package.use, it's of no use there.
Try this in a shell:
CFLAGS="-march=pentium4 -O3 -pipe -fno-strict-aliasing" emerge codeblocks
Or, if you want, modify /etc/make.conf so it includes -fno-strict-aliasing in CFLAGS.
yeah!!!!!! it works!!!!!!! great!!!!!! :lol:
thx for your help
edit:
only one question more: can i set this flags specific to this package, so that will work even after an update world?
Quote from: UnknownArtists on August 27, 2007, 07:06:55 PM
yeah!!!!!! it works!!!!!!! great!!!!!! :lol:
thx for your help
edit:
only one question more: can i set this flags specific to this package, so that will work even after an update world?
Check this link (http://gentoo-wiki.com/CflagsExceptions).
I am getting this same error. Recompiling with -fno-strict-aliasing does not fix it. I am building the latest version from svn.
Ideas?
-kcbanner