Skip to contentSkip to conversation

configure: fix elf2dmp check

PATCH Applied Roman Kagan 3 participants 5 messages Nov 23, 2018 – Nov 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: fix elf2dmp check

elf2dmp is keyed on "$posix" = "yes", but "$posix" doesn't seem to be set anywhere.

The original intent was presumably to skip building it on Windows, so check for "$mingw32" = "no" instead.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 0a3c6a72c3..fc6ce0065d 100755
@@ -5722,7 +5722,7 @@ if test "$want_tools" = "yes" ; then
   if [ "$ivshmem" = "yes" ]; then
     tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
   fi
-  if [ "$posix" = "yes" ] && [ "$curl" = "yes" ]; then
+  if [ "$mingw32" = "no" ] && [ "$curl" = "yes" ]; then
     tools="elf2dmp $tools"
   fi
 fi
Signature · 1 line
2.19.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Roman Kagan

elf2dmp is keyed on "$posix" = "yes", but "$posix" doesn't seem to be set anywhere.

The original intent was presumably to skip building it on Windows, so check for "$mingw32" = "no" instead.

Quoted 18 lines
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 0a3c6a72c3..fc6ce0065d 100755
@@ -5722,7 +5722,7 @@ if test "$want_tools" = "yes" ; then
   if [ "$ivshmem" = "yes" ]; then
     tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
   fi
-  if [ "$posix" = "yes" ] && [ "$curl" = "yes" ]; then
+  if [ "$mingw32" = "no" ] && [ "$curl" = "yes" ]; then
     tools="elf2dmp $tools"
   fi
 fi
#2 lore raw
In reply to Roman Kagan
Quoted 17 lines · Roman Kagan

elf2dmp is keyed on "$posix" = "yes", but "$posix" doesn't seem to be set anywhere.

The original intent was presumably to skip building it on Windows, so check for "$mingw32" = "no" instead.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index 0a3c6a72c3..fc6ce0065d 100755

configure if test "$want_tools" = "yes" ; then · line 5728

Quoted 8 lines
configure +1 -1
@@ -5722,7 +5722,7 @@ if test "$want_tools" = "yes" ; then
   if [ "$ivshmem" = "yes" ]; then
     tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
   fi
-  if [ "$posix" = "yes" ] && [ "$curl" = "yes" ]; then
+  if [ "$mingw32" = "no" ] && [ "$curl" = "yes" ]; then
     tools="elf2dmp $tools"
   fi
 fi

Queued, thanks.

Paolo

#3 lore raw
In reply to Roman Kagan
Quoted 17 lines · Roman Kagan

elf2dmp is keyed on "$posix" = "yes", but "$posix" doesn't seem to be set anywhere.

The original intent was presumably to skip building it on Windows, so check for "$mingw32" = "no" instead.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index 0a3c6a72c3..fc6ce0065d 100755

configure if test "$want_tools" = "yes" ; then · line 5728

Quoted 8 lines
configure +1 -1
@@ -5722,7 +5722,7 @@ if test "$want_tools" = "yes" ; then
   if [ "$ivshmem" = "yes" ]; then
     tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
   fi
-  if [ "$posix" = "yes" ] && [ "$curl" = "yes" ]; then
+  if [ "$mingw32" = "no" ] && [ "$curl" = "yes" ]; then
     tools="elf2dmp $tools"
   fi
 fi

Unfortunately this shows that elf2dmp is not portable to 32-bit systems, nor to non-Linux. Can this be fixed?

Paolo

#4 lore raw
Quoted 21 lines · Paolo Bonzini
Quoted 20 lines · Roman Kagan

elf2dmp is keyed on "$posix" = "yes", but "$posix" doesn't seem to be set anywhere.

The original intent was presumably to skip building it on Windows, so check for "$mingw32" = "no" instead.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -1
index 0a3c6a72c3..fc6ce0065d 100755
@@ -5722,7 +5722,7 @@ if test "$want_tools" = "yes" ; then
   if [ "$ivshmem" = "yes" ]; then
     tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
   fi
-  if [ "$posix" = "yes" ] && [ "$curl" = "yes" ]; then
Quoted 8 lines

configure if test "$want_tools" = "yes" ; then · line 5728

Quoted 5 lines
configure +1 -0
+  if [ "$mingw32" = "no" ] && [ "$curl" = "yes" ]; then
     tools="elf2dmp $tools"
   fi
 fi

Unfortunately this shows that elf2dmp is not portable to 32-bit systems, nor to non-Linux. Can this be fixed?

I'm sure it can, but not in time for 3.2. I'd rather drop this patch for now and leave the tool disabled in 3.2.

[ FWIW the format specifier mismatches were addressed by Viktor's patchset of some three weeks ago, "[PATCH 0/2] contrib/elf2dmp: elf2dmp for Windows hosts", but it hasn't made it yet. ]

/me is wondering why patchew didn't scream at me for breaking 32-bit builds. In the meantime I'll be setting up docker for testing 32-bit builds locally.

Roman.