[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error while make
From: |
Alexey Neyman |
Subject: |
Re: error while make |
Date: |
Tue, 27 Jun 2006 11:37:25 +0400 |
User-agent: |
KMail/1.6.2 |
Alexander,
On Tuesday 27 June 2006 01:13, Paul D. Smith wrote:
> %% Alexander <address@hidden> writes:
>
> >> This is not a "make" issue.
>
> a> more information:
>
> a> address@hidden proj]$ make
> a> make -f ./src/common/Makefile "PATH=./src/common/" my_gtkmm
^^^^^^^^^^^^^^^^^^^^
This is the silly thing causing all the troubles you're experiencing.
GCC uses $PATH to find 'as', 'ld', whatever. So, you have the
following options:
- use PATH="./src/common:$PATH" instead
- put symbolink links for 'as', 'ld' and whatever else is necessary
into src/common
- stop messing with $PATH unless you know what you're doing and invoke
your local utilities (whatever they are in src/common) with a full
path
I'd stick with the last option, since it would allow to build your
software with a different compiler by changing $PATH before running
make.
Regards,
Alexey.
> a> make[1]: Entering directory `/home/alex/Desktop/proj'
> a> /usr/bin/g++ -D__DEBUG__ -c -pthread -I/usr/include/gtkmm-2.4
> a> -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4
> a> -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4
> a> -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4
> a> -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0
-I/usr/include/sigc
> a> ++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
> a> -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include
> a> -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/atk-1.0
> a> -I/usr/local/pgsql/include src/common/echoframe.cpp -o
> a> src/common/echoframe.o
> a> g++: error trying to exec 'as': execvp: No such file or
directory
>
> a> But:
> a> address@hidden proj]$ /usr/bin/g++ -D__DEBUG__ -c -pthread
> a> -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include
> a> -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include
> a> -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include
> a> -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6
> a> -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0
-I/usr/lib/sigc
> a> ++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
> a> -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
-I/usr/include/cairo
> a> -I/usr/include/atk-1.0 -I/usr/local/pgsql/include
> a> src/common/echoframe.cpp -o src/common/echoframe.o
>
> If something works from the command line but not when make runs it,
then
> your makefile is modifying the environment somehow to cause that
> problem. Maybe your makefile is changing PATH, or GCC_EXEC_PATH, or
> some other environment variable.
>
> If you don't know what's going on you can replace your compiler
setting
> with one that invokes "env" to see what variables are set first, so
> something like:
>
> CXX = env | sort && /usr/bin/g++
>
> then you can look at the environment make is using. You can do the
same
> thing at the command line and compare them. Maybe you can see
something
> there immediately; if not you can create a shell script that sets
that
> environment and runs the compile, then you can play with
likely-looking
> changes.
>
> --
>
-------------------------------------------------------------------------------
> Paul D. Smith <address@hidden> Find some GNU make tips at:
> http://www.gnu.org
http://make.paulandlesley.org
> "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>
--
Human! Like all heroes, ye be as brainless as ye are brave.
-- Yehat, SC2