pkgsrc-Bugs archive

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

Re: pkg/38931 devel/glib2 won't compile on NetBSD/m68k



The following reply was made to PR pkg/38931; it has been noted by GNATS.

From: Paul Ripke <stix%stix.id.au@localhost>
To: NetBSD gnats-bugs <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/38931 devel/glib2 won't compile on NetBSD/m68k
Date: Mon, 18 Aug 2008 20:48:04 +1000

 Looks like a tool chain bug. On mac68k:
 
 kitt:ksh$ touch z.c
 kitt:ksh$ cc -v -shared z.c -o z.so -pthread
 Using built-in specs.
 Target: m68k--netbsdelf
 Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure 
--enable-long-long --disable-multilib --enable-threads --disable-symvers 
--build=x86_64-unknown-netbsd4.99.52 --host=m68k--netbsdelf 
--target=m68k--netbsdelf --enable-__cxa_atexit
 Thread model: posix
 gcc version 4.1.3 20080202 prerelease (NetBSD nb1 20080202)
  /usr/libexec/cc1 -quiet -v -D_REENTRANT -D_PTHREADS -D__mc68020__ 
-D__HAVE_68881__ -D__HAVE_FPU__ z.c -quiet -dumpbase z.c -auxbase z -version -o 
/var/tmp//ccDtr9IG.s
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/include
 End of search list.
 GNU C version 4.1.3 20080202 prerelease (NetBSD nb1 20080202) (m68k--netbsdelf)
         compiled by GNU C version 4.1.3 20080202 (prerelease) (NetBSD nb1 
20080202).
 GGC heuristics: --param ggc-min-expand=32 --param ggc-min-heapsize=8704
 Compiler executable checksum: 52b0f4aed007195019e0a85f5aa52c77
  as -m68020 -o /var/tmp//ccy6wVOJ.o /var/tmp//ccDtr9IG.s
  ld -shared -o z.so /usr/lib/crti.o /usr/lib/crtbeginS.o /var/tmp//ccy6wVOJ.o 
-lgcc_pic -lc -lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o
 
 Note '-lc'.
 While on eg. amd64:
 
 marvin:ksh$ touch z.c
 marvin:ksh$ cc -v -shared z.c -o z.so -pthread
 Using built-in specs.
 Target: x86_64--netbsd
 Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure 
--enable-long-long --disable-multilib --enable-threads --disable-symvers 
--build=x86_64-unknown-netbsd4.99.52 --host=x86_64--netbsd 
--target=x86_64--netbsd --enable-__cxa_atexit
 Thread model: posix
 gcc version 4.1.3 20080202 prerelease (NetBSD nb1 20080202)
  /usr/libexec/cc1 -quiet -v -D_REENTRANT -D_PTHREADS z.c -quiet -dumpbase z.c 
-mtune=k8 -auxbase z -version -o /var/tmp//ccv8ECOL.s
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/include
 End of search list.
 GNU C version 4.1.3 20080202 prerelease (NetBSD nb1 20080202) (x86_64--netbsd)
         compiled by GNU C version 4.1.3 20080202 (prerelease) (NetBSD nb1 
20080202).
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 Compiler executable checksum: 90c2bdf9445ebde89257a5b1af758b20
  as -V -Qy -o /var/tmp//ccgYUWfo.o /var/tmp//ccv8ECOL.s
 GNU assembler version 2.16.1 (x86_64--netbsd) using BFD version 2.16.1
  ld -shared -o z.so /usr/lib/crti.o /usr/lib/crtbeginS.o /var/tmp//ccgYUWfo.o 
-lgcc_pic -lpthread -lc -lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o
 
 We have a dependency on -lc and -lpthread.
 
 If I'm reading the code right in src/gnu/dist/gcc4/gcc/config/netbsd.h,
 I can't see how it would ever create a dependency on libpthread if
 -shared is given, unless those options are cumulative. I don't know
 gcc foo enough to solve this tonight.
 
 -- 
 Paul Ripke
 


Home | Main Index | Thread Index | Old Index