Opened 14 years ago

Closed 11 years ago

#27978 closed defect (invalid)

gperf build error: in ../lib/libgp.a, file was built for unsupported file format which is not the architecture being linked (x86_64)

Reported by: hongyi444@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: patrick.sizun@…, ryandesign (Ryan Carsten Schmidt)
Port: gperf

Description

--->  Fetching gperf
--->  Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf
--->  Verifying checksum(s) for gperf
--->  Extracting gperf
--->  Configuring gperf
--->  Building gperf
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install gperf
Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/main.log
Error: The following dependencies were not installed: apr-util libiconv gperf sqlite3 ncurses ncursesw readline cyrus-sasl2 openssl zlib gettext neon serf
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

main.log

version:1
:debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf/work
:debug:main Executing org.macports.main (gperf)
:msg:main --->  Fetching gperf
:debug:fetch fetch phase started at Sat Jan 15 14:54:53 CST 2011
:debug:fetch Executing org.macports.fetch (gperf)
:info:fetch --->  gperf-3.0.4.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/gperf
:debug:fetch Pinging mirrors.ibiblio.org...
:debug:fetch Pinging mirrors.kernel.org...
:debug:fetch Pinging www.mirrorservice.org...
:debug:fetch Pinging mirror.facebook.net...
:debug:fetch Pinging ftp.funet.fi...
:debug:fetch Pinging ftp.kddlabs.co.jp...
:debug:fetch Pinging ftp.dti.ad.jp...
:debug:fetch Pinging ftp.informatik.hu-berlin.de...
:debug:fetch Pinging ftp.lip6.fr...
:debug:fetch Pinging ftp.chg.ru...
:debug:fetch Pinging mirror.internode.on.net...
:debug:fetch Pinging mirror.aarnet.edu.au...
:debug:fetch Pinging ftp.gnu.org...
:debug:fetch Pinging distfiles.macports.org...
:debug:fetch Pinging aarnet.au.distfiles.macports.org...
:debug:fetch Pinging cjj.kr.distfiles.macports.org...
:debug:fetch Pinging lil.fr.distfiles.macports.org...
:debug:fetch Pinging sea.us.distfiles.macports.org...
:debug:fetch Pinging ykf.ca.distfiles.macports.org...
:debug:fetch mirrors.ibiblio.org ping time is 48.810
:debug:fetch mirrors.kernel.org ping time is 67.764
:debug:fetch www.mirrorservice.org ping time is 142.986
:debug:fetch mirror.facebook.net ping time is 79.710
:debug:fetch ftp.funet.fi ping time is 148.041
:debug:fetch ftp.kddlabs.co.jp ping time is 10000
:debug:fetch ftp.dti.ad.jp ping time is 152.722
:debug:fetch ftp.informatik.hu-berlin.de ping time is 10000
:debug:fetch ftp.lip6.fr ping time is 145.527
:debug:fetch ftp.chg.ru ping time is 182.764
:debug:fetch mirror.internode.on.net ping time is 258.839
:debug:fetch mirror.aarnet.edu.au ping time is 211.121
:debug:fetch ftp.gnu.org ping time is 10000
:debug:fetch distfiles.macports.org ping time is 68.492
:debug:fetch aarnet.au.distfiles.macports.org ping time is 211.178
:debug:fetch cjj.kr.distfiles.macports.org ping time is 10000
:debug:fetch lil.fr.distfiles.macports.org ping time is 124.083
:debug:fetch sea.us.distfiles.macports.org ping time is 10000
:debug:fetch ykf.ca.distfiles.macports.org ping time is 38.186
:msg:fetch --->  Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf
:msg:fetch --->  Verifying checksum(s) for gperf
:debug:checksum checksum phase started at Sat Jan 15 14:54:57 CST 2011
:debug:checksum Executing org.macports.checksum (gperf)
:info:checksum --->  Checksumming gperf-3.0.4.tar.gz
:debug:checksum Correct (md5) checksum for gperf-3.0.4.tar.gz
:debug:checksum Correct (sha1) checksum for gperf-3.0.4.tar.gz
:debug:checksum Correct (rmd160) checksum for gperf-3.0.4.tar.gz
:msg:checksum --->  Extracting gperf
:debug:extract extract phase started at Sat Jan 15 14:54:57 CST 2011
:debug:extract Executing org.macports.extract (gperf)
:info:extract --->  Extracting gperf-3.0.4.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:patch patch phase started at Sat Jan 15 14:54:57 CST 2011
:debug:patch Executing org.macports.patch (gperf)
:msg:patch --->  Configuring gperf
:debug:patch Using compiler 'Mac OS X gcc 4.2'
:debug:configure configure phase started at Sat Jan 15 14:54:57 CST 2011
:debug:configure Executing org.macports.configure (gperf)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4" && ./configure --prefix=/opt/local --infodir=/opt/local/share/info'
:info:configure checking whether make sets $(MAKE)... yes
:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:info:configure === configuring in lib (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/lib)
:info:configure configure: running /bin/sh ./configure '--prefix=/opt/local'  '--infodir=/opt/local/share/info' --cache-file=/dev/null --srcdir=.
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for gcc... /usr/bin/gcc-4.2
:info:configure checking for C compiler default output file name... a.out
:info:configure checking whether the C compiler works... yes
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of executables... 
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/gcc-4.2 accepts -g... yes
:info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
:info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
:info:configure checking whether we are using the GNU C++ compiler... yes
:info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes
:info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E
:info:configure checking for ranlib... ranlib
:info:configure checking for a BSD compatible install... /usr/bin/install -c
:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:info:configure === configuring in src (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/src)
:info:configure configure: running /bin/sh ./configure '--prefix=/opt/local'  '--infodir=/opt/local/share/info' --cache-file=/dev/null --srcdir=.
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for gcc... /usr/bin/gcc-4.2
:info:configure checking for C compiler default output file name... a.out
:info:configure checking whether the C compiler works... yes
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of executables... 
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/gcc-4.2 accepts -g... yes
:info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
:info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
:info:configure checking whether we are using the GNU C++ compiler... yes
:info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes
:info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E
:info:configure checking for a BSD compatible install... /usr/bin/install -c
:info:configure checking for stack-allocated variable-size arrays... yes
:info:configure checking for rand in -lm... yes
:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:info:configure config.status: creating config.h
:info:configure === configuring in tests (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/tests)
:info:configure configure: running /bin/sh ./configure '--prefix=/opt/local'  '--infodir=/opt/local/share/info' --cache-file=/dev/null --srcdir=.
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for gcc... /usr/bin/gcc-4.2
:info:configure checking for C compiler default output file name... a.out
:info:configure checking whether the C compiler works... yes
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of executables... 
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/gcc-4.2 accepts -g... yes
:info:configure checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
:info:configure checking how to run the C preprocessor... /usr/bin/gcc-4.2 -E
:info:configure checking whether we are using the GNU C++ compiler... yes
:info:configure checking whether /usr/bin/g++-4.2 accepts -g... yes
:info:configure checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E
:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:info:configure === configuring in doc (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/doc)
:info:configure configure: running /bin/sh ./configure '--prefix=/opt/local'  '--infodir=/opt/local/share/info' --cache-file=/dev/null --srcdir=.
:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking for a BSD compatible install... /usr/bin/install -c
:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:msg:configure --->  Building gperf
:debug:build build phase started at Sat Jan 15 14:55:01 CST 2011
:debug:build Executing org.macports.build (gperf)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4" && /usr/bin/make -j4 all'
:info:build cd lib; /usr/bin/make all
:info:build /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -I. -c ./getopt.c
:info:build /usr/bin/gcc-4.2 -pipe -O2 -arch x86_64 -I. -c ./getopt1.c
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -c ./getline.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -c ./hash.cc
:info:build ./getopt.c: In function '_getopt_internal':
:info:build ./getopt.c:646: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:670: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:700: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:716: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:721: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:832: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:855: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:875: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:889: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build ./getopt.c:893: warning: incompatible implicit declaration of built-in function 'strlen'
:info:build rm -f libgp.a
:info:build ar rc libgp.a getopt.o getopt1.o getline.o hash.o
:info:build ranlib libgp.a
:info:build cd src; /usr/bin/make all
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./version.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./positions.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./options.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./keyword.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./keyword-list.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./input.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./bool-array.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./hash-table.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./search.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./output.cc
:info:build ./output.cc: In member function 'void Output::output_lookup_array() const':
:info:build ./output.cc:1304: warning: format '%d' expects type 'int', but argument 3 has type 'long int'
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -I. -I./../lib -c ./main.cc
:info:build /usr/bin/g++-4.2 -pipe -O2 -arch x86_64 -L/opt/local/lib -arch x86_64 -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
:info:build ld: warning: in ../lib/libgp.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
:info:build Undefined symbols:
:info:build   "hashpjw(unsigned char const*, unsigned int)", referenced from:
:info:build       Hash_Table::insert(KeywordExt*)       in hash-table.o
:info:build   "get_delim(char**, unsigned long*, int, __sFILE*)", referenced from:
:info:build       Input::read_input()      in input.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [gperf] Error 1
:info:build make: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4" && /usr/bin/make -j4 all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for gperf): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install gperf
:notice:build Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/main.log

Change History (6)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to mcalhoun@…
Port: gperf added
Summary: gperf build errorgperf build error: in ../lib/libgp.a, file was built for unsupported file format which is not the architecture being linked (x86_64)

Looks like the same issue you reported against dirac in #27977. Sounds like something fundamentally strange on your system, but I don't know what. You are running 10.6? On what computer with what processor?

comment:2 in reply to:  1 Changed 14 years ago by hongyi444@…

Replying to ryandesign@…:

Looks like the same issue you reported against dirac in #27977. Sounds like something fundamentally strange on your system, but I don't know what. You are running 10.6? On what computer with what processor?

It might. I seem to encounter more problems than usual... I'm using Macbook pro 2.66GHz i7 processor, Mac OS X 10.6.6. Do you have any suggestion what should I try?

comment:3 Changed 14 years ago by patrick.sizun@…

Cc: patrick.sizun@… added

Cc Me!

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

In both tickets, the library whose architecture is being complained about was created by "ar". Perhaps your "ar" program was somehow replaced by an older version that is not compatible with x86_64 binaries. Try reinstalling the latest Xcode (for Snow Leopard, 3.2.6 is fine).

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Please show the output of ls -l /usr/bin/ar /usr/bin/ranlib /usr/bin/libtool. On my system with Xcode 3.2.6 I get:

-r-xr-xr-x  1 root  wheel   70464 24 Oct  2010 /usr/bin/ar
-r-xr-xr-x  1 root  wheel  357808 24 Oct  2010 /usr/bin/libtool
lrwxr-xr-x  1 root  wheel       7 30 Apr  2010 /usr/bin/ranlib -> libtool

comment:6 Changed 11 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: invalid
Status: newclosed

This seems to be an issue with a particular computer setup.

Note: See TracTickets for help on using tickets.