Error Unable To Locate Gnatmake-gcc
creation filtered due to spam. Bug33857 - Cannot bootstrap Ada with host gnatmake-4.2 Summary: Cannot bootstrap Ada with host gnatmake-4.2 Status: RESOLVED DUPLICATE of bug 864 Alias: None Product: gcc Classification: Unclassified Component: ada (show other bugs) Version: 4.3.0 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: build Duplicates (1): 35572 (view as bug list) Depends on: Blocks: Reported: 2007-10-22 09:29 UTC by Richard Biener Modified: 2008-05-29 09:04 UTC (History) CC List: 9 users (show) bechir.zalila charles.w.lambert danglin gcc-bugs jsm28 rguenth schwab starner steven.bosscher See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Richard Biener 2007-10-22 09:29:17 UTC Trying to bootstrap Ada with a 4.2-suffixed host compiler install yields + CC=gcc-4.2 + GNATBIND=gnatbind-4.2 + GNATMAKE=gnatmake-4.2 + ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3.0 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux' --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --build=i586-suse-linux ... checking for gnatbind... gnatbind-4.2 checking for gnatmake... gnatmake-4.2 checking whether compiler driver understands Ada... yes ... (cd ada/bldtools/nmake_b; gnatmake-4.2 -q xnmake ; ./xnmake -b ../../nmake.adb ) gnatmake-4: error, unable to locate gnatmake-gcc /bin/sh: ./xnmake: No such file or directory make[3]: *** [ada/nmake.adb] Error 127 apperantly gnatmake is totally confused about its own name. Comment 1 John David Anglin 2008-02-25 04:02:37 UTC I'm seeing essentially the same thing on i686-apple-darwin9: # gnattools2 make -C ../gcc/ada/tools -f ../Makefile \ "CC=../../xgcc -B../../" "CFLAGS=-O2 -g -g -O2 " "ADAFLAGS=-gnatpg -g nata" "INCLUD
guide like so: (This being a copy of the action at the DOS prompt) D:\GNAT\bin>gcc -c d:\gnat\hello.adb D:\GNAT\bin>gnatbind hello D:\GNAT\bin>gnatlink hello gnatlink: Couldn't locate gcc Why couldn't gnatlink find gcc especially since there was no complaint the first time ? On the other hand I didn't get very far with the following either: D:\GNAT\bin>gnatmake d:\gnat\hello gnatbind -x hello.ali gnatmake: error, unable to locate gnatbind Any help and further pointers on configuring GNAT for Windows would be appreciated. Thanks Ivan Markose Sat, 10 Jul 2004 13:57:45 GMT Jerry van Dij#2 / 9 beginner in GNAT for Windows Quote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33857 > D:\GNAT\bin>gcc -c d:\gnat\hello.adb Normally GNAT is installed on the C: drive. Did you install it on the D: drive, or copy it there ? It could be that a registry setting is wrong, look under HKEY_LOCAL_MACHINE -> SOFTWARE -> Ada Core Technologies. Or maybe there is another gcc installed as well ? Is d:\gnat\bin before it in the path ? Also, does a 'gnatls -v' show proper version and paths http://computer-programming-forum.com/44-ada/30cdd6204c6789c9.htm ? -- -- Leiden, Holland | web: users.ncrvnet.nl/gmvdijk Sat, 10 Jul 2004 18:05:14 GMT John Englis#3 / 9 beginner in GNAT for Windows Quote: > I have tried to compile and run the 'Hello world' example given in the > User's guide like so: (This being a copy of the action at the DOS prompt) > D:\GNAT\bin>gcc -c d:\gnat\hello.adb > D:\GNAT\bin>gnatbind hello > D:\GNAT\bin>gnatlink hello > gnatlink: Couldn't locate gcc > Why couldn't gnatlink find gcc especially since there was no complaint the > first time ? > On the other hand I didn't get very far with the following either: > D:\GNAT\bin>gnatmake d:\gnat\hello > gnatbind -x hello.ali > gnatmake: error, unable to locate gnatbind Sounds like gnatmake/gnatlink are failing to find the other commands using the path; make sure your path includes d:\gnat\bin. It's generally a good idea to start in another directory and then type "gnatmake"; if it can't find gnatmake, your path is *definitely* wrong. ----------------------------------------------------------------- Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk ----------------------------------------------------------------- Sat, 10 Jul 2004 19:29:58 GMT Gautier Write-only-addres#4 / 9 beginner in GNAT for Windows Quote:
Hello, I am trying to find an irritating heisenbug in my code. Sometimes error unable my C++ program exits with malloc errors. The strange thing is that I do not use malloc in my code, except for one place, where I do use error unable to it. However, when it fails it should not be anywhere near that code. So I wonder if C++ / GCC internally use malloc to implement "new" and stuff like that. Does anyone know? If so, any chance on using fortify to help me finding this bug? Cheers, Jan-Jaap Previous message: [gccsdk] riscos make Next message: [gccsdk] C++ and malloc Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the gcc mailing list
Mar 2004 gnatbind-3.3 -rwxr-xr-x 1 thomas thomas 54344 13 Mar 2004 gnatbl-3.3 -rwxr-xr-x 1 thomas thomas 813904 13 Mar 2004 gnatchop-3.3 -rwxr-xr-x 1 thomas thomas 1313096 13 Mar 2004 gnatfind-3.3 -rwxr-xr-x 1 thomas thomas 346540 13 Mar 2004 gnatkr-3.3 -rwxr-xr-x 1 thomas thomas 971216 13 Mar 2004 gnatlink-3.3 -rwxr-xr-x 1 thomas thomas 2321052 13 Mar 2004 gnatls-3.3 -rwxr-xr-x 1 thomas thomas 3601832 13 Mar 2004 gnatmake-3.3 -rwxr-xr-x 1 thomas thomas 3209876 13 Mar 2004 gnatname-3.3 -rwxr-xr-x 1 thomas thomas 770240 13 Mar 2004 gnatprep-3.3 -rwxr-xr-x 1 thomas thomas 542372 13 Mar 2004 gnatpsta-3.3 -rwxr-xr-x 1 thomas thomas 1310880 13 Mar 2004 gnatxref-3.3 [nathalie:~] thomas% so i couldn't execute "gnatmake" if i did gnatmake-3.3 : [nathalie:~/Documents/zalio] thomas% gnatmake-3.3 ../prgms/tracalite.adb gnatmake-gcc -c -I../prgms/ -I- ../prgms/tracalite.adb gnatmake-3: error, unable to locate gnatmake-gcc i have renamed all these files mv gcc-3.3 gcc ... [nathalie:~/Documents/zalio] thomas% gnatmake ../prgms/tracalite.adb gcc -c -I../prgms/ -I- ../prgms/tracalite.adb gcc: installation problem, cannot exec `gnat1': No such file or directory gnatmake: "../prgms/tracalite.adb" compilation error so i searched for gnat1 and did [nathalie:ada/3-1203/bin] thomas% ln -s ../libexec/gcc/darwin/ppc/3.3/gnat1 [nathalie:ada/3-1203/bin] thomas% l total 34520 -rwxr-xr-x 1 thomas thomas 135088 13 Mar 2004 gcc lrwxr-xr-x 1 thomas thomas 35 20 Dec 01:19 gnat1 -> ../libexec/gcc/darwin/ppc/3.3/gnat1 -rwxr-xr-x 1 thomas thomas 2250420 13 Mar 2004 gnatbind -rwxr-xr-x 1 thomas thomas 54344 13 Mar 2004 gnatbl -rwxr-xr-x 1 thomas thomas 813904 13 Mar 2004 gnatchop -rwxr-xr-x 1 thomas thomas 1313096 13 Mar 2004 gnatfind -rwxr-xr-x 1 thomas thomas 346540 13 Mar 2004 gnatkr -rwxr-xr-x 1 thomas thomas 971216 13 Mar 2004 gnatlink -rwxr-xr-x 1 thomas thomas 2321052 13 Mar 2004 gnatls -rwxr-xr-x 1 thomas thomas 3601832 13 Mar 2004 gnatmake -rwxr-xr-x 1 thomas thomas 3209876 13 Mar 2004 gnatname -rwxr-xr-x 1 thomas thomas 770240 13 Mar 2004 gnatprep -rwxr-xr-x 1 thomas thomas 542372 13 Mar 2004 gnatpsta -rwxr-xr-x 1 thomas thomas 1310880 13 Mar 2004 gnatxref [nathalie:~/Documents/zalio] thomas% gnatmake ../prgms/tracalite.adb gcc -c -I../prgms/ -I- ../prgms/tracalite.adb fatal error, run-time library not installed correctly cannot locate file system.ads compilation abandoned gnatmake: "../prgms/tracalite.adb" compilation error so i searched system.ads, looked at postinstall and at http://mpc.uci.edu/gnat/doc/gnat_ug.html i made /Users/thomas/bin/autoinstall/ada/3-1203/libexec/gcc/darwin/ppc/3.3/ ada_source_path containing /Users/thomas/b