threads / discuss / 32113

Unable to compile Git on HP-UX B.11.31 U ia64

Subject: Unable to compile Git on HP-UX B.11.31 U ia64

## tl;dr

3 messages between Nov 14, 2012 and Nov 14, 2012.

replies: 2people: 2as markdown or json

Quintin Ronan· Nov 14, 2012, 11:18 UTC · lore
Hello,
I’m trying to compile git 1.7 on a HPUX server using make. The ./configure worked well :

configure: Setting lib to 'lib' (the default) configure: Will try -pthread then -lpthread to enable POSIX Threads. configure: CHECKS for site configuration configure: CHECKS for programs checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... no checking for cc option to accept ISO C89... none needed checking for inline... __inline checking if linker supports -R... no checking if linker supports -Wl,-rpath,... no checking if linker supports -rpath... no configure: WARNING: linker does not support runtime path to dynamic libraries checking for gar... no checking for ar... ar checking for gtar... no checking for tar... tar checking for gnudiff... no checking for gdiff... no checking for diff... diff checking for asciidoc... no configure: CHECKS for libraries checking for SHA1_Init in -lcrypto... yes checking for curl_global_init in -lcurl... no checking for XML_ParserCreate in -lexpat... no checking for iconv in -lc... yes checking for deflateBound in -lz... no checking for socket in -lc... yes checking for inet_ntop... yes checking for inet_pton... yes checking for hstrerror... no checking for hstrerror in -lresolv... no checking for basename in -lc... yes checking for gettext in -lc... no checking how to run the C preprocessor... cc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking libintl.h usability... no checking libintl.h presence... no checking for libintl.h... no configure: CHECKS for header files checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking for inttypes.h... (cached) yes checking for old iconv()... no configure: CHECKS for typedefs, structures, and compiler characteristics checking for socklen_t... yes checking for struct dirent.d_ino... yes checking for struct dirent.d_type... no checking for struct sockaddr_storage... yes checking for struct addrinfo... yes checking for getaddrinfo... yes checking for library containing getaddrinfo... none required checking whether the platform regex can handle null bytes... no checking whether system succeeds to read fopen'ed directory... yes checking whether snprintf() and/or vsnprintf() return bogus value... yes configure: CHECKS for library functions checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking paths.h usability... no checking paths.h presence... no checking for paths.h... no checking libcharset.h usability... no checking libcharset.h presence... no checking for libcharset.h... no checking for locale_charset in -liconv... no checking for locale_charset in -lcharset... no checking for strcasestr... no checking for strtok_r... yes checking for library containing strtok_r... none required checking for fnmatch... yes checking for library containing fnmatch... none required checking whether the fnmatch function supports the FNMATCH_CASEFOLD GNU extension... no checking for memmem... no checking for strlcpy... no checking for uintmax_t... yes checking for strtoumax... yes checking for library containing strtoumax... none required checking for setenv... yes checking for library containing setenv... none required checking for unsetenv... yes checking for library containing unsetenv... none required checking for mkdtemp... no checking for mkstemps... no checking for initgroups... yes checking for library containing initgroups... none required checking Checking for POSIX Threads with '-mt'... yes configure: creating ./config.status config.status: creating config.mak.autogen config.status: executing config.mak.autogen commands

But when i run make (with –d) it simply doesn’t work with a message which isn’t really helpfull :
Make: line 313: syntax error.  Stop.
setvar: $ = $ noreset = 0 envflg = 0 Mflags = 040101
Reading "=" type args on command line.
Reading internal rules.
setvar: MAKE = make noreset = 0 envflg = 0 Mflags = 040101
setvar: YACC = yacc noreset = 0 envflg = 0 Mflags = 040101
setvar: YFLAGS =  noreset = 0 envflg = 0 Mflags = 040101
setvar: LEX = lex noreset = 0 envflg = 0 Mflags = 040101
setvar: LFLAGS =  noreset = 0 envflg = 0 Mflags = 040101
setvar: LD = ld noreset = 0 envflg = 0 Mflags = 040101
setvar: LDFLAGS =  noreset = 0 envflg = 0 Mflags = 040101
setvar: CC = cc noreset = 0 envflg = 0 Mflags = 040101
setvar: FC = f90 noreset = 0 envflg = 0 Mflags = 040101
setvar: PC = pc noreset = 0 envflg = 0 Mflags = 040101
setvar: CFLAGS = -O noreset = 0 envflg = 0 Mflags = 040101
setvar: PFLAGS = -O noreset = 0 envflg = 0 Mflags = 040101
setvar: FFLAGS = -O noreset = 0 envflg = 0 Mflags = 040101
setvar: RFLAGS = -O noreset = 0 envflg = 0 Mflags = 040101
setvar: AS = as noreset = 0 envflg = 0 Mflags = 040101
setvar: ASFLAGS =  noreset = 0 envflg = 0 Mflags = 040101
setvar: ARFLAGS = -rv noreset = 0 envflg = 0 Mflags = 040101
setvar: GET = get noreset = 0 envflg = 0 Mflags = 040101
setvar: GFLAGS =  noreset = 0 envflg = 0 Mflags = 040101
setvar: CXXFLAGS = -O noreset = 0 envflg = 0 Mflags = 040101
setvar: CXX = CC noreset = 0 envflg = 0 Mflags = 040101
setvar: CXX = aCC noreset = 0 envflg = 0 Mflags = 040101
setvar: SCCSFLAGS =  noreset = 0 envflg = 0 Mflags = 040101
setvar: SCCSGETFLAGS = -s noreset = 0 envflg = 0 Mflags = 040101
Reading environment.
setvar: _ = /usr/bin/make noreset = 0 envflg = -1 Mflags = 040005
setvar: MANPATH = /usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/ipf/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/samba/cfsm_man:/opt/cifsclient/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man:/opt/graphics/common/man:/opt/amgr/man:/opt/amgr/man/%L:/opt/sec_mgmt/share/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/dsau/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/gnome/man:/opt/perf/man/%L:/opt/perf/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/usr/contrib/kwdb/share/man:/opt/perl_32/man:/opt/perl_64/man:/opt/prm/man/%L:/opt/prm/man:/opt/sfmdb/pgsql/man:/opt/sfm/share/man:/opt/swm/share/man/%L:/opt/swm/share/man:/opt/sec_mgmt/share/man/%L:/opt/ssh/share/man:/opt/swa/share/man/%L:/opt/swa/share/man:/opt/VRTS/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/hpvm/man/%L:/opt/hpvm/share/man/%L:/opt/VRTS/man noreset = 0 envflg = -1 Mflags = 040005
setvar: SSH_TTY = /dev/pts/0 noreset = 0 envflg = -1 Mflags = 040005
setvar: PATH = /usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/gnome/bin:/opt/perf/bin:/opt/ignite/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/gwlm/bin:/opt/hpvm/bin:/opt/gvsd/bin:/sbin:/usr/local/bin/:/home/root:/opt/VRTSgab:/opt/VRTSllt:/opt/VRTSvcs/bin:/usr/local/pa20_32/bin:/usr/local/pa20_64/bin:/opt/hpjmeter/bin noreset = 0 envflg = -1 Mflags = 040005
setvar: COLUMNS = 204 noreset = 0 envflg = -1 Mflags = 040005
setvar: EDITOR = vi noreset = 0 envflg = -1 Mflags = 040005
setvar: HISTFILE = /root/.sh_history/.sh_history.pts0 noreset = 0 envflg = -1 Mflags = 040005
setvar: LOGNAME = root noreset = 0 envflg = -1 Mflags = 040005
setvar: MAIL = /var/mail/root noreset = 0 envflg = -1 Mflags = 040005
setvar: SFTP_UMASK =  noreset = 0 envflg = -1 Mflags = 040005
setvar: ERASE = ^H noreset = 0 envflg = -1 Mflags = 040005
setvar: PS1 = obux071:[VM]:$PWD\# noreset = 0 envflg = -1 Mflags = 040005
setvar: SFTP_PERMIT_CHOWN = 1 noreset = 0 envflg = -1 Mflags = 040005
setvar: USER = root noreset = 0 envflg = -1 Mflags = 040005
setvar: HOME = /root noreset = 0 envflg = -1 Mflags = 040005
setvar: SSH_CONNECTION = 10.174.53.132 2322 10.238.22.79 22 noreset = 0 envflg = -1 Mflags = 040005
setvar: SSH_CLIENT = 10.174.53.132 2322 22 noreset = 0 envflg = -1 Mflags = 040005
setvar: TERM = xterm noreset = 0 envflg = -1 Mflags = 040005
setvar: PWD = /root/git/git-1.7.12.4 noreset = 0 envflg = -1 Mflags = 040005
setvar: TZ = MET-1METDST noreset = 0 envflg = -1 Mflags = 040005
setvar: SFTP_PERMIT_CHMOD = 1 noreset = 0 envflg = -1 Mflags = 040005
setvar: LINES = 53 noreset = 0 envflg = -1 Mflags = 040005
setvar: PROJECTDIR =  noreset = 0 envflg = 0 Mflags = 040001
setvar: SHELL = /usr/bin/sh noreset = 0 envflg = 0 Mflags = 040001
Reading Makefile
(Ignoring)Include file: "GIT-VERSION-FILE"
Make: line 313: syntax error.  Stop.
Can you help me ?
Cordialement,

Ronan QUINTIN TMA EAI - Division Telecom & Media Sopra group. Centre Espace Performance - Batiment S 35769 St Grégoire Phone : +33 (0)2 23 25 34 71 ronan.quintin@sopragroup.com - www.sopragroup.com

Ce message peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite en l'absence d'autorisation explicite de l'émetteur. Dans l'hypothèse où vous auriez reçu par erreur ce message, merci de le renvoyer à l’émetteur et de détruire toute copie.
 Pensez à l’environnement avant d’imprimer.
Stefano Lattarini· Nov 14, 2012, 11:25 UTC · re: Quintin Ronan · lore

Re: Unable to compile Git on HP-UX B.11.31 U ia64

On 11/14/2012 12:18 PM, Quintin Ronan wrote:
Show 15 quoted lines
> Hello,
> 
> I’m trying to compile git 1.7 on a HPUX server using make.
> The ./configure worked well :
>
> [SNIP]
> 
> But when i run make (with –d) it simply doesn’t work with a message
> which isn’t really helpfull :
> 
>   [SNIP]
>   Make: line 313: syntax error.  Stop.
> 
> Can you help me ?
> 

The Git build system requires GNU make, but it seems to me you are using your system native make instead. That won't work. It might be the case GNU make is installed on your system, but is named something like 'gmake' or 'gnumake' rather than just 'make'. What happens if you run the following?

   $ gmake --version
   $ gnumake --version

If GNU make is not installed on your system, you can download the latest version from here:

    <http://ftp.gnu.org/gnu/make/make-3.82.tar.gz>
For more information about GNU make:
    <http://www.gnu.org/software/make/>
HTH,
  Stefano
Quintin Ronan· Nov 14, 2012, 11:31 UTC · re: Stefano Lattarini · lore

RE: Unable to compile Git on HP-UX B.11.31 U ia64

Hello Stefano,
Thank you for your quick answer. You are right, HP-UX have a gmake executable :

#gmake --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 ia64-hp-hpux11.31
I will try to use this instead of make 
Cordialement,

Ronan QUINTIN TMA EAI - Division Telecom & Media Sopra group. Centre Espace Performance - Batiment S 35769 St Grégoire Phone : +33 (0)2 23 25 34 71 ronan.quintin@sopragroup.com - www.sopragroup.com

Ce message peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite en l'absence d'autorisation explicite de l'émetteur. Dans l'hypothèse où vous auriez reçu par erreur ce message, merci de le renvoyer à l’émetteur et de détruire toute copie.
 Pensez à l’environnement avant d’imprimer.

-----Message d'origine----- De : Stefano Lattarini [mailto:stefano.lattarini@gmail.com] Envoyé : mercredi 14 novembre 2012 12:26 À : Quintin Ronan Cc : git@vger.kernel.org Objet : Re: Unable to compile Git on HP-UX B.11.31 U ia64

On 11/14/2012 12:18 PM, Quintin Ronan wrote:
Show 15 quoted lines
> Hello,
> 
> I’m trying to compile git 1.7 on a HPUX server using make.
> The ./configure worked well :
>
> [SNIP]
> 
> But when i run make (with –d) it simply doesn’t work with a message
> which isn’t really helpfull :
> 
>   [SNIP]
>   Make: line 313: syntax error.  Stop.
> 
> Can you help me ?
> 

The Git build system requires GNU make, but it seems to me you are using your system native make instead. That won't work. It might be the case GNU make is installed on your system, but is named something like 'gmake' or 'gnumake' rather than just 'make'. What happens if you run the following?

   $ gmake --version
   $ gnumake --version

If GNU make is not installed on your system, you can download the latest version from here:

    <http://ftp.gnu.org/gnu/make/make-3.82.tar.gz>
For more information about GNU make:
    <http://www.gnu.org/software/make/>
HTH,
  Stefano

← back to recent threads