Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cross-compiling problem

62 views
Skip to first unread message

tor...@gmail.com

unread,
Oct 7, 2005, 2:42:44 PM10/7/05
to
Hi!

I was successful in cross-compiling a few weeks ago...however, when I
tried to do it now, I am getting some error from nspr...
here is the .mozconfig relavent to the cross compiling ( I can compile
without those options for cross-compiling)

CROSS_COMPILE=1
export CROSS_COMPILE
HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config
export HOST_LIBIDL_CONFIG
LIBIDL_CONFIG=/scratch/chen/X/bin/libIDL-config
export LIBIDL_CONFIG
GLIB_CONFIG=/scratch/chen/X/bin/glib-config
export GLIB_CONFIG
GTK_CONFIG=/scratch/chen/X/bin/gtk-config
export GTK_CONFIG
ac_add_options --target=i686-linux-uclibc
ac_add_options
--x-includes=/scratch/chen/util/buildroot/build_i686/xc/exports
/include/
ac_add_options
--x-libraries=/scratch/chen/util/buildroot/build_i686/xc/exports
/lib
ac_add_options --with-glib-prefix=/scratch/chen/X
ac_add_options --with-gtk-prefix=/scratch/chen/X
ac_add_options --disable-gtktest


the failing message are

--------------------------------------
../../../config/./nsinstall -R -m 444
/scratch/chen/X/mozilla/nsprpub/pr/include/md/
/scratch/chen/X/mozilla/build/dist/include/nspr
../../../config/./nsinstall: cannot make symbolic link
/scratch/chen/X/mozilla/build/dist/include/nspr/md: File exists
gmake[7]: *** [export] Error 1
gmake[7]: Leaving directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/include/md'
-------------------------------------------------------

this seems to come from the make file in
/scratch/chen/X/mozilla/build/nsprpub/pr/include/md/

---------------------------------------------------
export:: $(MDCPUCFG_H)
$(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
$(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
ifeq ($(OS_ARCH),OpenVMS)
# On OpenVMS mv updates the file's modified time, so we create a hard
link.
cd $(dist_includedir); \
if test ! -f prcpucfg.h; then \
dcl set file /enter=prcpucfg.h $(MDCPUCFG_H); \
fi
else
mv -f $(dist_includedir)/$(MDCPUCFG_H)
$(dist_includedir)/prcpucfg.h
endif

--------------------------------------------------

I had successfully build X and some X program with this cross-compiling
environment...so..

chen

Christopher Seawood

unread,
Oct 11, 2005, 9:05:55 PM10/11/05
to
tor...@gmail.com wrote:
> Hi!
>
> I was successful in cross-compiling a few weeks ago...however, when I
> tried to do it now, I am getting some error from nspr...
> here is the .mozconfig relavent to the cross compiling ( I can compile
> without those options for cross-compiling)

> the failing message are


>
> --------------------------------------
> ../../../config/./nsinstall -R -m 444
> /scratch/chen/X/mozilla/nsprpub/pr/include/md/
> /scratch/chen/X/mozilla/build/dist/include/nspr
> ../../../config/./nsinstall: cannot make symbolic link
> /scratch/chen/X/mozilla/build/dist/include/nspr/md: File exists
> gmake[7]: *** [export] Error 1
> gmake[7]: Leaving directory
> `/scratch/chen/X/mozilla/build/nsprpub/pr/include/md'
> -------------------------------------------------------

That error usually means that you're trying to cross-compile to a target
that's not supported. Specificly...

> this seems to come from the make file in
> /scratch/chen/X/mozilla/build/nsprpub/pr/include/md/
>
> ---------------------------------------------------
> export:: $(MDCPUCFG_H)
> $(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
> $(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)

MDCPUCFG_H is not being set.

> ac_add_options --target=i686-linux-uclibc

That target name is incorrect. When passing arguments to --target,
--host or --build, configure uses this form for the canoncial system
type: CPU-VENDOR-OS . So configure is treating
"i686" as the cpu, "linux" as the vendor and "uclibc" as the os.
MDCPUCFG_H isn't being set because we have no checks for uclibc. You
probably want to use --target=i686-unknown-linux-uclibc .

- cls

tor...@gmail.com

unread,
Oct 12, 2005, 4:39:17 AM10/12/05
to
hi!
thanks for replying...but I am still getting the same error after I
change my compiler to i686-unknown-linux-uclibc-gcc and
--target=i686-unknown-linux-uclibc

here is the compiler checking stuff

-------------------------------------------------------------
checking for c++... i686-unknown-linux-uclibc-g++
checking whether the C++ compiler (i686-unknown-linux-uclibc-g++ )
works... yes
checking whether the C++ compiler (i686-unknown-linux-uclibc-g++ ) is
a cross-c
ompiler... yes
checking whether we are using GNU C++... (cached) yes
checking whether i686-unknown-linux-uclibc-g++ accepts -g... (cached)
yes
checking for i686-unknown-linux-uclibc-ranlib... (cached)
i686-unknown-linux-ucl
ibc-ranlib
checking for i686-unknown-linux-uclibc-ar... (cached)
i686-unknown-linux-uclibc-
ar
checking for i686-unknown-linux-uclibc-as...
i686-unknown-linux-uclibc-as
checking for i686-unknown-linux-uclibc-ld... (cached)
i686-unknown-linux-uclibc-
ld
checking for i686-unknown-linux-uclibc-strip... (cached)
i686-unknown-linux-ucli
bc-strip
checking for i686-unknown-linux-uclibc-windres... no
checking for -windres... no
checking for gcc -pipe support... yes
checking for visibility(hidden) attribute... (cached) yes
checking for visibility pragma support... (cached) no
checking for perl5... (cached) /usr/bin/perl
checking for dlopen in -ldl... (cached) yes
checking for dlfcn.h... (cached) yes
checking whether i686-unknown-linux-uclibc-gcc needs -traditional...
(cached) no
checking for lchown... (cached) yes
checking for strerror... (cached) yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether i686-unknown-linux-uclibc-gcc accepts -pthread... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating config/Makefile
creating config/autoconf.mk
creating config/nsprincl.mk
creating config/nsprincl.sh
creating config/nspr-config
creating lib/Makefile
creating lib/ds/Makefile
creating lib/libc/Makefile
creating lib/libc/include/Makefile
creating lib/libc/src/Makefile
creating lib/tests/Makefile
creating pkg/Makefile
creating pkg/linux/Makefile
creating pkg/solaris/Makefile
creating pkg/solaris/SUNWpr/Makefile
creating pkg/solaris/SUNWprd/Makefile
creating pr/Makefile
creating pr/include/Makefile
creating pr/include/md/Makefile
creating pr/include/obsolete/Makefile
creating pr/include/private/Makefile
creating pr/src/Makefile
creating pr/src/io/Makefile
creating pr/src/linking/Makefile
creating pr/src/malloc/Makefile
creating pr/src/md/Makefile
creating pr/src/md/unix/Makefile
creating pr/src/memory/Makefile
creating pr/src/misc/Makefile
creating pr/src/threads/Makefile
creating pr/tests/Makefile
creating pr/tests/dll/Makefile
creating pr/src/pthreads/Makefile
configure: warning: Recreating autoconf.mk with updated nspr-config
output
gmake[2]: Leaving directory `/scratch/chen/X/mozilla'
gmake -C /scratch/chen/X/mozilla/build
cat: ./config/build_number: No such file or directory
gmake[2]: Entering directory `/scratch/chen/X/mozilla/build'
gmake[2]: Leaving directory `/scratch/chen/X/mozilla/build'
cat: ./config/build_number: No such file or directory
gmake[2]: Entering directory `/scratch/chen/X/mozilla/build'
rm -f -rf ./dist/sdk
rm -f -rf ./dist/include
/usr/bin/gmake -C config export
cat: ../config/build_number: No such file or directory
gmake[3]: Entering directory `/scratch/chen/X/mozilla/build/config'
nsinstall.c
gcc -o host_nsinstall.o -c -DXP_UNIX -O3 -I../dist/include
-I../dist/include -
I../dist/include/nspr -I../dist/sdk/include -I../dist/include/nspr
/scratch/c
hen/X/mozilla/config/nsinstall.c
pathsub.c
gcc -o host_pathsub.o -c -DXP_UNIX -O3 -I../dist/include
-I../dist/include -I.
./dist/include/nspr -I../dist/sdk/include -I../dist/include/nspr
/scratch/che
n/X/mozilla/config/pathsub.c
gcc -o nsinstall -DXP_UNIX -O3 host_nsinstall.o host_pathsub.o
rm -f nfspwd
cp /scratch/chen/X/mozilla/config/nfspwd.pl nfspwd
chmod +x nfspwd
rm -f revdepth
cp /scratch/chen/X/mozilla/config/revdepth.pl revdepth
chmod +x revdepth
/usr/bin/perl -I/scratch/chen/X/mozilla/config
/scratch/chen/X/mozilla/config/bd
ate.pl build_number
rm -f nsBuildID.h
/usr/bin/perl -I/scratch/chen/X/mozilla/config
/scratch/chen/X/mozilla/config/ab
outime.pl -m /scratch/chen/X/mozilla/config/milestone.txt nsBuildID.h
build_numb
er /scratch/chen/X/mozilla/config/nsBuildID.h.in
nsinstall -m 644 nsBuildID.h ../mozilla-config.h
/scratch/chen/X/mozilla/config
/nsStaticComponents.h ../dist/include
rm -f ../config/final-link-comps ../config/final-link-libs
../config/final-link-
comp-names
rm -f ../dist/bin/chrome/chromelist.txt
nsinstall -t -m 644 nsBuildID.h ../mozilla-config.h
/scratch/chen/X/mozilla/conf
ig/nsStaticComponents.h ../dist/sdk/include
nsinstall nsinstall ../dist/bin
gmake[3]: Leaving directory `/scratch/chen/X/mozilla/build/config'
/usr/bin/gmake nspr
gmake[3]: Entering directory `/scratch/chen/X/mozilla/build'
/usr/bin/gmake -C nsprpub
gmake[4]: Entering directory `/scratch/chen/X/mozilla/build/nsprpub'
cd config; /usr/bin/gmake -j1 export
gmake[5]: Entering directory
`/scratch/chen/X/mozilla/build/nsprpub/config'
gcc -o now.o -c -DXP_UNIX /scratch/chen/X/mozilla/nsprpub/config/now.c
gcc now.o -o now
gcc -o nsinstall.o -c -DXP_UNIX
/scratch/chen/X/mozilla/nsprpub/config/nsinstall
.c
gcc nsinstall.o -o nsinstall
rm -f nfspwd; cp /scratch/chen/X/mozilla/nsprpub/config/nfspwd.pl
nfspwd; chmod
+x nfspwd
rm -f /scratch/chen/X/mozilla/build/dist/bin/nspr-config
gmake[5]: Leaving directory
`/scratch/chen/X/mozilla/build/nsprpub/config'
cd pr; /usr/bin/gmake -j1 export
gmake[5]: Entering directory `/scratch/chen/X/mozilla/build/nsprpub/pr'
cd include; /usr/bin/gmake export
gmake[6]: Entering directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/include'
cd md; /usr/bin/gmake export
gmake[7]: Entering directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/include/md'
../../../config/./nsinstall -R -m 444
/scratch/chen/X/mozilla/nsprpub/pr/include
/md/_aix32.cfg /scratch/chen/X/mozilla/nsprpub/pr/include/md/_aix64.cfg
/scratch
/chen/X/mozilla/nsprpub/pr/include/md/_beos.cfg
/scratch/chen/X/mozilla/nsprpub/
pr/include/md/_bsdi.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_darwin.cf
g /scratch/chen/X/mozilla/nsprpub/pr/include/md/_dgux.cfg
/scratch/chen/X/mozill
a/nsprpub/pr/include/md/_freebsd.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/
md/_hpux32.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_hpux64.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_irix32.cfg
/scratch/chen/X/mozilla/nsprp
ub/pr/include/md/_irix64.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_linu
x.cfg /scratch/chen/X/mozilla/nsprpub/pr/include/md/_ncr.cfg
/scratch/chen/X/moz
illa/nsprpub/pr/include/md/_nec.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/m
d/_netbsd.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_nextstep.cfg /scrat
ch/chen/X/mozilla/nsprpub/pr/include/md/_nto.cfg
/scratch/chen/X/mozilla/nsprpub
/pr/include/md/_openbsd.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_openv
ms.cfg /scratch/chen/X/mozilla/nsprpub/pr/include/md/_os2.cfg
/scratch/chen/X/mo
zilla/nsprpub/pr/include/md/_osf1.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include
/md/_qnx.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_reliantunix.cfg /scr
atch/chen/X/mozilla/nsprpub/pr/include/md/_rhapsody.cfg
/scratch/chen/X/mozilla/
nsprpub/pr/include/md/_riscos.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/
_scoos.cfg /scratch/chen/X/mozilla/nsprpub/pr/include/md/_solaris.cfg
/scratch/c
hen/X/mozilla/nsprpub/pr/include/md/_sony.cfg
/scratch/chen/X/mozilla/nsprpub/pr
/include/md/_sunos4.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_unixware7
.cfg /scratch/chen/X/mozilla/nsprpub/pr/include/md/_unixware.cfg
/scratch/chen/X
/mozilla/nsprpub/pr/include/md/_win16.cfg
/scratch/chen/X/mozilla/nsprpub/pr/inc
lude/md/_win95.cfg
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_winnt.cfg /scr
atch/chen/X/mozilla/nsprpub/pr/include/md/_aix.h
/scratch/chen/X/mozilla/nsprpub
/pr/include/md/_beos.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_bsdi.h /sc
ratch/chen/X/mozilla/nsprpub/pr/include/md/_darwin.h
/scratch/chen/X/mozilla/nsp
rpub/pr/include/md/_dgux.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_freebs
d.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/_hpux.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_irix.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_l
inux.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/_macos.h
/scratch/chen/X/mo
zilla/nsprpub/pr/include/md/_ncr.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md
/_nec.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/_netbsd.h
/scratch/chen/X/
mozilla/nsprpub/pr/include/md/_nextstep.h
/scratch/chen/X/mozilla/nsprpub/pr/inc
lude/md/_nspr_pthread.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_nto.h /sc
ratch/chen/X/mozilla/nsprpub/pr/include/md/_openbsd.h
/scratch/chen/X/mozilla/ns
prpub/pr/include/md/_openvms.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_os
2_errors.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/_os2.h
/scratch/chen/X/
mozilla/nsprpub/pr/include/md/_osf1.h
/scratch/chen/X/mozilla/nsprpub/pr/include
/md/_pcos.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/prosdep.h
/scratch/che
n/X/mozilla/nsprpub/pr/include/md/_pth.h
/scratch/chen/X/mozilla/nsprpub/pr/incl
ude/md/_qnx.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_reliantunix.h /scra
tch/chen/X/mozilla/nsprpub/pr/include/md/_rhapsody.h
/scratch/chen/X/mozilla/nsp
rpub/pr/include/md/_riscos.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_scoo
s.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/_solaris.h
/scratch/chen/X/moz
illa/nsprpub/pr/include/md/_sony.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md
/_sunos4.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/sunos4.h
/scratch/chen/
X/mozilla/nsprpub/pr/include/md/_unix_errors.h
/scratch/chen/X/mozilla/nsprpub/p
r/include/md/_unixos.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_unixware.h
/scratch/chen/X/mozilla/nsprpub/pr/include/md/_win16.h
/scratch/chen/X/mozilla/
nsprpub/pr/include/md/_win32_errors.h
/scratch/chen/X/mozilla/nsprpub/pr/include
/md/_win95.h /scratch/chen/X/mozilla/nsprpub/pr/include/md/_winnt.h
/scratch/chen/X/mozilla/build/dist/include/nspr/md
../../../config/./nsinstall -R -m 444
/scratch/chen/X/mozilla/nsprpub/pr/include
/md/ /scratch/chen/X/mozilla/build/dist/include/nspr


../../../config/./nsinstall: cannot make symbolic link
/scratch/chen/X/mozilla/b
uild/dist/include/nspr/md: File exists
gmake[7]: *** [export] Error 1
gmake[7]: Leaving directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/include/md
'

gmake[6]: *** [export] Error 2
gmake[6]: Leaving directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/include'
gmake[5]: *** [export] Error 2
gmake[5]: Leaving directory `/scratch/chen/X/mozilla/build/nsprpub/pr'
gmake[4]: *** [export] Error 2
gmake[4]: Leaving directory `/scratch/chen/X/mozilla/build/nsprpub'
gmake[3]: *** [nspr] Error 2
gmake[3]: Leaving directory `/scratch/chen/X/mozilla/build'
gmake[2]: *** [default] Error 2
gmake[2]: Leaving directory `/scratch/chen/X/mozilla/build'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/scratch/chen/X/mozilla'
-------------------------------------------

and the Makefile is
------------------------------
MOD_DEPTH = ../../..
topsrcdir = /scratch/chen/X/mozilla/nsprpub
srcdir = /scratch/chen/X/mozilla/nsprpub/pr/include/md
VPATH = /scratch/chen/X/mozilla/nsprpub/pr/include/md

include $(MOD_DEPTH)/config/autoconf.mk
HEADERS = $(wildcard $(srcdir)/*.h)
CONFIGS = $(wildcard $(srcdir)/*.cfg)

include $(topsrcdir)/config/rules.mk

export:: $(MDCPUCFG_H)
$(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
$(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)

ifeq ($(OS_ARCH),OpenVMS)
# On OpenVMS mv updates the file's modified time, so we create a hard
link.
cd $(dist_includedir); \
if test ! -f prcpucfg.h; then \
dcl set file /enter=prcpucfg.h $(MDCPUCFG_H); \
fi
else
mv -f $(dist_includedir)/$(MDCPUCFG_H)
$(dist_includedir)/prcpucfg.h
endif

real_install::
$(NSINSTALL) -D $(DESTDIR)$(includedir)/md
cp $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
$(NSINSTALL) -t -m 644 $(HEADERS) $(DESTDIR)$(includedir)/md
release:: export
@echo "Copying machine-dependent prcpucfg.h"
@if test -z "$(BUILD_NUMBER)"; then \
echo "BUILD_NUMBER must be defined"; \
false; \
fi
@if test ! -d $(RELEASE_INCLUDE_DIR); then \
rm -rf $(RELEASE_INCLUDE_DIR); \
$(NSINSTALL) -D $(RELEASE_INCLUDE_DIR);\
fi
cp $(srcdir)/$(MDCPUCFG_H) $(RELEASE_INCLUDE_DIR)/prcpucfg.h

Christopher Seawood

unread,
Oct 12, 2005, 12:13:23 PM10/12/05
to
tor...@gmail.com wrote:
> hi!
> thanks for replying...but I am still getting the same error after I
> change my compiler to i686-unknown-linux-uclibc-gcc and
> --target=i686-unknown-linux-uclibc

You still don't have MDCPUCFG_H set. Can you attach your generated
nsprpub/config/autoconf.mk ?

- cls

tor...@gmail.com

unread,
Oct 12, 2005, 3:50:33 PM10/12/05
to
hm...not sure what to set for MDCPUCFG_H...after google for this
variable, only found something like MDCPUCFG_H=_aix64.cfg

here is the autoconf.mk

---------------------------------------------------
# -*- Mode: Makefile -*-

INCLUDED_AUTOCONF_MK = 1
USE_AUTOCONF = 1

MOZILLA_CLIENT = 1

prefix = /usr/local/firefox
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
includedir = ${prefix}/include/nspr
libdir = ${exec_prefix}/lib
datadir = ${prefix}/share

dist_prefix = /scratch/chen/X/mozilla/build/dist
dist_bindir = ${dist_prefix}/bin
dist_includedir = ${dist_prefix}/include/nspr
dist_libdir = ${dist_prefix}/lib

DIST = $(dist_prefix)

RELEASE_OBJDIR_NAME = _OPT.OBJ
OBJDIR_NAME = .
OBJDIR = .
OBJ_SUFFIX = o
LIB_SUFFIX = a
DLL_SUFFIX = so
ASM_SUFFIX = s
MOD_NAME = nspr20

MOD_MAJOR_VERSION = 4
MOD_MINOR_VERSION = 7
MOD_PATCH_VERSION = 0

LIBNSPR = -L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)
LIBPLC = -L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)

CROSS_COMPILE = 1
BUILD_OPT = 1

USE_CPLUS =
USE_IPV6 =
USE_N32 =
USE_64 =
GC_LEAK_DETECTOR =
ENABLE_STRIP =
USE_PTHREADS = 1
USE_BTHREADS =
PTHREADS_USER =
CLASSIC_NSPR =

AS = $(CC)
ASFLAGS = $(CFLAGS)
CC = i686-unknown-linux-uclibc-gcc
CCC = i686-unknown-linux-uclibc-g++
NS_USE_GCC = 1
GCC_USE_GNU_LD =
MSC_VER =
AR = i686-unknown-linux-uclibc-ar
AR_FLAGS = cr $@
LD = i686-unknown-linux-uclibc-ld
RANLIB = i686-unknown-linux-uclibc-ranlib
PERL = /usr/bin/perl
RC =
RCFLAGS =
STRIP = i686-unknown-linux-uclibc-strip
NSINSTALL = $(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall
FILTER =
IMPLIB =
CYGWIN_WRAPPER =

OS_CPPFLAGS =
OS_CFLAGS = $(OS_CPPFLAGS) -pipe -pthread -Os $(DSO_CFLAGS)
OS_CXXFLAGS = $(OS_CPPFLAGS) -pipe -pthread -Os $(DSO_CFLAGS)
OS_LIBS = -lpthread -ldl
OS_LDFLAGS =
OS_DLLFLAGS =
DLLFLAGS =
EXEFLAGS =
OPTIMIZER =

MKSHLIB = $(LD) $(DSO_LDOPTS) -o $@
DSO_CFLAGS =
DSO_LDOPTS =

RESOLVE_LINK_SYMBOLS =

HOST_CC = gcc
HOST_CFLAGS = -DXP_UNIX

DEFINES = -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1
-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DXP_UNIX=1 -DHAVE_LCHOWN=1
-DHAVE_STRERROR=1

MDCPUCFG_H =
PR_MD_CSRCS =
PR_MD_ASFILES =
PR_MD_ARCH_DIR = unix
CPU_ARCH =

OS_TARGET =
OS_ARCH =
OS_RELEASE =
OS_TEST =

NOSUCHFILE = /no-such-file
AIX_LINK_OPTS =
MOZ_OBJFORMAT =
ULTRASPARC_LIBRARY =

OBJECT_MODE =
ifdef OBJECT_MODE
export OBJECT_MODE
endif
VISIBILITY_FLAGS =
WRAP_SYSTEM_INCLUDES =

MACOSX_DEPLOYMENT_TARGET =
ifdef MACOSX_DEPLOYMENT_TARGET
export MACOSX_DEPLOYMENT_TARGET
endif

---------------------------------------

chen

tor...@gmail.com

unread,
Oct 12, 2005, 4:54:47 PM10/12/05
to
well, following what I found on google, I just setenv MDCPUCFG_H
_linux.cfg

now I am getting errors like

----------------------------------------
gmake[6]: Entering directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/src/io'
i686-unknown-linux-uclibc-gcc -o prfdcach.o -c -pipe -pthread -Os


-UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1
-DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DXP_UNIX=1 -DHAVE_LCHOWN=1

-DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS
-UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_
-I/scratch/chen/X/mozilla/build/dist/include/nspr
-I/scratch/chen/X/mozilla/nsprpub/pr/include
-I/scratch/chen/X/mozilla/nsprpub/pr/include/private
/scratch/chen/X/mozilla/nsprpub/pr/src/io/prfdcach.c
In file included from
/scratch/chen/X/mozilla/build/dist/include/nspr/md/prosdep.h:149,
from
/scratch/chen/X/mozilla/nsprpub/pr/include/private/primpl.h:78,
from
/scratch/chen/X/mozilla/nsprpub/pr/src/io/prfdcach.c:38:
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:600:
error: parse error before "_MDOff64_t"
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:600:
warning: data definition has no type or storage class
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:618:
error: parse error before '*' token
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:618:
error: parse error before "_MDOff64_t"
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:618:
error: `_MDOff64_t' declared as function returning a function
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:618:
error: '_MDOff64_t' redeclared as different kind of symbol
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:600:
error: previous declaration of '_MDOff64_t' was here
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:628:
error: parse error before "_MD_Lseek64"
/scratch/chen/X/mozilla/build/dist/include/nspr/md/_unixos.h:628:
warning: no semicolon at end of struct or union
gmake[6]: *** [prfdcach.o] Error 1
gmake[6]: Leaving directory
`/scratch/chen/X/mozilla/build/nsprpub/pr/src/io'
-------------------------------------------------------------------------

Christopher Seawood

unread,
Oct 12, 2005, 8:10:51 PM10/12/05
to
tor...@gmail.com wrote:
> hm...not sure what to set for MDCPUCFG_H...after google for this
> variable, only found something like MDCPUCFG_H=_aix64.cfg

You shouldn't have to explicitly set anything for MDCPUCFG_H. All
supported configurations should already have it set.

I'm not sure what's going on here. You have CROSS_COMPILE=1 set in the
mozconfig & generated autoconf.mk but OS_ARCH, OS_TARGET, etc are not
being set. OS_ARCH should at least be set to the output of 'uname -s'.
It looks like your build is being treated as some generic unknown unix
configuration.

There should have been a few lines that spit out the host/target/build
system types at the beginning of NSPR's configure stage. What do they
say? Can you send me the complete build log (with complete configure
output) and the nsprpub/config.log ?

- cls

Christopher Seawood

unread,
Oct 13, 2005, 3:17:42 AM10/13/05
to
So looking at the build log, configure can't figure out your target
platform...

checking host system type... i686-pc-linux-gnu
checking target system type... Invalid configuration
`i686-unknown-linux-uclibc': machine `i686-unknown-linux' not recognized
checking build system type... i686-pc-linux-gnu

After some testing, it just appears that mozilla's copy of config.sub
doesn't recognize the system name: 'i686-unknown-linux-uclibc' . It's
the extra -uclibc that's causing the confusion. The latest version from
gnu.org supports uclibc so you'll need to file a bug to get the mozilla
copies of config.sub & config.guess updated.

- cls

0 new messages