Shop OBEX P1 Docs P2 Docs Learn Events
Getting PropGCC to build in fedora — Parallax Forums

Getting PropGCC to build in fedora

rwgast_logicdesignrwgast_logicdesign Posts: 1,464
edited 2012-06-22 14:31 in Propeller 1
Ok so I am working on a porting propgcc over to android and unvieling something very usefull to the forums!! Anyways I have been at it in my free time realitevly little problems just had to get a few libraries downloaded and add bstc.linux to my path. So ive got binutils built and proploader but I cant get propgcc built. The thing is Martin had this issue in this thread

http://forums.parallax.com/showthread.php?135710-Loader-Bug-Fixed&p=1050693&viewfull=1#post1050693
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype.c:1264: undefined reference to `lexer_line'
build/gengtype.o: In function `adjust_field_rtx_def':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype.c:978: undefined reference to `lexer_line'
build/gengtype.o: In function `adjust_field_type':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype.c:1279: undefined reference to `lexer_line'
build/gengtype.o: In function `adjust_field_tree_exp':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype.c:1205: undefined reference to `lexer_line'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype.c:1217: undefined reference to `lexer_line'
build/gengtype.o:/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype.c:1032: more undefined references to `lexer_line' follow
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o: In function `parse_error':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:138: undefined reference to `lexer_line'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:138: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o:/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: more undefined references to `yylex' follow
build/gengtype-parse.o: In function `type':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:722: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o: In function `type':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:793: undefined reference to `lexer_line'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:793: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o: In function `type':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:754: undefined reference to `lexer_line'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:754: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o:/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: more undefined references to `yylex' follow
build/gengtype-parse.o: In function `struct_field_seq':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:688: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o: In function `type':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:778: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o: In function `parse_file':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:947: undefined reference to `yybegin'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
build/gengtype-parse.o: In function `parse_file':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:982: undefined reference to `lexer_toplevel_done'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:987: undefined reference to `yyend'
build/gengtype-parse.o: In function `extern_or_static':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:888: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `def_vec':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:914: undefined reference to `lexer_line'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:915: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `typedef_decl':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:838: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `def_vec_alloc':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:939: undefined reference to `lexer_line'
build/gengtype-parse.o: In function `token':
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
/home/robert/build/gcc/gcc/../../../propgcc/gcc/gcc/gengtype-parse.c:49: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
make[1]: *** [build/gengtype] Error 1
make[1]: Leaving directory `/home/robert/build/gcc/gcc'
make: *** [all-gcc] Error 2

The thing is before I even looked on the board to solve this I installed Flex and Flex-Static libs..... I then saw the thing about adding those paths so I also tried that the ones in usr/local but I dont even have those directories soo im thinking maybe so much has changed Im suppose to have something else in my path?? I also went and re-did a make-install of binutils before posting to make sure there was no kind of dependency issues there.

Comments

  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-06-21 15:51
    Acually I just realised prop-loader didnt compile, its getting an error it cant find propeller-elf, so I added /opt/parallax to the path and still got the same thing
  • jazzedjazzed Posts: 11,803
    edited 2012-06-21 18:00
    I've built on 3 different Fedora systems. There was a problem on Fedora 17 that has been fixed.
    What Fedora are you running?

    We have a build wiki page. http://code.google.com/p/propgcc/wiki/PropGccBuild
    There is a prerequisites page too. http://code.google.com/p/propgcc/wiki/PropGccBuildPreRe
  • pedwardpedward Posts: 1,642
    edited 2012-06-22 14:31
    That error message indicates that the lexer wasn't built before it tried to link it.

    When Flex is run, it generates source code that has a yylex function, which is called by the parser to get tokens.

    Your output indicates that the parser wasn't built. You said you installed flex, but did you do a clean before restarting the build?
Sign In or Register to comment.