Getting “make: Entering an unknown directory” error while building postgresql on MIPS platform

Started by Shreeshaalmost 12 years ago6 messageshackers
Jump to latest
#1Shreesha
shreesha1988@gmail.com

make[4]: Leaving directory
`/home/shreesha/platform/utils/postgresql-9.3.4/src/port'
/home/shreesha/platform/tools/bin/make -C timezone all
make[4]: Entering directory
`/home/shreesha/platform/utils/postgresql-9.3.4/src/timezone'
I am trying to install postgresql on MIPS platform and I am getting the
following error while building it.

/home/shreesha/platform/tools/bin/make -C common all

**make: Entering an unknown directory**

make: *** common: No such file or directory. Stop.

make: Leaving an unknown directory

make[4]: *** [common-recursive] Error 2

make[4]: Leaving directory
`/home/shreesha/platform/utils/postgresql-9.3.4/src/timezone'
make[3]: *** [all-timezone-recurse] Error 2
make[3]: Leaving directory
`/home/shreesha/platform/utils/postgresql-9.3.4/src'
make[2]: *** [all-src-recurse] Error 2

make[2]: Leaving directory `/home/shreesha/platform/utils/postgresql-9.3.4'

Do we need to set any specific make variables/environmental variables in
this case? Any help on debugging this is much appreciated!

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Getting-make-Entering-an-unknown-directory-error-while-building-postgresql-on-MIPS-platform-tp5806705.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Shreesha (#1)
Re: Getting “make: Entering an unknown directory” error while building postgresql on MIPS platform

shreesha21 <shreesha1988@gmail.com> writes:

make[4]: Leaving directory
`/home/shreesha/platform/utils/postgresql-9.3.4/src/port'
/home/shreesha/platform/tools/bin/make -C timezone all
make[4]: Entering directory
`/home/shreesha/platform/utils/postgresql-9.3.4/src/timezone'
I am trying to install postgresql on MIPS platform and I am getting the
following error while building it.

/home/shreesha/platform/tools/bin/make -C common all

**make: Entering an unknown directory**

make: *** common: No such file or directory. Stop.

make: Leaving an unknown directory

make[4]: *** [common-recursive] Error 2

What seems like the most likely bet here is that make has inherited the
setting for SUBDIRS in src/Makefile into the child run in src/timezone/,
and so it's looking for a subdirectory "common" which of course ain't
there. Why this would not have happened within the previous two
subdirectories isn't real clear, but in any case that would be a bug
in "make".

What make version are you using? Can you try another one? If you're
trying a parallel build, maybe don't do that.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Shreesha
shreesha1988@gmail.com
In reply to: Tom Lane (#2)
Re: Getting “make: Entering an unknown directory” error while building postgresql on MIPS platform

bash-4.1$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu

Also, the build was successful in x86 platform when I tried to install in
CentOS.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Getting-make-Entering-an-unknown-directory-error-while-building-postgresql-on-MIPS-platform-tp5806705p5806716.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Shreesha (#3)
Re: Re: Getting “make: Entering an unknown directory” error while building postgresql on MIPS platform

shreesha21 <shreesha1988@gmail.com> writes:

bash-4.1$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu

Thought you said this was MIPS.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#5Shreesha
shreesha1988@gmail.com
In reply to: Shreesha (#3)
Re: Getting “make: Entering an unknown directory” error while building postgresql on MIPS platform

Sorry for the confusion. Let me clarify what I am trying to do here.

I am trying to configure and build postgresql for MIPS platform and I am
doing this on a linux system - (Linux dev-shreesharao.arubanetworks.com
2.6.32-431.11.2.el6.x86_64 GNU/Linux) so that the libraries generated from
this build will be ported to MIPS platform for further use.

The way I am trying to accomplish this is by executing the configure file
with some mips specific configure options and export variables.
i.e.,
configure_args: '--target=mips-linux-gnu' '--host=mips-linux-gnu'
'--without-readline' '--without-zlib'
'--prefix=/home/shreesha/platform/tools/porfidio_obj'
'host_alias=mips-linux-gnu' 'target_alias=mips-linux-gnu'
'CC=/home/shreesha/platform/tools/mipscross-xlp/linux/bin/mips64-nlm-linux-gcc
-B/home/shreesha/platform/tools/mipscross-xlp/linux
-B/home/shreesha/platform/tools/mipscross-xlp/linux/lib ' 'LDFLAGS= -mabi=32
-march=xlp'
'CPP=/home/shreesha/platform/tools/mipscross-xlp/linux/bin/mips64-nlm-linux-cpp'

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Getting-make-Entering-an-unknown-directory-error-while-building-postgresql-on-MIPS-platform-tp5806705p5806720.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Shreesha (#5)
Re: Re: Getting “make: Entering an unknown directory” error while building postgresql on MIPS platform

Perhaps you've got SUBDIRS defined in your environment?

The following example seems to match the behavior you're reporting:

$ cat test1/Makefile
SUBDIRS = foo bar

all:
make -C test2 all

$ cat test1/test2/Makefile
all:
echo "SUBDIRS = $(SUBDIRS)"

$ make -C test1 all
make: Entering directory `/home/tgl/test1'
make -C test2 all
make[1]: Entering directory `/home/tgl/test1/test2'
echo "SUBDIRS = "
SUBDIRS =
make[1]: Leaving directory `/home/tgl/test1/test2'
make: Leaving directory `/home/tgl/test1'

$ SUBDIRS=env make -C test1 all
make: Entering directory `/home/tgl/test1'
make -C test2 all
make[1]: Entering directory `/home/tgl/test1/test2'
echo "SUBDIRS = foo bar"
SUBDIRS = foo bar
make[1]: Leaving directory `/home/tgl/test1/test2'
make: Leaving directory `/home/tgl/test1'

I find this behavior a tad surprising: if the environment variable is
effective at all, it seems like it shouldn't be overridden by a simple
assignment in the parent makefile. But I dunno if the gmake boys would
think it's a bug.

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers