Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006214OCamlconfigure and build/installpublic2013-10-28 11:172014-02-19 16:34
Assigned Toshinwell 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSSolarisOS Version8
Product Version4.01.0 
Target VersionFixed in Version4.02.0+dev 
Summary0006214: "sed: comment garbled" on make world
DescriptionA customer is trying to build our software on Solaris 8 (they had built successfully with 3.10.2 a number of years back on this same machine).

But with 4.01.0, they get:

sed -e 's|%%LIBDIR%%|/usr/local/lib/ocaml|' \
    -e 's|%%BYTERUN%%|/usr/local/bin/ocamlrun|' \
    -e 's|%%CCOMPTYPE%%|cc|' \
    -e 's|%%BYTECC%%|gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC|' \
    -e 's|%%NATIVECC%%|gcc -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT|' \
    -e 's|%%PACKLD%%|ld -r -o\|' \
    -e 's|%%BYTECCLIBS%%|-lnsl -lsocket -lm -ldl -lcurses -lpthread -lposix4|' \
    -e 's|%%NATIVECCLIBS%%|-lnsl -lsocket -lm -ldl|' \
    -e 's|%%RANLIBCMD%%|ranlib|' \
    -e 's|%%ARCMD%%|ar|' \
    -e 's|%%CC_PROFILE%%|-pg|' \
    -e 's|%%ARCH%%|sparc|' \
    -e 's|%%MODEL%%|default|' \
    -e 's|%%SYSTEM%%|solaris|' \
    -e 's|%%EXT_OBJ%%|.o|' \
    -e 's|%%EXT_ASM%%|.s|' \
    -e 's|%%EXT_LIB%%|.a|' \
    -e 's|%%EXT_DLL%%|.so|' \
    -e 's|%%SYSTHREAD_SUPPORT%%|true|' \
    -e 's|%%ASM%%|as|' \
    -e 's|%%ASM_CFI_SUPPORTED%%|false|' \
    -e 's|%%WITH_FRAME_POINTERS%%|false|' \
    -e 's|%%MKDLL%%|gcc -shared|' \
    -e 's|%%MKEXE%%|gcc|' \
    -e 's|%%MKMAINDLL%%|gcc -shared|' \
    utils/config.mlp > utils/
sed: command garbled: s|%%PACKLD%%|ld -r -o\|
*** Error code 2
make: Fatal error: Command failed for target `utils/'
Current working directory /export/home/admin/cpdf.solaris8.2013.10.28/ocaml-4.01.0
*** Error code 1
make: Fatal error: Command failed for target `world'

The extra '\' in the PACKLD line does indeed look superfluous or wrong, but I don't know anything about sed in general, or solaris sed in particular.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
doligez (administrator)
2013-10-29 13:38

What's missing is a space after that backslash. It was stripped off (probably by make or by the shell) from the PACKLD line in config/Makefile.
johnwhitington (reporter)
2013-10-29 19:22

Right, I will try with GNU make instead of solaris make, and see if that helps.
johnwhitington (reporter)
2013-10-29 19:32

Customer reports that GNU make works fine.

The INSTALL instructions do suggest GNU make quite strongly, so this is a false report and can be closed.

It's also worth mentioning that the INSTALL file says:

* GNU make is needed to build ocamlbuild and camlp4. If your system's
  default make is not GNU make, you need to define the GNUMAKE environment
  variable to the name of GNU make, typically with this command:

    export GNUMAKE=gnumake

I've never seen "gnumake" used, but have seen several systems where it's installed as "gmake".
doligez (administrator)
2014-02-19 16:34

Changed gnumake to gmake and added a warning about Solaris in the "common problems" section.
Done in trunk (rev 14438).

- Issue History
Date Modified Username Field Change
2013-10-28 11:17 johnwhitington New Issue
2013-10-28 17:04 shinwell Assigned To => shinwell
2013-10-28 17:04 shinwell Status new => assigned
2013-10-29 13:38 doligez Note Added: 0010536
2013-10-29 19:22 johnwhitington Note Added: 0010539
2013-10-29 19:32 johnwhitington Note Added: 0010540
2014-02-19 16:34 doligez Note Added: 0010948
2014-02-19 16:34 doligez Status assigned => closed
2014-02-19 16:34 doligez Resolution open => no change required
2014-02-19 16:34 doligez Fixed in Version => 4.02.0+dev
2017-02-23 16:38 doligez Category OCaml internal build/install (Makefiles, configure) => configure and build/install

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker