Levi-Armstrong / gdb-7.7.1

GNU General Public License v2.0
4 stars 4 forks source link

Failed to compile #1

Open raultron opened 8 years ago

raultron commented 8 years ago

In Ubuntu 14.04 with ROS Indigo installed:

Compilation failed with the following output. Any ideas?.

make[2]: Entering directory `/local/users/racuna/src/qt_ros_plugin/gdb-7.7.1/gdb'
CONFIG_HEADERS=config.h:config.in \
      CONFIG_COMMANDS="default depdir" \
      CONFIG_FILES= \
      CONFIG_LINKS= \
      /bin/bash config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
config.status: executing depdir commands
./observer.sh h ./doc/observer.texi observer.h
Creating observer.htmp
Moving observer.htmp to observer.h
./observer.sh inc ./doc/observer.texi observer.inc
Creating observer.itmp
Moving observer.itmp to observer.inc
if [ "/local/users/racuna/src/qt_ros_plugin/gdb-7.7.1/missing flex" ] && /local/users/racuna/src/qt_ros_plugin/gdb-7.7.1/missing flex --version >/dev/null 2>&1; then \
        /local/users/racuna/src/qt_ros_plugin/gdb-7.7.1/missing flex -oada-lex.c ada-lex.l && \
        rm -f ada-lex.c.new && \
        sed -e '/extern.*malloc/d' \
            -e '/extern.*realloc/d' \
            -e '/extern.*free/d' \
            -e '/include.*malloc.h/d' \
            -e 's/\([^x]\)malloc/\1xmalloc/g' \
            -e 's/\([^x]\)realloc/\1xrealloc/g' \
            -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
            -e 's/\([ \t;,(]\)free$/\1xfree/g' \
        -e 's/yy_flex_xrealloc/yyxrealloc/g' \
          < ada-lex.c > ada-lex.c.new && \
        rm -f ada-lex.c && \
        mv ada-lex.c.new ada-lex.c; \
    elif [ -f ada-lex.c ]; then \
        echo "Warning: ada-lex.c older than ada-lex.l and flex not available."; \
    else \
        echo "ada-lex.c missing and flex not available."; \
        false; \
    fi
ada-lex.c missing and flex not available.
make[2]: *** [ada-lex.c] Error 1
make[2]: Leaving directory `/local/users/racuna/src/qt_ros_plugin/gdb-7.7.1/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/local/users/racuna/src/qt_ros_plugin/gdb-7.7.1'
make: *** [all] Error 2
Levi-Armstrong commented 8 years ago

I apologize, I missed this issue. Did you get it resolved?

Levi-Armstrong commented 8 years ago

I have pushed a clean version so everything should build correctly.

hmluqman commented 7 years ago

I am also facing the same problem. The outpput is : ada-lex.c missing and flex not available. make[2]: [ada-lex.c] Error 1 make[2]: Leaving directory `/lhome/luqman/Downloads/gdb-7.7.1-master/gdb' make[1]: [all-gdb] Error 2 make[1]: Leaving directory `/lhome/luqman/Downloads/gdb-7.7.1-master' make: *** [all] Error 2

cx3386 commented 7 years ago

In Ubuntu 16.04 with ROS Kinect installed, I met the same problem. the output is as follows. ada-lex.c missing and flex not available. Makefile:1745: recipe for target 'ada-lex.c' failed make[2]: [ada-lex.c] Error 1 make[2]: Leaving directory '/mnt/hgfs/share/gdb-7.7.1-master/gdb' Makefile:8611: recipe for target 'all-gdb' failed make[1]: [all-gdb] Error 2 make[1]: Leaving directory '/mnt/hgfs/share/gdb-7.7.1-master' Makefile:832: recipe for target 'all' failed make: *** [all] Error 2

Levi-Armstrong commented 7 years ago

It looks like you are missing the dependency flex try the command below.

sudo apt-get update
sudo apt-get install flex