Re: Problems with gcc

2008-07-17 Thread E. Rens
I think my gcc problem is partly solved. It seems related to time_t
which doesn't behave on amd64 as on i386 (where it was a double). I
don't know yet how to cope with this but there must be a solution, there
is a lot of concern about time_t and amd64 on the web. If you have a
quick answer to this question too, don't hesitate to talk to me!

For the installation and removal of gcc-4.3 base I still can't figure
out what to do, but if compilation is possible, I feel less annoyed yet.

Thank you again,

Emmanuel



  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-17 Thread Lennart Sorensen
On Wed, Jul 16, 2008 at 11:56:46PM +0200, E. Rens wrote:
 When I realized that I couldn't run compiled programs I decided to
 remove all the versions of gcc I had (3.4, 4.1, 4.3) to reinstall them
 from the mirror (ftp://ftp.fr.debian.org/debian/ lenny main contrib --
 changing it later to the main didn't improve the situation) running
 apt-get clean, then:
 # sudo apt-get remove gcc-4.3 gcc-4.3-base   
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:
 
 The following packages have unmet dependencies:
   libgcc1: Depends: gcc-4.3-base (= 4.3.1-2) but it is not going to be
   installed
 E: Broken packages
 
 After that,trying to remove libgcc1 (just to see) I got :
  
 The following packages have unmet dependencies:
   libc6: Depends: libgcc1 but it is not going to be installed
 E: Broken packages
 
 I can only reinstall these 2 packages but not remove them. Trying to
 remove libc6 (also for testing) brings up an awful list of software,
 among them essential ones that wouldn't leave my system usable, but at
 least it is removable.

libc6, libgcc1 and hence gcc-4.3-base are required packages.  You can
replace them, but not remove them.

Still there may not actually be a problem.

You could install the apt-show-versions tool and run it, and see if it
lists anything as not uptodate or such, including 'newer than version in
archive' which would tend to indicate something from sid or elsewhere.
If everything is simply up to date then there is nothing currently
incorrect installed, and anything that doesn't work is either a bug or a
user error.

I can't actually remember what the problem started out as anymore.

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-17 Thread Lennart Sorensen
On Thu, Jul 17, 2008 at 11:35:52AM +0200, E. Rens wrote:
 I think my gcc problem is partly solved. It seems related to time_t
 which doesn't behave on amd64 as on i386 (where it was a double). I
 don't know yet how to cope with this but there must be a solution, there
 is a lot of concern about time_t and amd64 on the web. If you have a
 quick answer to this question too, don't hesitate to talk to me!
 
 For the installation and removal of gcc-4.3 base I still can't figure
 out what to do, but if compilation is possible, I feel less annoyed yet.

Well making code 64bit clean takes work in some cases where people made
(incorrect) assumptions about types which just happened to work.

time_t is __TIME_T_TYPE which is __SLONGWORD_TYPE which is 'long int'
which is 32bit on some systems and 64bit on others I believe.  As long
as the code ALWAYS uses time_t when working on time values, that is no
problem.

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-16 Thread Lennart Sorensen
On Wed, Jul 16, 2008 at 04:19:05PM +0200, E. Rens wrote:
 Following our discussion in the EM64T compiling options thread I tried
 to recompile some simple programs with gcc in order to test openmp.
 The openmp hello world program went very well, however I cant run my
 own programs (with or without openmp). The compilation goes without
 problem but running the programs output lots of messages like:
 
 19201: binding file ./simpleset [0] to /lib/libc.so.6 [0]: normal
 symbol `malloc' or:
  17186: symbol=fprintf;  lookup in file=./simpleset [0]
 
 This is followed by the normal output PLUS a segmentation fault. But not
 all the time, sometimes the same program (not even recompiled) executes
 without any error. 
 I tried to remove and reinstall all the gcc packages but gcc-base-4.3
 refuses to be removed:
 
 # sudo apt-get remove gcc-4.3-base 
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 Since you only requested a single operation it is extremely likely that
 the package is simply not installable and a bug report against
 that package should be filed.
 The following information may help to resolve the situation:
 The following packages have unmet dependencies:
   libgcc1: Depends: gcc-4.3-base (= 4.3.1-2) but it is not going to be
   installed
 E: Broken packages
 
 I reinstalled it and also glibc, libgcc1, I finally installed gcc-4.2,
 but the problem remained, worse with gcc-3.4 whose compilations segfault
 immediately. I think I'll make a chroot environment in the future but I
 can't let my system in such a state anyway and I really don't know what
 to do. Any help highly welcome!

Try 'apt-get -f install' that will try to get the packages into a sane
state again.

Not sure what you did but you manged to install libgcc1 that requries
gcc 4.3 but not have gcc-4.3-base installed.  So the answer is either
install gcc-4.3-base or go back to an older libgcc1 that you do have the
requirements for.

Be very careful since removing libgcc1 will likely make your system
unusable so don't do that.  Either install an older version (apt-get
install libgcc1=someversionnumber), or install the required gcc-4.3-base
package.

'apt-cache show libgcc1 |grep Version' can get you a list of what
versions you have to choose between.

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-16 Thread E. Rens
On Wed, 16 Jul 2008 10:48:42 -0400, Lennart Sorensen
[EMAIL PROTECTED] said:

 Try 'apt-get -f install' that will try to get the packages into a sane
 state again.

# aget -f install
Reading package lists... Done
Building dependency tree   
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 
 Not sure what you did but you manged to install libgcc1 that requries
 gcc 4.3 but not have gcc-4.3-base installed.  So the answer is either
 install gcc-4.3-base or go back to an older libgcc1 that you do have the
 requirements for.

I first installed etch when I installed the whole system and then
upgraded to lenny.
gcc-4.3-base is installed, but I can't remove it, because of libgcc1:

...
The following packages have unmet dependencies:
  libgcc1: Depends: gcc-4.3-base (= 4.3.1-2) but it is not going to be
  installed
E: Broken packages

 Be very careful since removing libgcc1 will likely make your system
 unusable so don't do that.  Either install an older version (apt-get
 install libgcc1=someversionnumber), or install the required gcc-4.3-base
 package.
 
 'apt-cache show libgcc1 |grep Version' can get you a list of what
 versions you have to choose between.

# apt-cache show gcc |grep Version
Version: 4:4.3.1-1

# apt-cache show libgcc1 |grep Version
Version: 1:4.3.1-2

it seems libgcc1 4.3.1-2 doesn't like gcc-base 4.3.1-1, but there is no
way to have these version numbers match.

 -- 
 Len Sorensen
 

You can see a little output of my program at
http://rafb.net/p/izqIhT10.html where the correct is mixed with unwanted
verbose. Many thanks,
Emmanuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-16 Thread Lennart Sorensen
On Wed, Jul 16, 2008 at 05:29:20PM +0200, E. Rens wrote:
 On Wed, 16 Jul 2008 10:48:42 -0400, Lennart Sorensen
 [EMAIL PROTECTED] said:
 
  Try 'apt-get -f install' that will try to get the packages into a sane
  state again.
 
 # aget -f install
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
  
  Not sure what you did but you manged to install libgcc1 that requries
  gcc 4.3 but not have gcc-4.3-base installed.  So the answer is either
  install gcc-4.3-base or go back to an older libgcc1 that you do have the
  requirements for.
 
 I first installed etch when I installed the whole system and then
 upgraded to lenny.
 gcc-4.3-base is installed, but I can't remove it, because of libgcc1:
 
 ...
 The following packages have unmet dependencies:
   libgcc1: Depends: gcc-4.3-base (= 4.3.1-2) but it is not going to be
   installed
 E: Broken packages
 
  Be very careful since removing libgcc1 will likely make your system
  unusable so don't do that.  Either install an older version (apt-get
  install libgcc1=someversionnumber), or install the required gcc-4.3-base
  package.
  
  'apt-cache show libgcc1 |grep Version' can get you a list of what
  versions you have to choose between.
 
 # apt-cache show gcc |grep Version
 Version: 4:4.3.1-1
 
 # apt-cache show libgcc1 |grep Version
 Version: 1:4.3.1-2
 
 it seems libgcc1 4.3.1-2 doesn't like gcc-base 4.3.1-1, but there is no
 way to have these version numbers match.

Do apt-get update.

According to packages.debian.org/gcc-3.4-base the current version in
lenny is in fact 4.3.1-2 so if you don't see that either you are using a
bad mirror, or you didn't run apt-get update recently.

gcc is not gcc-4.3-base.

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-16 Thread E. Rens

On Wed, 16 Jul 2008 13:17:47 -0400, Lennart Sorensen
[EMAIL PROTECTED] said:
 
 Do apt-get update.
 
 According to packages.debian.org/gcc-3.4-base the current version in
 lenny is in fact 4.3.1-2 so if you don't see that either you are using a
 bad mirror, or you didn't run apt-get update recently.
 
 gcc is not gcc-4.3-base.

right! and my gcc-4.3-base matches libgcc1

 Len Sorensen

how could I put my system back in the original state without
reinstalling from scratch?

Emmanuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-16 Thread Lennart Sorensen
On Wed, Jul 16, 2008 at 07:39:45PM +0200, E. Rens wrote:
 right! and my gcc-4.3-base matches libgcc1
 
 how could I put my system back in the original state without
 reinstalling from scratch?

But you had an error saying libgcc1 required a specific gcc-4.3-base
which made it look like it was missing.

What was the command you ran to get that error then?

Of course fi 'apt-get -f install' says nothing is wrong then I guess it
is in the correct state as far as lenny is concerned (which doesn't mean
lenny isn't potentially broken although it usually isn't).

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems with gcc

2008-07-16 Thread E. Rens
On Wed, 16 Jul 2008 14:53:32 -0400, Lennart Sorensen
[EMAIL PROTECTED] said:
 But you had an error saying libgcc1 required a specific gcc-4.3-base
 which made it look like it was missing.
 
 What was the command you ran to get that error then?

When I realized that I couldn't run compiled programs I decided to
remove all the versions of gcc I had (3.4, 4.1, 4.3) to reinstall them
from the mirror (ftp://ftp.fr.debian.org/debian/ lenny main contrib --
changing it later to the main didn't improve the situation) running
apt-get clean, then:
# sudo apt-get remove gcc-4.3 gcc-4.3-base   
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libgcc1: Depends: gcc-4.3-base (= 4.3.1-2) but it is not going to be
  installed
E: Broken packages

After that,trying to remove libgcc1 (just to see) I got :
 
The following packages have unmet dependencies:
  libc6: Depends: libgcc1 but it is not going to be installed
E: Broken packages

I can only reinstall these 2 packages but not remove them. Trying to
remove libc6 (also for testing) brings up an awful list of software,
among them essential ones that wouldn't leave my system usable, but at
least it is removable.

 -- 
 Len Sorensen

I think I'm feeling depressed!  

Emmanuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problems installing gcc-3.4

2004-09-29 Thread Thomas J. Zeeman

Hi,

 Another problem I have now, with gcc-3.4 installed, is that I can't
 install the nvidia drivers. I have downloaded the .run package and tried
 with ./NVIDIA --kernel-source-path /usr/src/kernel-source-2.6.8 but it
 complains about cc version. Apperently the kernel is compiled with another
 version so how do get around this problem?

I had the same problem. I (temporarily) downgraded the kernel to 2.6.7

You can also opt to compile the nVidia-module with gcc 3.4. The default
for cc is gcc 3.3 and as of 2.6.8-4 the AMD64 kernel is compiled with gcc
3.4 thus causing a mismatch, I think.

regards,
Thomas




RE: Problems installing gcc-3.4

2004-09-29 Thread Johan Groth
Title: Re: Problems installing gcc-3.4






Yes I know it is 
possible to compile with gcc-3.4 but I don't know how. I read somewhere (don't 
remember where though) how this is done but can't for my life remember 
how.

/Johan



From: Thomas J. Zeeman 
[mailto:[EMAIL PROTECTED]Sent: Wed 29/09/2004 10:19To: 
Johan GrothCc: debian-amd64@lists.debian.orgSubject: Re: 
Problems installing gcc-3.4

Hi, Another problem I have now, with gcc-3.4 
installed, is that I can't install the nvidia drivers. I have downloaded 
the .run package and tried with ./NVIDIA --kernel-source-path 
/usr/src/kernel-source-2.6.8 but it complains about cc version. 
Apperently the kernel is compiled with another version so how do get 
around this problem?I had the same problem. I (temporarily) downgraded 
the kernel to 2.6.7You can also opt to compile the nVidia-module with 
gcc 3.4. The defaultfor cc is gcc 3.3 and as of 2.6.8-4 the AMD64 kernel is 
compiled with gcc3.4 thus causing a mismatch, I 
think.regards,Thomas




RE: Problems installing gcc-3.4

2004-09-29 Thread Thomas J. Zeeman

Hi,

 Yes I know it is possible to compile with gcc-3.4 but I don't know how. I
 read somewhere (don't remember where though) how this is done but can't
 for my life remember how.

This should do the trick:

export CC=/path/to/gcc-3.4; ./nvidiainstaller

Given that you are using bash and are in the directory where
nvidiainstaller resides of course.

regards,
Thomas




Re: Problems installing gcc-3.4

2004-09-29 Thread Frederik Schueler
Hi,

please have a look at

http://lists.debian.org/debian-amd64/2004/09/msg00288.html

On Wed, Sep 29, 2004 at 11:06:19AM +0200, Johan Groth wrote:
 Another problem I have now, with gcc-3.4 installed, is that I can't install 
 the nvidia drivers. I have downloaded the .run package and tried with 
 ./NVIDIA --kernel-source-path /usr/src/kernel-source-2.6.8 but it 
 complains about cc version. Apperently the kernel is compiled with another 
 version so how do get around this problem?

Greetings
Frederik Schueler

-- 
ENOSIG