Could someone advise me on a fix for my compiler

I have Xcode installed with both gcc-3.3 and gcc-4.0.1... BUT... i think that there is another version (gcc-4.1.1) floating around that I must have inadvertantly (or advertantly, but long enough ago that I don't remember doing it) installed through wither Fink or Darwinports. i THINK that it happened when i installed GHDL tools through Bertram's port to Darwin... which I have since "removed", but $sudo "gcc -v" says:
+Using built-in specs.+
+Target: i386-apple-darwin8.6.2+
+Configured with: /Users/fbertram/Documents/eng-osx/GHDL/gcc-4.1.1/configure --enable-languages=vhdl --disable-nls --disable-libssp --prefix=/Developer/Simulator/GHDL+
+Thread model: posix+
+gcc version 4.1.1+
i tried "sudo /usr/sbin/gcc_select 3.3" and "sudo gcc_select 3.3", but "gcc -v" still says the same as above. I checked by "echo $PATH" and I get:
/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/u sr/X11R6/bin
Which looks OK. I am asking this because my builds are failing in strange ways lately, and I fear that they may be reading from the gcc 4.1.1. I tried uninstalling gcc-4.1.1 through fink and darwinports, but the program does not show up as being installed.
Anyone know what is going on here? it would be nice if there were a "dpkg-reconfigure gcc" function that I could use in OSX... I tried deleting Xcode and reinstalling from the CD ( after running uninstall-devtools.pl from the terminal) but there is no change.
HELP!
Message was edited by: Aletheianalex

Hello,
Try "gcc_select -l" to see all available versions of gcc.
Try "gcc_select -n 3.3", this will show you the command gcc_select WOULD USE to make the change, without doing it. Check if it makes sense...
try "which gcc", this will give you the path for the first gcc in your path. Mine is in /usr/bin/gcc.
Now, cd to that directory (/usr/bin for me), and do "ls -ld gcc*". You should see gcc as a link to something like gcc-3.3 or gcc-4.0 .
Also, look at the compile log within XCode (build results). It might tell you which version of gcc it's using.
If XCode fails to compile even the simplest "Hello, world" program, try compiling it manually by invoking "/usr/bin/gcc-3.3 hello.c" from the source file's directory. You would get an executable called a.out that you can execute with "./a.out".
Good luck,
Yves

Similar Messages

  • Could someone advise on using deploy studio/net boot to mass net install

    could someone advise on using deploy studio/net boot to mass net install software over a network. i know you first create a machine with all software on it, but then do you make an image with deploy studio? and deploy it from the xserve using deploy studio or do you do a netboot? what is the procedure for doing this kind of stuff?

    Thanks for the replies.
    I believe that I have found an easier solution for displaying a web intelligence report on my aspx page.  I am now experimenting with adding an iframe control on the page and setting the src attribute to the report path.  I am using the opendocument method for displaying the webi report.  Listed below is some sample code.
    strLink = "http://MyServerName/businessobjects/enterprise115/InfoView/scripts/opendocument.aspx?sDoc=PhyCompProviderSummaryWindowwAD+Drill&sType=wid&sViewer=html&iDocid=5159141&sRefresh=Y"
    Me.ifSummary.Attributes.Add("src", strLink)
    ifSummary is the ID of the iframe control on my page.
    This method does not require any BOE dlls to be installed on the web server.  I can easily set the document name and ID in the path at runtime.
    Mitch

  • When I send an email with bcc recipients, the bcc does not show in my sent mail so I can't reference back later who I sent the email to. Worked in Snow Leopard but not in Yosemite. Please advise if their is fix for that.

    When I send an email with bcc recipients, the bcc does not show in my sent mail so I can't reference back later who I sent the email to. Worked in Snow Leopard but not in Yosemite. Please advise if their is fix for that.

    Did you select View->Bcc Address Field from the menu bar?

  • I got a vius and after removing Pro would not work, trying to reload and getting Error 1334, can someone advise me how to fix.

    I got a vius and after removing Pro would not work, trying to reload and getting Error 1334, can someone advise me how to fix.

    I downloaded, ran and restarted, tried to install Pro got same error
    Thank You!
    Robert W. O'Rourke
    Tesla Systems, Inc.
    <phone # removed - kglad>

  • Could someone please explain how to check for flashback, to a beginner?

    Could someone please explain how to check for flashback, to a beginner?  Thanks.

    Install all of the available software updates.  If you have flashback it will be automatically removed.

  • My sons ipod touch apps will not load. you touch them the title screen for the game flicks up then dissappears. Could someone please tell how to fix this or what could be wrong?

    My sons ipod touch apps and games will not play. when you touch to game to load it the title screen flicks up and then disappears. please could someone help me to fix this problem or tell me what could be wrong?

    I would first try resetting your iPod. Nothing will be lost.
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • I uninstalled Itunes because message "Itunes has stopped working" i attempted to reinstall now get error message "error occurred during installation before itunes could be configured" how to i fix for windows 8.1

    I have a PC with windows 8.1. My itunes folder is stored on external drive. I haven't used itunes for a while. I got a message to update to itunes 11.3.1. I got error message that "registry settings used by itunes for importing and burning CD's/DVD's has stopped working" I uninstalled itunes and attempted to reinstall. Now i get message" error occurred during installation before itunes could be configured" How do I fix this.

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Can someone point me to the fix for switching to H.264 in Export Settings?

    Ya know the freeze ya get when you switch from some other export format to H.264? then five minutes later it comes back and works fine? Somebody posted a fix for that a few months back and I'll be danged if I can find it by searching now. Thanks in advance.

    Matrox? Matrox MXO User Forum :: View topic - Export delays with Adobe Premiere Pro & Media Encoder CS5

  • [Solved] Could someone that knows awk good fix this script for me?

    I found this script on the linuxquestions site that tests and displays network bandwidth.  There's an error in the script though and my awk experience isn't enough to debug it and is giving me the error:
    awk: cmd. line:10: printf ("%4.0f", Ratio)}
    awk: cmd. line:10: ^ syntax error
    awk: cmd. line:10: printf ("%4.0f", Ratio)}
    awk: cmd. line:10: ^ syntax error
    ^C/home/todd/.bin/bandwidth-test: line 21: [: : integer expression expected
    BW Surchargé - Moyenne de de Kb/sec pendant 20 secondes
    This is the script:
    #!/bin/bash
    # bandwidth-test - test bandwidth from the command line
    Fic_Tmp="/tmp/Fic_Tmp_VerifRatio.tmp"
    NbrSec=20
    /usr/bin/bwm-ng -I eth0 -o csv -T avg -C " " -c ${NbrSec} | awk '
    BEGIN{
    BytesS=0
    NbrLecture=0}
    /eth0/&&NR>2{
    BytesS+=$5/1024
    NbrLecture+=1}
    END{
    Ratio=BytesS/NbrLecture
    printf ("%4.0f", Ratio)}' > ${Fic_Tmp}
    Ratio=$(cat ${Fic_Tmp})
    rm ${Fic_Tmp}
    if [ "${Ratio}" -lt 110 ];then
    echo "BW OK - Moyenne de ${Ratio} de Kb/sec pendant ${NbrSec} secondes"
    exit 0
    else
    echo "BW Surchargé - Moyenne de ${Ratio} de Kb/sec pendant ${NbrSec} secondes"
    exit 2
    fi
    exit $?
    Anyone available to fix this for me?
    Last edited by Gen2ly (2009-11-17 17:52:14)

    Ah, thought I counted all those.  Whoops .  Yep that did the trick.  Thanks benob.
    Edit: Just FYI to any that read this.  This script only checks if you are in the cap range, so it's not really a bandwidth tester for the command line.  The nearest I've found is 'iperf' which I'm unable to get to use yet.
    Edit2 : netperf seems better suited for this, only been able to learn how to do download speed test so far:
    netperf -c hostname -f K
    Last edited by Gen2ly (2009-11-17 19:08:38)

  • I have both a PC (work) and my new Macbook Air. I am having issues with opening files that I have saved on my USB Flash Drive. The files are not corrupted because it works on my PC perfectly. Could someone advise how to fix the issue?

    Please help!!!

    Yes, I have the MS Office software for MAC that I bought from the Apple Store.
    This is the Error.
    Excel Cannot Open this File.
    The file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
    - I created these files on my MAC, but I have worked on it on my PC. But I can't reopen it on my MAC anymore.
    Thanks All for the help.

  • Could someone advise me on this matter?

    Hey folks,
    I have a brand new HTC One with Verizon which has had some wired issues, some of which reported on my previous threads here. I wanted to try another device and now, Verizon is making an "exception" for me and is giving me two options (I am beyond the 14-day window btw). Option one: replace this phone with a refurbished phone (probably an iPhone) for the same price, Option two: get a new iPhone (or any other phone) and pay the difference. My HTC One was basically free so I would have to pay sth like $200 for an iPhone or S4 or.... Let's say I want to choose one of these options. Could you let me know me the pros and cons of each and which one would you choose?
    I'd appreciate it.

    I would go with the newest technology for my buck.   You will have the phone you pick for quite a while, no sense wishing for a new phone the moment you get home.

  • Could someone convert this .swf to .gif for me?

    I've made this .swf banner and I need it converted to .gif. I've tried many free programs but they all leave ugly watermarks. I don't want to buy a program that I'm going to only use once.
    Would someone be kind enough to convert this into .gif for me? If possible keep the filesize under 350KB.
    Thanks so much!
    https://www.mediafire.com/?cblckbpin7rvig7

    Hello master_w,
    You can use "sprite sheet" feature of Flash CC 2014 for export your banner like sprite frames.
    Then you can open this png file in photoshop, cute parts and make a gif using the "timeline".

  • Mixer device install???​? pavilio dv8000 could someone help me? need it for audio ..

    I have a problem is that my pavilio hp dv8000 and installed on the train all right drivers and everything but do not want to listen to the audio and tell me when looking to install the mixer device can someone help me I can do ?????

    The log you posted is not a crash log but a console log.  Crash logs are found in the CrashReporter section of the Console utility's data.  You also need to tell us whether you are experiencing a crash or a kernel panic.  And, you need to provide more information on what you are doing when the crash occurs, what applications you are running, etc.
    I would also suggest you try booting into Safe Mode and operating for a while to see if the crashes stop.  If they do then that indicates a problem within your Home folder. 
    It would also be useful to boot up with none of the applications running that you normally use.  Then run only one of your applications at a time to see if crashes occur.  This may help narrow down the problem to a specific application.

  • Hello. Im trying to download OSX mountain lion on 2013 Macbook air but I get a message saying this isnt supported. Could someone advise me please - its my first mac so please forgive the stupidity!

    However when I try to, I get an error message saying it is not compatible ? According to the list it should be as its the new 13 inch. Forgive my stupidity as I have just got my head around an iMAC and whilst I love my MBA , I get a bit stumpped!!! Any help gratefully received. Thanks S

    As shldr2thewheel pointed out, a 2013 MacBook would have shipped with Mountain Lion installed. It is a specialized version for that specific model, so a version of Mountain Lion downloaded from the Mac App Store will not work.
    If you ever need to reinstall the OS, just use the built-in recovery partition, or Internet Recovery.

  • I would like to read a .dat file (binary). The file contains numeric as well as text data. Could someone provide some examples/h​ints for this purpose?

    The file is the output of a data acquisition system. I need to get the data as a 2D array (channel name and numeric data corresponding to the channel) so that i can use the data for graphical displays.

    It would depend on how the file was written.
    You should have some information regarding how the data is stored (is it delimitied in some way?)
    If the data is delimited or in a recognizable spreadsheet array format, you will be able to import the data without (much) issue; regardless of whether the data is stored as text or numeric.
    CLD | CTD
    LabVIEW 2011 SP1 | TestStand 4.5

Maybe you are looking for

  • ADF Application Deployment Failing in Upgraded Web logic Server

    Hi, We have recently upgraded our weblogic server from *10.3.3* to *10.3.5* and also migrated ADF application from JDev *11.1.1.3* to *11.1.2.1* . Finally deployed migrated ADF application which was running fine on * Weblogic 10.3.3* to Weblogic 10.3

  • I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.

    I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem. I saw the below quote on Adobe forum "You may install software on up to two computers. These two

  • Toshiba Solid State Drive Not Detected

    Sony Ultrabook Model: SVT131B11L Micro Toshiba Solid State Drive 256 GB Laptop can not find the OS anymore, Hard Drive not being detected in BIOS. Able to remove the Micro SSD and connect it externall to a computer. Any recomendations on how to extra

  • White screen only

    Hi everyone, I have done this several dozen times, but now it is failing and i need some additional eyes to see if there is a problem with what I am doing. Outline is this... appDelegate has a view controller, this view controller has one additional

  • Installing desktop software for tour 9630

    Hello everybody.I am a new BB client.I got the Tour yesterday and while trying to install the software to my computer the proccess stoped quickly after starting displaying "unale to download microsoft NET framework 2.0 SP 1-the .exe file".The other f