GNU bug report logs - #66774
master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)

Previous Next

Package: emacs;

Reported by: Jim Dupont <jmikedupont2 <at> gmail.com>

Date: Fri, 27 Oct 2023 14:42:01 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66774 in the body.
You can then email your comments to 66774 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 14:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Dupont <jmikedupont2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 Oct 2023 14:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Dupont <jmikedupont2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)
Date: Fri, 27 Oct 2023 10:35:43 -0400
[Message part 1 (text/plain, inline)]
Hi all,
getting serious into emacs again,
here is my build log, let me know if you want me to look at this or you
know about it? or you need any other info?
https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/log.txt
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 15:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function
 ‘syms_of_profiler_for_pdumper’:
 profiler.c:636:7: error: ‘memory’ undeclared
 (first use in this function)
Date: Fri, 27 Oct 2023 18:27:31 +0300
> From: Jim Dupont <jmikedupont2 <at> gmail.com>
> Date: Fri, 27 Oct 2023 10:35:43 -0400
> 
> getting serious into emacs again, 
> here is my build log, let me know if you want me to look at this or you know about it? or you need any
> other info?
> https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/log.txt

Thanks, I hope I've no fixed this on the master branch.

Out of curiosity: what is your platform that doesn't support CPU
profiling?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 16:48:01 GMT) Full text and rfc822 format available.

Message #11 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Jim Dupont <jmikedupont2 <at> gmail.com>
To: 66774 <at> debbugs.gnu.org
Subject: PROFILER_CPU_SUPPORT
Date: Fri, 27 Oct 2023 10:42:21 -0400
[Message part 1 (text/plain, inline)]
It looks like this define  PROFILER_CPU_SUPPORT was not set and that caused
the error
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 17:11:01 GMT) Full text and rfc822 format available.

Message #14 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function
 ‘syms_of_profiler_for_pdumper’:
 profiler.c:636:7: error: ‘memory’ undeclared (first use
 in this function)
Date: Fri, 27 Oct 2023 20:10:12 +0300
[Please use Reply All to keep the bug tracker on the CC list.]

> From: Jim Dupont <jmikedupont2 <at> gmail.com>
> Date: Fri, 27 Oct 2023 11:29:54 -0400
> 
> this is standard x86 64 gnu linux.
> adding the define got me past it, I think its just autoconfig not working. you want my config logs?

Yes, please post config.log.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 17:31:01 GMT) Full text and rfc822 format available.

Message #17 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Jim Dupont <jmikedupont2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)
Date: Fri, 27 Oct 2023 13:29:57 -0400
[Message part 1 (text/plain, inline)]
so turning that flag on resulted in the compile working but linking had this
```/usr/bin/ld: profiler.o: in function `Fprofiler_memory_log':
                           /mnt/data1/2023/10/23/emacs/src/profiler.c:514:
undefined reference to `export_log'
/usr/bin/ld: profiler.o: in function `malloc_probe':
                       /mnt/data1/2023/10/23/emacs/src/profiler.c:524:
undefined reference to `add_sample'
collect2: error: ld returned 1 exit status
```
here are my last 2 config logs let me know if you need anything else.

https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log
and
https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log~

On Fri, Oct 27, 2023, 13:10 Eli Zaretskii <eliz <at> gnu.org> wrote:

> [Please use Reply All to keep the bug tracker on the CC list.]
>
> > From: Jim Dupont <jmikedupont2 <at> gmail.com>
> > Date: Fri, 27 Oct 2023 11:29:54 -0400
> >
> > this is standard x86 64 gnu linux.
> > adding the define got me past it, I think its just autoconfig not
> working. you want my config logs?
>
> Yes, please post config.log.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 17:40:01 GMT) Full text and rfc822 format available.

Message #20 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function
 ‘syms_of_profiler_for_pdumper’:
 profiler.c:636:7: error: ‘memory’ undeclared (first use
 in this function)
Date: Fri, 27 Oct 2023 20:39:12 +0300
> From: Jim Dupont <jmikedupont2 <at> gmail.com>
> Date: Fri, 27 Oct 2023 13:29:57 -0400
> Cc: 66774 <at> debbugs.gnu.org
> 
> so turning that flag on resulted in the compile working but linking had this

What do you mean by "turning that flag on"? what did you do, exactly?

> ```/usr/bin/ld: profiler.o: in function `Fprofiler_memory_log':                                      
> /mnt/data1/2023/10/23/emacs/src/profiler.c:514: undefined reference to `export_log'
> /usr/bin/ld: profiler.o: in function `malloc_probe':                                              
> /mnt/data1/2023/10/23/emacs/src/profiler.c:524: undefined reference to `add_sample'
> collect2: error: ld returned 1 exit status
> ```
> here are my last 2 config logs let me know if you need anything else. 
>  https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log
> and 
> https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log~

Please post the logs here, I cannot use GitHub.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 17:43:01 GMT) Full text and rfc822 format available.

Message #23 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Jim Dupont <jmikedupont2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)
Date: Fri, 27 Oct 2023 13:41:22 -0400
[Message part 1 (text/plain, inline)]
I just manually defined the flag in the file profiler.c that was needed

On Fri, Oct 27, 2023, 13:39 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Jim Dupont <jmikedupont2 <at> gmail.com>
> > Date: Fri, 27 Oct 2023 13:29:57 -0400
> > Cc: 66774 <at> debbugs.gnu.org
> >
> > so turning that flag on resulted in the compile working but linking had
> this
>
> What do you mean by "turning that flag on"? what did you do, exactly?
>
> > ```/usr/bin/ld: profiler.o: in function `Fprofiler_memory_log':
>
> > /mnt/data1/2023/10/23/emacs/src/profiler.c:514: undefined reference to
> `export_log'
> > /usr/bin/ld: profiler.o: in function `malloc_probe':
>
> > /mnt/data1/2023/10/23/emacs/src/profiler.c:524: undefined reference to
> `add_sample'
> > collect2: error: ld returned 1 exit status
> > ```
> > here are my last 2 config logs let me know if you need anything else.
> >
> https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log
> > and
> >
> https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log~
>
> Please post the logs here, I cannot use GitHub.
>
[Message part 2 (text/html, inline)]
[config.log.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 17:49:02 GMT) Full text and rfc822 format available.

Message #26 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function
 ‘syms_of_profiler_for_pdumper’:
 profiler.c:636:7: error: ‘memory’ undeclared (first use
 in this function)
Date: Fri, 27 Oct 2023 20:47:58 +0300
> From: Jim Dupont <jmikedupont2 <at> gmail.com>
> Date: Fri, 27 Oct 2023 13:29:57 -0400
> Cc: 66774 <at> debbugs.gnu.org
> 
> so turning that flag on resulted in the compile working but linking had this

What do you mean by "turning that flag on"? what did you do, exactly?

> ```/usr/bin/ld: profiler.o: in function `Fprofiler_memory_log':                                      
> /mnt/data1/2023/10/23/emacs/src/profiler.c:514: undefined reference to `export_log'
> /usr/bin/ld: profiler.o: in function `malloc_probe':                                              
> /mnt/data1/2023/10/23/emacs/src/profiler.c:524: undefined reference to `add_sample'
> collect2: error: ld returned 1 exit status
> ```

Fixed.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 17:50:01 GMT) Full text and rfc822 format available.

Message #29 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: 66774 <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function
 ‘syms_of_profiler_for_pdumper’:
 profiler.c:636:7: error: ‘memory’ undeclared (first use
 in this function)
Date: Fri, 27 Oct 2023 20:49:18 +0300
> From: Jim Dupont <jmikedupont2 <at> gmail.com>
> Date: Fri, 27 Oct 2023 13:41:22 -0400
> Cc: 66774 <at> debbugs.gnu.org
> 
> I just manually defined the flag in the file profiler.c that was needed 

That cannot possibly work.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66774; Package emacs. (Fri, 27 Oct 2023 19:49:01 GMT) Full text and rfc822 format available.

Message #32 received at 66774 <at> debbugs.gnu.org (full text, mbox):

From: Jim Dupont <jmikedupont2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "66774 <at> debbugs.gnu.org" <66774 <at> debbugs.gnu.org>
Subject: Re: bug#66774: master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)
Date: Fri, 27 Oct 2023 15:48:09 -0400
[Message part 1 (text/plain, inline)]
Thanks I can confirm the build now completes. Thanks for your patience with
me. I guess
I need now to setup my own mail server and use it in emacs to talk to the
mailing list. :)

On Friday, October 27, 2023, Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Jim Dupont <jmikedupont2 <at> gmail.com>
> > Date: Fri, 27 Oct 2023 13:41:22 -0400
> > Cc: 66774 <at> debbugs.gnu.org
> >
> > I just manually defined the flag in the file profiler.c that was needed
>
> That cannot possibly work.
>
[Message part 2 (text/html, inline)]

Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 28 Oct 2023 15:10:02 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Wed, 10 Jan 2024 10:35:01 GMT) Full text and rfc822 format available.

Notification sent to Jim Dupont <jmikedupont2 <at> gmail.com>:
bug acknowledged by developer. (Wed, 10 Jan 2024 10:35:02 GMT) Full text and rfc822 format available.

Message #39 received at 66774-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 66774-done <at> debbugs.gnu.org
Subject: Re: bug#66774: master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)
Date: Wed, 10 Jan 2024 02:34:14 -0800
Jim Dupont <jmikedupont2 <at> gmail.com> writes:

> Thanks I can confirm the build now completes. Thanks for your patience with me. I guess
> I need now to setup my own mail server and use it in emacs to talk to the mailing list. :)

It seems like the issue here was fixed, so I'm closing this bug
report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Feb 2024 12:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.