<p>i have the same error and i have 8GB RAM</p>
<p>~/src/osm2pgsql/build $ free -h<br>
total used free shared buff/cache available<br>
Memoria: 7,6G 2,1G 1,4G 315M 4,1G 4,6G<br>
Swap: 7,8G 1,3M 7,8G</p>
<p>collect2: error: ld returned 1 exit status<br>
CMakeFiles/osm2pgsql.dir/build.make:104: fallo en las instrucciones para el objetivo 'osm2pgsql'<br>
make[2]: *** [osm2pgsql] Error 1<br>
CMakeFiles/Makefile2:552: fallo en las instrucciones para el objetivo 'CMakeFiles/osm2pgsql.dir/all'<br>
make[1]: *** [CMakeFiles/osm2pgsql.dir/all] Error 2<br>
Makefile:138: fallo en las instrucciones para el objetivo 'all'<br>
make: *** [all] Error 2</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/627#issuecomment-414786831">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7vp8hWUDnVa75pZc-kB8q1mwOl-bks5uTFnOgaJpZM4KR0qK">mute the thread</a>.<img src="https://github.com/notifications/beacon/AD2-7iL-qkKCPLAeFjesRB0ozGtQOy4yks5uTFnOgaJpZM4KR0qK.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rolonja in #627: i have the same error and i have 8GB RAM\r\n\r\n~/src/osm2pgsql/build $ free -h\r\n total used free shared buff/cache available\r\nMemoria: 7,6G 2,1G 1,4G 315M 4,1G 4,6G\r\nSwap: 7,8G 1,3M 7,8G\r\n\r\ncollect2: error: ld returned 1 exit status\r\nCMakeFiles/osm2pgsql.dir/build.make:104: fallo en las instrucciones para el objetivo 'osm2pgsql'\r\nmake[2]: *** [osm2pgsql] Error 1\r\nCMakeFiles/Makefile2:552: fallo en las instrucciones para el objetivo 'CMakeFiles/osm2pgsql.dir/all'\r\nmake[1]: *** [CMakeFiles/osm2pgsql.dir/all] Error 2\r\nMakefile:138: fallo en las instrucciones para el objetivo 'all'\r\nmake: *** [all] Error 2\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/osm2pgsql/issues/627#issuecomment-414786831"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/627#issuecomment-414786831",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/627#issuecomment-414786831",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [openstreetmap/osm2pgsql] Unable to build (#627)",
"sections": [
{
"text": "",
"activityTitle": "**rolonja**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@rolonja",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/osm2pgsql\",\n\"issueId\": 627,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/osm2pgsql/issues/627#issuecomment-414786831"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 172444298\n}"
}
],
"themeColor": "26292E"
}
]</script>