byzhang / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

build_detect_platform line ending error #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. git clone https://code.google.com/p/leveldb/
2. cd leveldb
3. make

What is the expected output? What do you see instead?
It should compile. I get an error:
$ make
/bin/sh: 1: ./build_detect_platform: not found
Makefile:18: build_config.mk: No such file or directory
make: *** No rule to make target `build_config.mk'.  Stop.

./build_detect_platform actually exists, but when executed it prints:
$ ./build_detect_platform 
bash: ./build_detect_platform: /bin/sh^M: bad interpreter: No such file or 
directory

What version of the product are you using? On what operating system?
leveldb 1.9, Ubuntu 12.04.

Please provide any additional information below.
'dos2unix build_detect_platform' fixes the problem

Original issue reported on code.google.com by gmarg...@gmail.com on 22 Jan 2013 at 1:41

GoogleCodeExporter commented 9 years ago
This was my problem, there was a:
---------
[core]
       autocrlf = true
---------
in my .gitconfig which was replacing line endings.

Original comment by gmarg...@gmail.com on 22 Jan 2013 at 2:14

GoogleCodeExporter commented 9 years ago

Original comment by dgrogan@chromium.org on 22 Jan 2013 at 5:55