Old app recompiled with f77 failed but succeed with g77

hello all,
i need to recompile an old app written in fortran77, but it fails at the execution:
Starting nonmem execution ...
Note: IEEE floating-point exception flags raised:
    Inexact;  Underflow;  Invalid Operation;
See the Numerical Computation Guide, ieee_flags(3M) after generating a core, dbx tells me:
t@1 (l@1) program terminated by signal FPE (invalid floating point operation)
Current function is cels
  103         IF (ICAT.NE.0.AND.CTLW.GE.CTUP) THEN
(dbx) where
current thread: t@1
=>[1] cels(cnt = 0.0, p1 = ARRAY, p2 = ARRAY, ier1 = 0, ier2 = 0), line 103 in "CELS.f"
  [2] ncontr(cnt = 0.0, ier1 = 0, ier2 = 0, l2r = 0), line 329 in "NCONTR.f"
  [3] obj(o = -NaN.0), line 1636 in "OBJ.f"
  [4] zxmin1(funct = 0x80e8c10, nsig = 3, maxfn = 450, jopt = 0, w = ARRAY, opint = 5), line 222 in "ZXMIN1.f"
  [5] estim(ier = 0), line 156 in "ESTIM.f"
  [6] MAIN(), line 45 in "NONMEM.f"and:
(dbx) print ICAT
icat = 3
(dbx) print CTLW
ctlw = NaN
(dbx) print CTUP
ctup = -NaN.0what i don't understand is that the same sources compiled with g77 (2.95) works without problems. That is g77 is able to set ctlw and ctup correctly!?
Is there a flag in f77 to mimic the g77 behaviour?
here are the flags i'm using:
f77 -g -C -fnonstdthanks in advance for help,
gerard
Edited by: mister_g on 24 juin 2009 09:27

it seems that the problem is related to COMMON variables, as they are strangely declared, but as i said before, it's a "commercial" app, even if this is the responsibility of the customer to recompile it.
What we observed is that, before entering into a function, a variable decalred in a COMMON has a correct value, but in the function, it contains NaN. In the earlier releases, according to the official docs, developers used to use sun compiler, so my guess is that something has changed in Sun f77 since the old times?
i gave a try with old workshop WS6.u2, the program failed too, but i'm unable to generate a core or to tell the debugger to stop where the error occured:
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) catch
HUP INT QUIT ILL TRAP ABRT EMT FPE BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ WAITING LWP FREEZE THAW CANCEL LOST XRES 39 40 RTMIN RTMIN+1 RTMIN+2 RTMIN+3 RTMIN+4 RTMIN+5 RTMIN+6 RTMIN+7
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) run < FCON > REPORT5
Running: nonmem < FCON > REPORT5
(process id 25314)
Reading libc_psr.so.1
Note: IEEE floating-point exception traps enabled:
    overflow;  division by zero;  invalid operation;
Nonstandard floating-point mode enabled
See the Numerical Computation Guide, ieee_handler(3M), ieee_sun(3M)
execution completed, exit code is 0
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx) where
dbx: program is not active
(/opt/SUNWspro.old/bin/../WS6U2/bin/sparcv9/dbx)Thanks in advance for help,
gerard

Similar Messages

  • Fail to connect on Citrix with Limited User but succeeds with Admin user

    On one of our customer's installations which is on a Citrix server, the users cannot connect to the database when they are Limited users. But if the same user is promoted to Administrator it can connect.
    The Application uses ODP.Net to connect. Other tools in the installation that use ODBC works for limited users.
    The OracleConnection.Open method throws an exception without an error message.
    The stack trace is:
    at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
    at Oracle.DataAccess.Client.OracleConnection.Open()
    On the server we have installed Oracle Client 10.2.0.1 where the .Net provider also is installed (otherwise it would not work for the admin user either).
    Anyone who has a clue on why this strange behavior happens?
    / Nils

    That was a known issue in 10201, and should be resolved by patching the client up to 10204. You do that by applying the database patch to the client, and you can get the 10204 database patch on Metalink.
    Cheers,
    Greg

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • ITunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    I have my iTunes library stored on an external hard drive which is connected to my airport extreme, I wish to share my iTunes library over my network, I can do this with my laptop, but not with my iPad, can anyone tell me if it is possible

    You can't connect directly to the external drive, but should be able to use iTunes Home Sharing via the laptop.
    http://support.apple.com/kb/PH1453

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • Google drive does not work with specific group but works with all users group!!

    Hi,
    Why Google drive does not work with specific group but works with all users group?
    My rule :  Internal > external > all users = works fine
    But
                   Internal > external > A group = not working !!

    Hi,
    if you require user authentication in Firewall policy rules, the clients must bei Webproxy clients (for HTTP / HTTPS) or TMG clients (for TCP/UDP):
    http://technet.microsoft.com/en-us/library/bb794762.aspx
    regards Marc Grote aka Jens Baier - www.it-training-grote.de - www.forefront-tmg.de - www.galileocomputing.de/3276?GPP=MarcGrote

  • My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?

    My Printer (samsung clx-3185fw) says it connects to my network but I can't seem to print wirelessly.  I could with my netgear but not with my airport extreme, any ideas?
    I have restarted all units, disconnected and reconnected

    Hi ryanfromstockbridge,
    I apologize, I'm a bit unclear on exactly what you are seeing when you try to add the printer or print to the printer. If you continue to have issues printing to this wireless printer, you may find the information and troubleshooting steps outlined in the following articles helpful:
    OS X Yosemite: Printing troubleshooting
    Troubleshooting printer issues in OS X - Apple Support
    OS X Yosemite: Add or remove a printer
    Sincerely,
    - Brenden

  • My iPhone does not synced with windows 7 but synced with windows Xp

    My iPhone does not synced with windows 7 but synced with windows Xp

    Just today evening I have replaced a brand new iPhone 5 with Apple store, so I came at home  &amp; try to restore my iPhone but it is not synced (mean my iPhone does not shown in iTunes,) &amp; at the same time I m restart my PC with windows Xp , now my iPhone connected with iTunes. So what is the problem of my windows 7 ,

  • My ipod touch 4th gen. will not allow me to adjust volume with my speaker, but will with headphones. How do i fix this?

    My ipod touch 4th gen. will not allow me to adjust volume with my speaker, but will with headphones. How do i fix this?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack or other hardware problem
    Apple Retail Store - Genius Bar

  • Using iCloud my iCloud calendar is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    Using iCloud, my iCloud calenda is syncing with my iPhone but not with the Outlook calendar on my PC (Windows 7)

    smurfanda wrote:
    I agree. What I see is that it is creating an icloud calendar in Outlook but I want it to sync to Outook itself.
    That is what it does. There is no sync, you have a new calendar.

  • I can capture with iMovie 6, but not with FCP 6.0 ('no data from device')

    I didn't have any problem with FCP 5, but am getting nowhere with FCP 6 using the same settings (I think). FCP seems to see the camcorder, but can't control it and, even if I manually start the camera, reports 'no data from device' when I do a 'Capture Now'. Device control isn't critical, but I'd sure like to find out why it doesn't see the data stream from the camera (Sony HDR-HC7 / FW400). I must be missing a setting some place, but sure can't find it. On the other hand, I have full device control and zero dropout capture with iMovie (exact same hardware configuration). Any ideas?

    Wolfgang Matzl wrote:
    canopus works fine, as well as all other devices.
    i have tons of tapes and tried a few, none worked.
    i tried to capture on both my new imac and my mbpro, no way.
    but now i'm sure there is something wrong with the sony handycam, i tried to import with my old final cut studio, and it's not possible, also. fc pro says: waiting for timecode.
    so i'm confused now. does the sony dcr-trv not send a timecode? maybe, and this will explain the troubles. but on the other hand i imported successfully some footage with exact this device.
    maybe i used the canopus then to correct the timebase, i can't remember how i did it. but this would mean i have to accept loss of quality, since i have to connect the sony with s-vhs with the canopus and convert it.
    right now i'm importing a tape with imovie and will have a look how the result is, but as far as i remember, the audio has to be re-rendered when importing in fcpx…
    My finger is pointing to a Timecode issue.
    Is timecode enabled in the camera?
    Is it continuous on the tape?
    Al

  • Can't print both sides (manually) with Windows 7 but can with XP

    My OfficeJet 5510 has "Print Both Sides" as an option on the "Finishing" tab, when I use it from the desktop running XP, which it's connected to with USB. That option doesn't appear anywhere when I try to print from my laptop running Windows 7, over a wireless network. This issue seems to be mentioned in many posts, but never seems to be answered. Is 2-sided printing (manually reinserting the pages) an option with Windows 7, or just with XP?

    Hi  - The difference is that with XP, you're using the HP print driver and with Win7, you're using the Microsoft driver, since it doesn't look like HP made a "Full-featured" driver for the OJ5510, since Win7 came out well after the OJ5510 released.  Unfortunately, it doesn't look like you'll be able to manually print on both sides of the page unless the software app you're printing from offers a feature.  If the app doesn't have an option specifically for manual duplexing, you might be able to specify printing only odd numbered pages, then re-loading those pages and printing the even numbered pages.  Not a great workaround, but at least an option.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • Ad hoc connection doesn't work with my 3gs but works with my touch

    I setup an ad hoc connection on my laptop following a guide on the internet.
    I did this on windows 7 32bit, it worked for my ipod touch but for some reason it won't work with my iphone 3gs (upgraded with the latest updates)
    I connect to the wireless network, it shows its connected (with the wifi symbol at the top in the iphone's status bar) but as soon as i try using the internet via safari or any other app, it reverts back to using 3g or edge networks. I've checked and after reverting it still shows wifi is connected but the wifi symbol is no longer in the status bar and judging by the speed of the connection it really isn't connected to wifi.
    Any ideas why this is happening?
    It's just so odd that it works on my ipod touch but not on my iphone 3gs... Can't be a windows related problem.

    Did you ever get this fixed? I'm having the same problem and can't figure out the solution.

  • Cant click and drag with one finger, but works with 3 fingers

    Last week, my trackpad starts to fail. Thing is that i can't click and drag with one finger but if i turn on the 3 finges option, i can tap and drag without a problem Check the prefs, universal access too. And everything is ok.
    Reset pram, smc , run & fix permissions but nothing.
    Looking around the internet i found a possible hint and is related to a bad battery condition. But that post talks a physical defective battery. Mine last like 2 hours.Under the battery icon in the finder it saids tha should be replace soon.  Macbook pro late 2008. 4 gb ram , 500 gb hd, 10.7.3
    Any suggestions??

    It sounds like an accessibility feature, although I'm not 100% sure. You can explore the accessibility settings if you like, or for a quick fix you can try going into Settings>General>Reset>Reset All Settings.

  • Macbook Pro 7,1 (mid 2010?) boot with 6GB mem, but not with 8GB

    Hello,
    I bought a Macbook Pro 13" equipped with 4GB RAM at Apple Store on Oct-2010, and it says it's Macbook Pro 7,1 in profiler.
    I tried to upgrade the RAM from 2GBx2 to 4GBx2, but the MBP freezed in boot sequence with 8GB RAM.
    After some tests, including swap and change the combination of memory modules, I found my MBP can boot with 2+4GB configuration, but not with 4+4GB.
    Does anyone know similar issue on the latest MBP 13"?

    This is a memory speed problem - check here: http://discussions.apple.com/thread.jspa?messageID=13154160#13154160
    When using 2+4 gb, memory speed is choosen, based on the slowest dimm - the 2gb one (1066mHz), when using single/double 4gb - speed is 1333mHz).
    You can see the memory speed in diagnostic mode. I'm trying some stuff, if I succeed, I'll post my way.
    ps. Changing 4gb memory sodimms to 1066mHz will solve your problem. Or if apple fixes the efi to downclock the 1333mhz ones (which btw every pc can do from the bios).

Maybe you are looking for