tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: obj directory can no longer be shared



Hi -

On Thu, 22 Nov 2012 23:31:22 +0000
John Klos <john%ziaspace.com@localhost> wrote:
> objdir/external/lgpl3/gmp/lib/libgmp/
>
> This causes libgmp to fail like this:
>
> --- lshift.o ---
> #   compile  libgmp/lshift.o
> /usr/src/../tools/bin/arm--netbsdelf-gcc   -fPIC
> -Wno-stack-protector  -c lshift.s -o lshift.o
> lshift.s: Assembler messages:
> lshift.s:75: Error: unrecognized symbol type ""
> lshift.s:78: Error: bad instruction `moveml %d2-%d6/%a2,%sp'

Just found something similar on amd64:

$ pwd
/home/drochner/netbsd/work/external/lgpl3/gmp/lib/libgmp
$ make depend
[...]
cp 
/home/drochner/netbsd/work/external/lgpl3/gmp/lib/libgmp/arch/x86_64/config.m4
 /home/drochner/netbsd/work/external/lgpl3/gmp/lib/libgmp/config.m4
[...]
nbm4: 
/home/drochner/netbsd/work/external/lgpl3/gmp/lib/libgmp/../../dist/mpn/x86_64/aors_n.asm
 at line 21: include(../config.m4): No such file or directory
*** Error code 1

Using ${.TARGET} as done in arch/x86_64/Makefile.inc is wrong because
${.OBJDIR} gets resolved too early. This makes that objdir is ignored
and .CURDIR is written into. arm/Makefile.inc looks similar.
Some idiot has fixed it for i386 only.

best regards
Matthias


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index