Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Infinite loop while compiling cdrtools with Gcc3.2?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Mon Aug 05, 2002 7:29 pm    Post subject: Infinite loop while compiling cdrtools with Gcc3.2? Reply with quote

According to Douglas Adams, the easiest way to confuse a computer, is to trick it into doing the same thing over and over again. Well, my box must be really confused. I just can't seem to get cdrtools to compile, it doesn't fail, it just gets stuck in a loop. I've tried taking out all my crazy optimizations and making it just -march=athlon-tbird -O3 -pipe, I've even tried taking it all the way down to -march=i386 -O3 -pipe, and it still gets stuck.

Here's my specs:
Athlon Tbird 1.2@1.32 (setting back to default clock speed doesn't help)
Jetway 663/ASpro Via KT133 chipset
384MBs of PC133 RAM
SB Live!
Nvidia Geforce4 Ti4200 128MB
HP 9100i cdwriter
All on Gentoo 1.3b with GCC3.2.

If anyone's got any ideas, they'd be very appreciated. Here's what it looks like where it gets stuck.
Code:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for _oss_ioctl in -lossaudio... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for sys/cdio.h... (cached) no
checking for sundev/srreg.h... (cached) no
checking for sys/audioio.h... (cached) no
checking for sun/audioio.h... (cached) no
checking for soundcard.h... (cached) no
checking for sys/soundcard.h... (cached) yes
checking for linux/soundcard.h... (cached) yes
checking for machine/soundcard.h... (cached) no
checking for strtoul... (cached) yes
creating ./config.status
creating local.cnf
creating lconfig.h
lconfig.h is unchanged
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/ioctl.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cdr.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cmds.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/toc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/cdda2wav.d"
make[1]: Leaving directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: Entering directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: *** Warning: File `ioctl.c' has modification time in the future (2002-07-10 09:17:12 > 2002-07-05 12:36:08)
        ==> CONFIGURING LOCAL RULES "OBJ/x86-linux-cc/local.cnf"
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for _oss_ioctl in -lossaudio... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for sys/cdio.h... (cached) no
checking for sundev/srreg.h... (cached) no
checking for sys/audioio.h... (cached) no
checking for sun/audioio.h... (cached) no
checking for soundcard.h... (cached) no
checking for sys/soundcard.h... (cached) yes
checking for linux/soundcard.h... (cached) yes
checking for machine/soundcard.h... (cached) no
checking for strtoul... (cached) yes
creating ./config.status
creating local.cnf
creating lconfig.h
lconfig.h is unchanged
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/ioctl.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cdr.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cmds.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/toc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/cdda2wav.d"
make[1]: Leaving directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: Entering directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: *** Warning: File `ioctl.c' has modification time in the future (2002-07-10 09:17:12 > 2002-07-05 12:36:09)
        ==> CONFIGURING LOCAL RULES "OBJ/x86-linux-cc/local.cnf"
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for _oss_ioctl in -lossaudio... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for sys/cdio.h... (cached) no
checking for sundev/srreg.h... (cached) no
checking for sys/audioio.h... (cached) no
checking for sun/audioio.h... (cached) no
checking for soundcard.h... (cached) no
checking for sys/soundcard.h... (cached) yes
checking for linux/soundcard.h... (cached) yes
checking for machine/soundcard.h... (cached) no
checking for strtoul... (cached) yes
creating ./config.status
creating local.cnf
creating lconfig.h
lconfig.h is unchanged
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/ioctl.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cdr.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cmds.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/toc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/cdda2wav.d"
make[1]: Leaving directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: Entering directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: *** Warning: File `ioctl.c' has modification time in the future (2002-07-10 09:17:12 > 2002-07-05 12:36:10)
        ==> CONFIGURING LOCAL RULES "OBJ/x86-linux-cc/local.cnf"
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for _oss_ioctl in -lossaudio... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for sys/cdio.h... (cached) no
checking for sundev/srreg.h... (cached) no
checking for sys/audioio.h... (cached) no
checking for sun/audioio.h... (cached) no
checking for soundcard.h... (cached) no
checking for sys/soundcard.h... (cached) yes
checking for linux/soundcard.h... (cached) yes
checking for machine/soundcard.h... (cached) no
checking for strtoul... (cached) yes
creating ./config.status
creating local.cnf
creating lconfig.h
lconfig.h is unchanged
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/ioctl.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cdr.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/scsi_cmds.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/toc.d"
        ==> MAKING DEPENDENCIES "OBJ/x86-linux-cc/cdda2wav.d"
make[1]: Leaving directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: Entering directory `/var/tmp/portage/cdrtools-1.11.28/work/cdrtools-1.11/cdda2wav'
make[1]: *** Warning: File `ioctl.c' has modification time in the future (2002-07-10 09:17:12 > 2002-07-05 12:36:11)
        ==> CONFIGURING LOCAL RULES "OBJ/x86-linux-cc/local.cnf"
Back to top
View user's profile Send private message
eric.cheminot
n00b
n00b


Joined: 03 Jul 2002
Posts: 47

PostPosted: Tue Aug 06, 2002 3:46 pm    Post subject: Reply with quote

Well, according to the recurrent warning in the output, it seems that you are facing a clock skew... hence the infinite loop (the generated files are always back the sources). Maybe you could try to del /etc/adjtime (or somthing like that cannot remember). Generally, it is not needed expect when your MB clock has a big drift when PC is powered off and, generally also, bad values are setted when installing notably if you change UTC to local time after first reboot.

Hope this can help.

-ec
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Tue Aug 06, 2002 9:11 pm    Post subject: Reply with quote

Actually, I finally got out of the loop by changing my cflags to -march=athlon-tbird -O2 -pipe. GToaster and all it's other dependencies built with my normal Cflags.
Back to top
View user's profile Send private message
eric.cheminot
n00b
n00b


Joined: 03 Jul 2002
Posts: 47

PostPosted: Wed Aug 07, 2002 6:47 am    Post subject: Reply with quote

Well, it works now, fine! I may be wrong but i'm quite sure this is not related to optimization flags (that would be a very strange side effect... but who knows?). I rather think that when you tried to compile and got the loop, your system date was wrong or something was wrong with configure cache.

Maybe you could try again with the optimization flags you really want, i would not be surprised it works again!

-ec
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Wed Aug 07, 2002 8:56 am    Post subject: Reply with quote

You're right it did build with all the optimizations, guess when I reset the time and date last night it fixed my problem. I wonder why cdrtools was so dependant on the date and time, since I built everything else with the wrong time... Oh well, so it goes.
Back to top
View user's profile Send private message
RayVan
n00b
n00b


Joined: 12 Aug 2002
Posts: 40
Location: Houston, Tx

PostPosted: Fri Aug 16, 2002 5:29 pm    Post subject: Reply with quote

paulisdead wrote:
You're right it did build with all the optimizations, guess when I reset the time and date last night it fixed my problem. I wonder why cdrtools was so dependant on the date and time, since I built everything else with the wrong time... Oh well, so it goes.


It's /make/ that depends on the date, when trying to figure out what needs to compile. Your date was probably prior to the timestamp on some file in cdrtools. The other packages were probably all older.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Aug 19, 2002 2:50 am    Post subject: Reply with quote

GCC3 to Other Things Gentoo. cdrtools are not necessarily GUI, and certainly aren't multimedia.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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