1. FreeBSD & OE: unable to build from source code

Hello everyone,

I am trying to compile OpenEuphoria's source code under FreeBSD/PC-BSD 9.0, but I get the following error when executing Make:

[luisraul@eeepc-bsd] ~/euphoria-4.0.4/source> make 
"Makefile.gnu", line 47: Need an operator 
"Makefile.gnu", line 49: Need an operator 
"Makefile.gnu", line 56: Need an operator 
"Makefile.gnu", line 58: Need an operator 
"Makefile.gnu", line 60: Need an operator 
"Makefile.gnu", line 62: Need an operator 
"Makefile.gnu", line 64: Need an operator 
"Makefile.gnu", line 66: Need an operator 
"Makefile.gnu", line 68: Need an operator 
"Makefile.gnu", line 72: Need an operator 
"Makefile.gnu", line 75: Need an operator 
"Makefile.gnu", line 76: Need an operator 
"Makefile.gnu", line 78: Need an operator 
"Makefile.gnu", line 79: Need an operator 
"Makefile.gnu", line 81: Need an operator 
"Makefile.gnu", line 82: Need an operator 
"Makefile.gnu", line 86: Need an operator 
"Makefile.gnu", line 87: Need an operator 
"Makefile.gnu", line 125: Need an operator 
"Makefile.gnu", line 140: Need an operator 
"Makefile.gnu", line 151: Need an operator 
"Makefile.gnu", line 155: Need an operator 
"Makefile.gnu", line 157: Need an operator 
"Makefile.gnu", line 159: Need an operator 
"Makefile.gnu", line 161: Need an operator 
"Makefile.gnu", line 163: Need an operator 
"Makefile.gnu", line 164: Need an operator 
"Makefile.gnu", line 166: Need an operator 
"Makefile.gnu", line 168: Need an operator 
"Makefile.gnu", line 170: Need an operator 
"Makefile.gnu", line 174: Need an operator 
"Makefile.gnu", line 176: Need an operator 
"Makefile.gnu", line 178: Need an operator 
"Makefile.gnu", line 180: Need an operator 
"Makefile.gnu", line 182: Need an operator 
"Makefile.gnu", line 186: Need an operator 
"Makefile.gnu", line 188: Need an operator 
"Makefile.gnu", line 189: Need an operator 
"Makefile.gnu", line 191: Need an operator 
"Makefile.gnu", line 193: Need an operator 
"Makefile.gnu", line 195: Need an operator 
"Makefile.gnu", line 197: Need an operator 
"Makefile.gnu", line 204: Need an operator 
"Makefile.gnu", line 206: Need an operator 
"Makefile.gnu", line 208: Need an operator 
"Makefile.gnu", line 210: Need an operator 
"Makefile.gnu", line 212: Need an operator 
"Makefile.gnu", line 214: Need an operator 
"Makefile.gnu", line 216: Need an operator 
"Makefile.gnu", line 217: warning: duplicate script for target "ifeq" ignored 
"Makefile.gnu", line 218: Need an operator 
"Makefile.gnu", line 221: Need an operator 
"Makefile.gnu", line 223: Need an operator 
"Makefile.gnu", line 225: Need an operator 
"Makefile.gnu", line 227: Need an operator 
"Makefile.gnu", line 387: Need an operator 
"Makefile.gnu", line 388: warning: duplicate script for target "ifeq" ignored 
"Makefile.gnu", line 388: warning: duplicate script for target """" ignored 

"Makefile.gnu", line 389: Need an operator 
"Makefile.gnu", line 410: Need an operator 
"Makefile.gnu", line 412: Need an operator 
"Makefile.gnu", line 420: Need an operator 
"Makefile.gnu", line 421: warning: duplicate script for target "ifeq" ignored 
"Makefile.gnu", line 422: Need an operator 
"Makefile.gnu", line 426: Need an operator 
"Makefile.gnu", line 427: warning: duplicate script for target "ifeq" ignored 
"Makefile.gnu", line 427: warning: duplicate script for target ""0"" ignored 
"Makefile.gnu", line 428: Need an operator 
"Makefile.gnu", line 464: Need an operator 
"Makefile.gnu", line 466: Need an operator 
"Makefile.gnu", line 468: Need an operator 
"Makefile.gnu", line 470: Need an operator 
"Makefile.gnu", line 472: Need an operator 
"Makefile.gnu", line 474: Need an operator 
"Makefile.gnu", line 476: Need an operator 
"Makefile.gnu", line 478: Need an operator 
"Makefile.gnu", line 488: Need an operator 
"Makefile.gnu", line 489: warning: duplicate script for target """" ignored 

"Makefile.gnu", line 490: Need an operator 
"Makefile.gnu", line 510: Need an operator 
"Makefile.gnu", line 513: Need an operator 
Error expanding embedded variable. 
[luisraul@eeepc-bsd] ~/euphoria-4.0.4/source> 

Any idea of what's wrong? BTW the GNU/Linux OE distribution works fine under BSD, except the C translator that fails during the linking process.

regards, Raúl

new topic     » topic index » view message » categorize

2. Re: FreeBSD & OE: unable to build from source code

Raul said...

Hello everyone,

I am trying to compile OpenEuphoria's source code under FreeBSD/PC-BSD 9.0, but I get the following error when executing Make:

[luisraul@eeepc-bsd] ~/euphoria-4.0.4/source> make 
... 
Error expanding embedded variable. 
[luisraul@eeepc-bsd] ~/euphoria-4.0.4/source> 

Any idea of what's wrong? BTW the GNU/Linux OE distribution works fine under BSD, except the C translator that fails during the linking process.

regards, Raúl

Does it work if you use gmake instead of make?

new topic     » goto parent     » topic index » view message » categorize

3. Re: FreeBSD & OE: unable to build from source code

jimcbrown said...
Raul said...

Hello everyone,

I am trying to compile OpenEuphoria's source code under FreeBSD/PC-BSD 9.0, but I get the following error when executing Make:

[luisraul@eeepc-bsd] ~/euphoria-4.0.4/source> make 
... 
Error expanding embedded variable. 
[luisraul@eeepc-bsd] ~/euphoria-4.0.4/source> 

Any idea of what's wrong? BTW the GNU/Linux OE distribution works fine under BSD, except the C translator that fails during the linking process.

regards, Raúl

Does it work if you use gmake instead of make?

On the gripping hand, the GNU Makefile itself calls GNU make, as "make" and not "gmake", in quite a few places IIRC. Those might need to be fixed by hand.

new topic     » goto parent     » topic index » view message » categorize

4. Re: FreeBSD & OE: unable to build from source code

jimcbrown said...

On the gripping hand, the GNU Makefile itself calls GNU make, as "make" and not "gmake", in quite a few places IIRC. Those might need to be fixed by hand.

It should be OK. All of those invocations use $(MAKE). Also, from the top of Makefile.gnu (which should also be in at least a readme, in addition to the regular docs, if they aren't already):

     3 # NOTE: This is meant to be used with GNU make, 
     4 #       so on BSD, you should use gmake instead 
     5 #       of make 

Matt

new topic     » goto parent     » topic index » view message » categorize

5. Re: FreeBSD & OE: unable to build from source code

gmake complains about something related with a command called "hg". It fails to compile under freebsd.

 
[luisraul@eeepc-bsd] /home/luisraul/euphoria-4.0.4/source# gmake interpreter 
gmake: hg: Didn't find the program 
mkdir -p /home/luisraul/euphoria-4.0.4/source/build/intobj/back/ /home/luisraul/euphoria-4.0.4/source/build/transobj/back/ /home/luisraul/euphoria-4.0.4/source/build/libobj/back/ /home/luisraul/euphoria-4.0.4/source/build/libobjdbg /home/luisraul/euphoria-4.0.4/source/build/libobjdbg/back/ /home/luisraul/euphoria-4.0.4/source/build/backobj/back/ /home/luisraul/euphoria-4.0.4/source/build/intobj/ /home/luisraul/euphoria-4.0.4/source/build/transobj/ /home/luisraul/euphoria-4.0.4/source/build/libobj/ /home/luisraul/euphoria-4.0.4/source/build/backobj/ /home/luisraul/euphoria-4.0.4/source/build/include/  
gmake /home/luisraul/euphoria-4.0.4/source/build/eui OBJDIR=intobj EBSD=1 CONFIG=config.gnu EDEBUG= EPROFILE= 
gmake[1]: hg: didn't find the program 
gmake[1]: se ingresa al directorio `/usr/home/luisraul/euphoria-4.0.4/source' 

gcc  -m32  -c -Wall -DEUNIX -DEBSD -DEBSD62    -fsigned-char -ffast-math -fomit-frame-pointer  -DESIMPLE_MALLOC  -DARCH=ix86  -DEBSD -DEBSD62 -I /home/luisraul/euphoria-4.0.4/source/build/intobj/back -I /home/luisraul/euphoria-4.0.4/source/build/include be_decompress.c -o/home/luisraul/euphoria-4.0.4/source/build/intobj/back/be_decompress.o 
gmake[1]: *** There is no rule to build the object `/home/luisraul/euphoria-4.0.4/source/build/intobj/main-.c', necesario para `/home/luisraul/euphoria-4.0.4/source/build/intobj/back/coverage.h'.  Alto. 
gmake[1]: leaving directory `/usr/home/luisraul/euphoria-4.0.4/source' 

gmake: *** [interpreter] Error 2 
[luisraul@eeepc-bsd] /home/luisraul/euphoria-4.0.4/source#  
new topic     » goto parent     » topic index » view message » categorize

6. Re: FreeBSD & OE: unable to build from source code

Raul said...

gmake complains about something related with a command called "hg". It fails to compile under freebsd.

hg is the name of the Mercurial executable, but that isn't the problem here (it's used to auto-generate the version / changeset information, but isn't required). The problem is that it needs to have the translated front end source in order to build:

gmake[1]: *** There is no rule to build the object  
  `/home/luisraul/euphoria-4.0.4/source/build/intobj/main-.c', 
   necesario para `/home/luisraul/euphoria-4.0.4/source/build/intobj/back/coverage.h'. 
   Alto. 

If you were already using a pre-translated version, then possibly some file was updated, which causes gmake to want to update it based on dependencies. The simplest solution is probably to touch all of the files in the build directory (/home/luisraul/euphoria-4.0.4/source/build/intobj):

$ touch /home/luisraul/euphoria-4.0.4/source/build/intobj/*.c /home/luisraul/euphoria-4.0.4/source/build/intobj/*.h 

Matt

new topic     » goto parent     » topic index » view message » categorize

7. Re: FreeBSD & OE: unable to build from source code

Thanks Matt, I'll check it right now.

new topic     » goto parent     » topic index » view message » categorize

8. Re: FreeBSD & OE: unable to build from source code

No way to compile OE under FreeBSD. I've tried in both 32 and 64 bit envoironments with the same result: segmentation fault.

I'm not sure of what I am doing wrong. I run Configure, and the gmake. After some minutes of screen output bulding objects and compiling, the process ends with a error message related to segmentation fault. The binary files (eui, euc, eub...) by the way, appear where they are supposed to appear, but when executing them the same problem: segmentation fault.

Here's the last bit of output of the compiling process:

(...) 
FILE= 
abort: no repository found in '/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source' (.hg not found)! 
gmake[2]: se ingresa al directorio `/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source' 
/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/mkver "hg" "/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/ver.cache" "/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/include/be_ver.h"  
abort: no repository found in '/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source' (.hg not found)! 
gcc  -m32  -c -Wall -DEUNIX -DEBSD -DEBSD62 -DERUNTIME   -fsigned-char -ffast-math -fomit-frame-pointer  -DESIMPLE_MALLOC  -DARCH=  -DEBSD -DEBSD62 -I /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back -I /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/include be_machine.c -o/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_machine.o 
ar -rc /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/eu.a /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_decompress.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_machine.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_w.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_alloc.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_inline.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_pcre.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_socket.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_runtime.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_task.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/libobj/back/be_callc.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_chartables.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_compile.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_config.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_dfa_exec.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_exec.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_fullinfo.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_get.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_globals.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_info.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_maketables.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_newline.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_ord2utf8.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcreposix.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_refcount.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_study.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_tables.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_try_flipped.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_ucd.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_valid_utf8.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_version.o /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/pcre/pcre_xclass.o 
/bin/echo  
 
gmake[2]: leaving directory `/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source' 
/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/euc -build-dir "/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/eudist-build" \ 
        -o "/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/eudist" \ 
        -makefile -eudir /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4 \ 
        /usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/eudist.ex 
gmake[1]: *** [/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source/build/eudist-build/main-.c] Segmentation fault: 11 
gmake[1]: leaving directory `/usr/home/luisraul/SRC/FREEBSD/euphoria-4.0.4/source' 
gmake: *** [all] Error 2 
$ 

If there's anything I can do to help let me know.

new topic     » goto parent     » topic index » view message » categorize

9. Re: FreeBSD & OE: unable to build from source code

I'm trying to compile a fresh install from the FreBSD port source code you provide in the wiki. I am waiting to succed with freebsd to try binary building under NetBSD and OpenBSD. May be also OpenSolaris.
Forked into: Linux is not UNIX

new topic     » goto parent     » topic index » view message » categorize

10. Re: FreeBSD & OE: unable to build from source code

Raul said...

No way to compile OE under FreeBSD. I've tried in both 32 and 64 bit envoironments with the same result: segmentation fault.

I'm not sure of what I am doing wrong. I run Configure, and the gmake. After some minutes of screen output bulding objects and compiling, the process ends with a error message related to segmentation fault. The binary files (eui, euc, eub...) by the way, appear where they are supposed to appear, but when executing them the same problem: segmentation fault.

I think this is my fault. There were some other pre-translated sources that I built using a 64-bit 4.1 binary by mistake. This causes problems in some places (and a segfault). You can use your 4.0 Linux translator to translate (use, e.g., -plat FREEBSD) and then replace the translated files you downloaded with the ones you generated on your FreeBSD machine.

Sorry for the inconvenience.

Matt

new topic     » goto parent     » topic index » view message » categorize

11. Re: FreeBSD & OE: unable to build from source code

Thanks Matt, I'll check it ASAP and let you know any advance.

new topic     » goto parent     » topic index » view message » categorize

12. Re: FreeBSD & OE: unable to build from source code

Raul said...

Thanks Matt, I'll check it ASAP and let you know any advance.

It'd be nice to get actual binaries going for these systems, for a change.

new topic     » goto parent     » topic index » view message » categorize

13. Re: FreeBSD & OE: unable to build from source code

If I succed compiling for freebsd, netsbsd or openbsd platforms I will make a binary distro so anyone can use them. If possible for both 64 & 32 bit systems.

new topic     » goto parent     » topic index » view message » categorize

14. Re: FreeBSD & OE: unable to build from source code

Raul said...

If I succed compiling for freebsd, netsbsd or openbsd platforms I will make a binary distro so anyone can use them. If possible for both 64 & 32 bit systems.

Thanks. This is very much appreciated.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu