Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If at first you don't succeed, you must be a programmer.


devel / comp.lang.ada / Problems with gprbuild (gnat)

SubjectAuthor
* Problems with gprbuild (gnat)reinert
`* Re: Problems with gprbuild (gnat)Maxim Reznik
 `- Re: Problems with gprbuild (gnat)reinert

1
Problems with gprbuild (gnat)

<fa29433a-3fb0-4ba8-81cb-a6b4697c896an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9690&group=comp.lang.ada#9690

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:2486:b0:759:3149:b430 with SMTP id i6-20020a05620a248600b007593149b430mr4710290qkn.1.1685797132048;
Sat, 03 Jun 2023 05:58:52 -0700 (PDT)
X-Received: by 2002:a81:ae1b:0:b0:565:f05a:6ec1 with SMTP id
m27-20020a81ae1b000000b00565f05a6ec1mr1465878ywh.6.1685797131834; Sat, 03 Jun
2023 05:58:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sat, 3 Jun 2023 05:58:51 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR
NNTP-Posting-Host: 84.209.88.37
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa29433a-3fb0-4ba8-81cb-a6b4697c896an@googlegroups.com>
Subject: Problems with gprbuild (gnat)
From: reinkor@gmail.com (reinert)
Injection-Date: Sat, 03 Jun 2023 12:58:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 75
 by: reinert - Sat, 3 Jun 2023 12:58 UTC

Hello,

I use gnat/alire under debian (latest version). Now suddenly I get the confusing error message below after "alr build". Anybody who could give me a hint?

reinert

alr build
ⓘ Building kobio5/kobio5.gpr...
Link
[link] kobio0.adb
/home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/bin/../lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: kobio0.o: requires executable stack (because the .note.GNU-stack section is executable)
/home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/bin/../lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: kobio0.o: in function `kobio0__execute_command1.242':
kobio0.adb:(.text+0x351e7): undefined reference to `command_processing1__set_wellplate1'
collect2: error: ld returned 1 exit status
gprbuild: link of kobio0.adb failed
gprbuild: failed command was: /home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/bin/gcc kobio0.o b__kobio0.o /home/reinert/kobio5/obj/bzip2.o /home/reinert/kobio5/obj/bzip2-decoding.o /home/reinert/kobio5/obj/split_string.o /home/reinert/kobio5/obj/cpros.o /home/reinert/kobio5/obj/gid-buffering.o /home/reinert/kobio5/obj/gid-color_tables.o /home/reinert/kobio5/obj/gid-decoding_bmp.o /home/reinert/kobio5/obj/gid-decoding_gif.o /home/reinert/kobio5/obj/gid-decoding_jpg.o /home/reinert/kobio5/obj/gid-decoding_png-huffman.o /home/reinert/kobio5/obj/gid-decoding_png.o /home/reinert/kobio5/obj/gid-decoding_pnm.o /home/reinert/kobio5/obj/gid-decoding_tga.o /home/reinert/kobio5/obj/gid-headers.o /home/reinert/kobio5/obj/gid..o /home/reinert/kobio5/obj/gl.o /home/reinert/kobio5/obj/rkutil1.o /home/reinert/kobio5/obj/cell_names0.o /home/reinert/kobio5/obj/cell_names1.o /home/reinert/kobio5/obj/gl-io.o /home/reinert/kobio5/obj/gl-math.o /home/reinert/kobio5/obj/gl-geometry.o /home/reinert/kobio5/obj/gl-frustums.o /home/reinert/kobio5/obj/gl-materials.o /home/reinert/kobio5/obj/gl-simple_text.o /home/reinert/kobio5/obj/glu.o /home/reinert/kobio5/obj/gl-errors.o /home/reinert/kobio5/obj/gl-textures.o /home/reinert/kobio5/obj/gl-skins.o /home/reinert/kobio5/obj/gl-skinned_geometry.o /home/reinert/kobio5/obj/glut.o /home/reinert/kobio5/obj/glut_2d.o /home/reinert/kobio5/obj/lzma.o /home/reinert/kobio5/obj/lzma-decoding.o /home/reinert/kobio5/obj/version1.o /home/reinert/kobio5/obj/file_handling1.o /home/reinert/kobio5/obj/image1.o /home/reinert/kobio5/obj/plot1.o /home/reinert/kobio5/obj/cells.o /home/reinert/kobio5/obj/ctutil1.o /home/reinert/kobio5/obj/scene_objects1.o /home/reinert/kobio5/obj/statistics1.o /home/reinert/kobio5/obj/cells-pt_cell_scenes_p.o /home/reinert/kobio5/obj/cells-pt_cell_scenes_p-tree1_parameters1.o /home/reinert/kobio5/obj/network1.o /home/reinert/kobio5/obj/plot_image.o /home/reinert/kobio5/obj/plot_image-plot_cells1_p.o /home/reinert/kobio5/obj/io.o /home/reinert/kobio5/obj/command_processing1.o /home/reinert/kobio5/obj/segment_image.o /home/reinert/kobio5/obj/zip_streams.o /home/reinert/kobio5/obj/zip-headers.o /home/reinert/kobio5/obj/zip.o /home/reinert/kobio5/obj/zip-crc_crypto.o /home/reinert/kobio5/obj/unzip.o /home/reinert/kobio5/obj/unzip-decompress-huffman.o /home/reinert/kobio5/obj/unzip-decompress.o /home/reinert/kobio5/obj/unzip-streams.o /home/reinert/kobio5/obj/globe_3d-math.o /home/reinert/kobio5/obj/globe_3d-aux.o /home/reinert/kobio5/obj/globe_3d-options.o /home/reinert/kobio5/obj/globe_3d-portals.o /home/reinert/kobio5/obj/globe_3d-textures.o /home/reinert/kobio5/obj/globe_3d.o /home/reinert/kobio5/obj/globe_3d-software_anti_aliasing.o /home/reinert/kobio5/obj/game_control.o /home/reinert/kobio5/obj/actors.o /home/reinert/kobio5/obj/glut-windows.o /home/reinert/kobio5/obj/glut-devices.o -lglut -lGL -lGLU -L/home/reinert/kobio5/obj/ -L/home/reinert/kobio5/obj/ -L/home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/lib/gcc/x86_64-pc-linux-gnu/12..2.0/adalib/ -static-libgcc /home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/lib/gcc/x86_64-pc-linux-gnu/12.2.0/adalib/libgnarl.a /home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/lib/gcc/x86_64-pc-linux-gnu/12.2.0/adalib/libgnat.a -lrt -lpthread -lm -ldl -Wl,-rpath-link,/home/reinert/.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/lib/gcc/x86_64-pc-linux-gnu/12.2.0//adalib -Wl,-z,origin,-rpath,$ORIGIN/..//obj:$ORIGIN/../..//.config/alire/cache/dependencies/gnat_native_12.2.1_11f3b811/lib/gcc/x86_64-pc-linux-gnu/12.2.0/adalib -o /home/reinert/kobio5/bin//kobio0
error: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/reinert/kobio5/kobio5.gpr"] exited with code 4
error: Compilation failed.

Re: Problems with gprbuild (gnat)

<d69cbde3-5959-429d-998c-d211d2e71e1an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9695&group=comp.lang.ada#9695

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:1710:b0:75c:b19b:4fcd with SMTP id az16-20020a05620a171000b0075cb19b4fcdmr4227154qkb.9.1685959176591;
Mon, 05 Jun 2023 02:59:36 -0700 (PDT)
X-Received: by 2002:a05:6902:161e:b0:bab:f968:ec83 with SMTP id
bw30-20020a056902161e00b00babf968ec83mr3411284ybb.11.1685959176355; Mon, 05
Jun 2023 02:59:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.swapon.de!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Mon, 5 Jun 2023 02:59:36 -0700 (PDT)
In-Reply-To: <fa29433a-3fb0-4ba8-81cb-a6b4697c896an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a03:7380:380d:1fb:a747:5f60:a239:1b77;
posting-account=K1cP1QoAAAD_GR6kW2Td0NqGqGBLRE8h
NNTP-Posting-Host: 2a03:7380:380d:1fb:a747:5f60:a239:1b77
References: <fa29433a-3fb0-4ba8-81cb-a6b4697c896an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d69cbde3-5959-429d-998c-d211d2e71e1an@googlegroups.com>
Subject: Re: Problems with gprbuild (gnat)
From: reznikmm@gmail.com (Maxim Reznik)
Injection-Date: Mon, 05 Jun 2023 09:59:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Maxim Reznik - Mon, 5 Jun 2023 09:59 UTC

It's hard to say without the source code. The linker can't find command_processing1__set_wellplate1 symbol used somewhere in kobio0.adb.

Re: Problems with gprbuild (gnat)

<e82df19d-2ede-424c-9510-f6e64cea9e2en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9698&group=comp.lang.ada#9698

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:1793:b0:75e:c6ad:c98 with SMTP id ay19-20020a05620a179300b0075ec6ad0c98mr157587qkb.13.1686082691075;
Tue, 06 Jun 2023 13:18:11 -0700 (PDT)
X-Received: by 2002:a25:4ec3:0:b0:ba8:6422:bbec with SMTP id
c186-20020a254ec3000000b00ba86422bbecmr1704568ybb.4.1686082690810; Tue, 06
Jun 2023 13:18:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 6 Jun 2023 13:18:10 -0700 (PDT)
In-Reply-To: <d69cbde3-5959-429d-998c-d211d2e71e1an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.209.88.37; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR
NNTP-Posting-Host: 84.209.88.37
References: <fa29433a-3fb0-4ba8-81cb-a6b4697c896an@googlegroups.com> <d69cbde3-5959-429d-998c-d211d2e71e1an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e82df19d-2ede-424c-9510-f6e64cea9e2en@googlegroups.com>
Subject: Re: Problems with gprbuild (gnat)
From: reinkor@gmail.com (reinert)
Injection-Date: Tue, 06 Jun 2023 20:18:11 +0000
Content-Type: text/plain; charset="UTF-8"
 by: reinert - Tue, 6 Jun 2023 20:18 UTC

The source code is more than 20K lines :-)
Would be nice with error messages which are easier to understand.
I did return to the version before the latest changes and retyped - now it works and the Ada goddess smiles to me.

I googled "gnat undefined reference" and noticed that others also have encountered mysterious "undefined reference to...". Seems one have to be careful and frequently check when developing programmes above some size limit.

reinert

mandag 5. juni 2023 kl. 11:59:37 UTC+2 skrev Maxim Reznik:
> It's hard to say without the source code. The linker can't find command_processing1__set_wellplate1 symbol used somewhere in kobio0.adb.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor